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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing current database

Status
Not open for further replies.

LARiot

Programmer
Feb 7, 2007
232
Hi,

I'm trying to set the current database to Dev.

Using this:

SET DATABASE TO Dev;

Getting this:

Msg 156, Level 15, State 1, Line 2
Incorrect syntax near the keyword 'DATABASE'.

The code I use is copied from the msdn page exactly as they have save for the database name of course.

Any help is appreciated.

-Nima
 
try:

Code:
Use Dev

-George

"The great things about standards is that there are so many to choose from." - Fortune Cookie Wisdom
 
Hey it worked.

Thanks

-Nima
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top