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 2005 Forums
 SQL Server Administration (2005)
 Initial catalog Vs DataBase in constring
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

DeepakNewton
Starting Member

39 Posts

Posted - 05/14/2009 :  02:51:58  Show Profile  Reply with Quote
Hi All,
I am using ADO connection String to connec to my SQL 2005 Database
I have got a Wiered Issues
In the connection String If I Use "DataBase" then I am Getting an Error
"[Microsoft][ODBC SQL Server Driver][SQL Server]Cannot open database "LTDRating" requested by the login. The login failed. "


But When I Use "Initial Catalog" then its working

Below is the Connection string

strConnectString="DRIVER={SQL Server};SERVER=MyServer; Intial Catalog=MyDatabase;UID=" & id & ";PWD=" & pd


Could You please suggest why it takes Intial catalog and Not database ?

Thanks
Deepak.N

Edited by - DeepakNewton on 05/14/2009 02:57:31
  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.08 seconds. Powered By: Snitz Forums 2000