Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 SIMPLE PRINT

Author  Topic 

vishu_av
Yak Posting Veteran

69 Posts

Posted - 2007-11-03 : 06:58:09
HI ALL,

HOW DO I PRINT THE CONTENT OF @SQL

DECLARE @SQL NVARCHAR(200)
SET @SQL = @SQL + ' SELECT * FROM PUBS.DBO.JOBS'
PRINT @SQL

SEEMS TO BE TRICKY

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2007-11-03 : 07:45:11
[code]DECLARE @SQL NVARCHAR(200)
SET @SQL = ''
SET @SQL = @SQL + ' SELECT * FROM PUBS.DBO.JOBS'
PRINT @SQL[/code]


KH
[spoiler]Time is always against us[/spoiler]

Go to Top of Page
   

- Advertisement -