if i use the connection string.....
sConn= "Provider=SQLOLEDB;Integrated
Security=SSPI;Trusted_Connection=yes;Initial Catalog=master;Connect
Timeout=0;Data Source=VIVEK-PC"

then i am able to connect to master database in sql server 2008......

but if i use the connection string
sConn= "Provider=SQLOLEDB;Integrated
Security=SSPI;Trusted_Connection=yes;Initial Catalog=pubs;Connect
Timeout=0;Data Source=VIVEK-PC"

then it gives me error.....
Microsoft OLE DB Provider for SQL Server error '80004005'

Cannot open database "pubs" requested by the login. The login failed.

PS: I am using windows authentication....can anybody tell me the how
to correct  this problem.....

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to