Default Value

  • I need to know if a column has a Default Value for each column on every single table on my database, How can do this?

    Thanks for your suggestions.

  • You need to know what will be the default for each datatype.  But the real question is why do you need to do this?

  • The main goal is to compare two databases and indetify differences between columns, datatypes, collation and default values.

    I'm using Sql compare and Kentico Software but in both of them default value is not include.

     

    Thanks for any advice.

  • I c, I misread the question.

     

    This will get you started in the right direction :

    SELECT * FROM dbo.SysColumns C INNER JOIN dbo.SysObjects O ON C.cDefault = O.id

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply