|
|
|
Click here to copy the following block | declare @cmdstr varchar(255) select @cmdstr = 'isql -E -w255 -n -h-1 ' + '-Q"select * from pubs..authors where state in (''KS'', ''MD'')"' create table #t1 (row varchar(255)) insert #t1 exec master..xp_cmdshell @cmdstr delete #t1 where row is null select * from #t1
select @cmdstr = 'isql -E -w255 -n -h-1 ' + '-Q"select * from pubs..authors where state in (''TN'', ''MD'')"' create table #t2 (row varchar(255)) insert #t2 exec master..xp_cmdshell @cmdstr delete #t2 where row is null select * from #t2
select * from #t1 where not exists(select * from #t2 where #t1.row = #t2.row)
select * from #t2 where not exists(select * from #t1 where #t1.row = #t2.row)
go drop table #t1 drop table #t2 |
|
|
|
Submitted By :
Nayan Patel
(Member Since : 5/26/2004 12:23:06 PM)
|
|
|
Job Description :
He is the moderator of this site and currently working as an independent consultant. He works with VB.net/ASP.net, SQL Server and other MS technologies. He is MCSD.net, MCDBA and MCSE. In his free time he likes to watch funny movies and doing oil painting. |
View all (893) submissions by this author
(Birth Date : 7/14/1981 ) |
|
|