Skip to content

Tarik Billa

  • Web Development
    • html
    • vue.js
    • laravel
    • css
    • javascript
    • jquery
    • node.js
    • php
    • asp.net
  • Programming
    • python
    • java
    • c
    • c++
    • c#
  • git
  • android

metadata

How do I determine if a column is an identity column in MSSQL 2000?

May 25, 2023 by Tarik

You can also do it this way: select columnproperty(object_id(‘mytable’),’mycolumn’,’IsIdentity’) Returns 1 if it’s an identity, 0 if not.

Categories sql-server Tags metadata, sql-server, tsql Leave a comment

Sqlite: adding COMMENT ON descriptions to tables and columns?

May 23, 2023 by Tarik

I don’t think it does. The “SQL As Understood By SQLite” page makes no mention of table or column comments nor does the CREATE TABLE or ALTER TABLE documentation. Also, the Unsupported SQL wiki page has this: 2009-08-04: Table and column comments – I have scoured the doco and can’t find anything about applying comments … Read more

Categories sqlite Tags comments, metadata, sqlite Leave a comment

Stringify template arguments

May 15, 2023 by Tarik

You could try typeid(T).name() Edit: Fixed based on comments.

Categories c++ Tags c-preprocessor, c++, metadata, stringification, templates Leave a comment

nuget retrieving package metadata

May 15, 2023 by Tarik

It requires two steps (second is maybe optional, but I always like clean solution) In Explorer open folder where your project resides. Open packages.config using Notepad. Find and remove the line that mentions corrupted package name. Open folder where your solution resides. Open subfolder “packages”. Find folder with corrupted package and remove it. Note: If … Read more

Categories package Tags entity, metadata, nuget, package Leave a comment

Reading the PDF properties/metadata in Python

May 7, 2023 by Tarik

Try pdfminer: from pdfminer.pdfparser import PDFParser from pdfminer.pdfdocument import PDFDocument fp = open(‘diveintopython.pdf’, ‘rb’) parser = PDFParser(fp) doc = PDFDocument(parser) print(doc.info) # The “Info” metadata Here’s the output: >>> [{‘CreationDate’: ‘D:20040520151901-0500’, ‘Creator’: ‘DocBook XSL Stylesheets V1.52.2’, ‘Keywords’: ‘Python, Dive Into Python, tutorial, object-oriented, programming, documentation, book, free’, ‘Producer’: ‘htmldoc 1.8.23 Copyright 1997-2002 Easy Software Products, … Read more

Categories python Tags metadata, pdf, python Leave a comment

What does ‘git commit’ mean when it says ‘create mode …’ on stdout?

May 4, 2023 by Tarik

For more information about Git’s mode, see this answer. Git’s ability to store file metadata is limited to a simple subset of information to allow Git to track some basic file system changes allowing Git to track relevant changes for source code management; such as whether a file has been modified and whether a file … Read more

Categories git Tags filesystems, git, metadata Leave a comment

SQL Server: should I use information_schema tables over sys tables?

May 3, 2023 by Tarik

Unless you are writing an application which you know for a fact will need to be portable or you only want quite basic information I would just default to using the proprietary SQL Server system views to begin with. The Information_Schema views only show objects that are compatible with the SQL-92 standard. This means there … Read more

Categories sql Tags metadata, sql, sql-server, sql-server-2008, stored-procedures Leave a comment

R find time when a file was created

May 2, 2023 by Tarik
Categories r Tags file, metadata, r Leave a comment

Can I add metadata to git commits? Or can I hide some tags in gitk

April 19, 2023 by Tarik

Git-notes With git notes you can add a “note” to a commit. You can also add them to other Git objects, but let’s just focus on commits since that is what the question is about. A note is a Git object, and can in principle be “whatever” (arbitrary data). But we’ll focus on something simple … Read more

Categories git Tags git, gitk, metadata, tags Leave a comment

Get the unique constraint columns list (in TSQL)?

April 11, 2023 by Tarik

Ed is correct, the columns are exposed on the constraint column usage view, here is the SQL for it. select TC.Constraint_Name, CC.Column_Name from information_schema.table_constraints TC inner join information_schema.constraint_column_usage CC on TC.Constraint_Name = CC.Constraint_Name where TC.constraint_type=”Unique” order by TC.Constraint_Name

Categories sql-server Tags constraints, metadata, sql-server, tsql Leave a comment
Older posts
Newer posts
← Previous Page1 … Page3 Page4 Page5 … Page7 Next →

Tarik Billa

Software Engineer
tarikbilla@gmail.com
+8801884414000
  • Reuse a hash in YAMLApril 17, 2024
  • Dockerfile: how to redirect the output of a RUN command to a variable?April 16, 2024
  • How to cd to a directory with spaces in the directory name?April 16, 2024
  • Maximum MIME type length when storing the type in a databaseApril 16, 2024
  • What is the difference between Unit, Integration, Regression and Acceptance Testing?April 16, 2024
© 2026 Tarik Billa