Forum Replies Created

Viewing post 1 (of 1 total)

  • RE: Get the Table Structure using a simple query

    U can get better information in the following query:

    Select sysObj.id, sysObj.name, Col.name,

    'Datatype'=Case When typ.name in ('char','varchar') Then typ.name+'('+Cast(Col.max_length as varchar(10))+')'

    When typ.name = 'nvarchar' AND Col.max_length<>-1 Then typ.name+'('+Cast(Col.max_length/2 as varchar(10))+')'

    When typ.name...

Viewing post 1 (of 1 total)