Sunday, July 26, 2009

How do i connect to an sqlexpress database in c#? I get the error: cannot open the database ***?

Through my research i keep on coming accross the name configuration file. What does this have to do with anything. From the above error, you can tell i can access the server but i cannot seem to access the database. When using sqlexpress how do manage who accesses the database.

How do i connect to an sqlexpress database in c#? I get the error: cannot open the database ***?
How can anyone solve your problem if you don't send code?





Send your connection string and any other code that you use to open the database
Reply:Make sure the configuration file has the correct permissions (666). However, it is a major security risk to leave it that way, it should normally be 644.


No comments:

Post a Comment