Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Participant
1754 Points
340 Posts
Apr 30, 2012 08:54 PM|LINK
Hi,
Try:
set @sql = 'SELECT Distinct(Table_Name) into #diff FROM ' + @DbName + N'.INFORMATION_SCHEMA.COLUMNS where DATA_TYPE in (''text'', ''ntext'', ''image'', ''timestamp'')';
Hope this helps.
silvioyf
Participant
1754 Points
340 Posts
Re: Query help
Apr 30, 2012 08:54 PM|LINK
Hi,
Try:
set @sql = 'SELECT Distinct(Table_Name) into #diff FROM ' + @DbName + N'.INFORMATION_SCHEMA.COLUMNS where DATA_TYPE in (''text'', ''ntext'', ''image'', ''timestamp'')';Hope this helps.