Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

dos batch sql update statements

Status
Not open for further replies.

qweasdzxcqweasdzxc

Technical User
Sep 12, 2006
61
US
can someone please give me an idea as to how I should approach this? I just want to create a batch file that will run a set of sql statements. do i need to include authentication in the script? What syntax should I use for the script, etc?
 
Yes you need to enclude authentication in the script. Each command you want to run will need it's own osql command.

From a command prompt run "osql /?" with out the quotes to see all the valid paramaters.

Denny
MCSA (2003) / MCDBA (SQL 2000) / MCTS (SQL 2005) / MCITP Database Administrator (SQL 2005)

--Anything is possible. All it takes is a little research. (Me)
[noevil]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top