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.
| Author |
Topic |
|
sonial8
Starting Member
5 Posts |
Posted - 2009-11-02 : 14:30:07
|
| I have a sql query script and a number of databases i.e. master, DB1, DB2, etc. So, If I want the saved script to choose DB2 and then run the various commands how do I do this?I receive an error if I try select database DB2Thanks in advance. sonia |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
|
sonial8
Starting Member
5 Posts |
Posted - 2009-11-02 : 16:48:23
|
| Thank you this works.sonia |
 |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
|
|
|
|