How do I select tables in a SQL Server that have a field Shape that is an INT type? -
i've got tables shape geometry, , int. want find int type shape fields , fix them. i'm bit of dummy t-sql.
you can use information_schema.columns find columns (fields) have data type of int , name of shape. example:
select table_name, column_name, data_type information_schema.columns (data_type = 'int') , (column_name '%shape%')
Comments
Post a Comment