In Query Analyzer's Object browser, expand the database, stored procedures, and right click on the stored procedure you wish to debug. select "debug..." from the pop-up menu.
sbphelps
set @command = 'rename ' + @rpt_path_name + ' ' + @new_name
exec master..xp_cmdshell @command, no_output
/* where @rpt_path_name is the path (drive and directories)
and @new_name is... well, the new file name.
sbphelps
I have been working on some stored procedures which create SQL scripts. I build the statement, then print it, creating a report which holds the script. My problem is that on each printed line, SQL adds a "SQLSTATE".
For example,
exec sp_configure 'show advanced options', '1'...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.