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
 General SQL Server Forums
 New to SQL Server Programming
 Running a .sql batch file, but not listing command

Author  Topic 

rzinck
Starting Member

3 Posts

Posted - 2011-03-03 : 11:43:01
Hi,
I'm running a .sql batch file, but it is only giving me back the results and is not including the commands themselves. Since there are numerous commands in this batch, it is hard to know to which commands the results are refering, if the command is not listed before it. Any suggestions? Here is what I ran:

SQL> START c:\folder\name.sql;

Thank You Very Much for any help

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2011-03-03 : 12:34:10
Use ECHO command to print it to the output file.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

rzinck
Starting Member

3 Posts

Posted - 2011-03-03 : 13:01:09
Thank you for the reply Tara,
Where would be the place to insert to ECHO command, I tried it a couple ways but got error messages for each. (Just to make sure, this in SQL plus, not developer)
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2011-03-03 : 13:37:43
Oh, it seems you are using Oracle and not SQL Server. This is a Microsoft SQL Server site, so my answer is for Windows and would likely not apply to your situation.

You'll want to post your question on a site that specializes in the tools and product you are using. Try the Oracle site and/or dbforums.com, which has an Oracle forum.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

rzinck
Starting Member

3 Posts

Posted - 2011-03-03 : 13:49:31
Actually, I got the echo command to work.

Thanks Again!!
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2011-03-03 : 13:55:21


Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page
   

- Advertisement -