(转)在SqlServer中将所有表的smalldatetime类型的字段改成datetime类型
摘要:
declare @tableName varchar(50)declare @tableID intdeclare @columnName varchar(50)declare @sql varchar(8000) set @tableName=''set @columnName=''declare cur cursor forselect name,id from syscolumns wher... 阅读全文