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

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -