November 26, 2003 at 6:15 pm
I want to connect to another database use T-SQL,who can help me?
contact me with email: hua@ljintl.com
Thank you very much.
Peng Qing Hua
November 27, 2003 at 4:25 am
I do not understand well your question.
In TSQL there is no such command as connect.
First you have to connect to a server/database then you can issue TSQL commands.
Of cours you can connect to the server by using QA, EM, and all other client tools or programming languages.
What is exactly your question?
Bye
Gabor
Bye
Gabor
November 27, 2003 at 4:27 am
hm, maybe
USE <some other databasename>
GO
?????
Frank
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
November 27, 2003 at 4:27 am
Or if this is you want, just use the:
"
use AnotherDBName
go
"
syntax. See BOL
Bye
Gabor
Bye
Gabor
November 27, 2003 at 4:28 am
well, yes....too late
Frank
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply