SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 Transact-SQL (2008)
 How to Connect to SQL 2000 from Command Prompt
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

jbates99
Constraint Violating Yak Guru

285 Posts

Posted - 06/07/2012 :  12:11:49  Show Profile  Reply with Quote
Hi everyone,

Sorry, this applies to SQL Server 2000, but that forum gets little attention.

I have an older instance (2000) that I need to test a login for.

So I cannot use the sqlcmd utility. How can I do this from the command line?

Thanks, John

robvolk
Most Valuable Yak

USA
15559 Posts

Posted - 06/07/2012 :  12:16:19  Show Profile  Visit robvolk's Homepage  Reply with Quote
Use the osql utility: http://goo.gl/ygnX0
quote:
Sorry, this applies to SQL Server 2000, but that forum gets little attention.
Not true, there are numerous responses over the past few days. All of the forums show up under the Active Topics page.
Go to Top of Page

jbates99
Constraint Violating Yak Guru

285 Posts

Posted - 06/07/2012 :  14:43:18  Show Profile  Reply with Quote
Thanks, robvolk.

And for anyone interested, this is the syntax I used:

>osql -S EGNSOCWCOM09 -U CrewWebUpdater -P iluvxj -Q "select * from crewsked.dbo.UR_Users"
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000