Here is the case: There are lot of columns in my databases inside one sqlserver that contains the same data but there is a big inconsistency in datatypes lenght for them. For example I have column called "name" in schemas stage and dbo in DB1 and the same column in DB2. In all those places this column has different lenght of data type:
- stage.name is defined as varchar(10),
- dbo.name is defined as varchar(20),
- column "name" in DB2 is defined as varchar(max)
Is there any tool that can help me to fix that? I mean different that writing SQL queries agains Information_schema.columns and then genereting manually alter scripts to implement changes.
question from:https://stackoverflow.com/questions/65682261/columns-datatypes-inconsistency