Hi,

I am able to connect to my database using the Connection string below. I am receiving the message "Failed to Open the Specified Database". I am not sure what can be wrong. I have tried two databases on the same server. Any help is appreciated.

myConnectionString = "Data Source=ABRAHIM-484C76E\sqlexpress;Initial Catalog=AdventureWorks;Integrated Security=SSPI;";

Thank you

0
edit delete
are you sure?
asked E A

3 answers

Sorry, I meant to UNABLE to connect in the first sentence above.

0
editdelete
are you sure?
E A

Hi Did you solve this? If not, please provide some more code, not just the connection string.

0
editdelete
are you sure?
Max Wikström

The server name specified by you is the same server in which your application is running? if not so then you must configure remote connections in SQL Surface area configuration and enable TCP/IP and named pipes option

1
editdelete
are you sure?
Rajendra Sharna

Post an answerbut please login first

Post Answer
  1. Please login to post answer

 

Similar Questions