i am developing an application in C#,i have create database1.mdf by
right clicking on my project,add item
then creating a database.
my intial problem was,i was able to execute query correctly but those modification wasn't reflected in main database
finally after lot of surfing i changed copy to output directory to copy if newer but still i am not able to rectify my problem.

now i am feeling that i need to connect to sqlserver using connectionstring but i don't know username,servername,password etc...

can anyone help me please

Edited by pritaeas: Moved to C#

3 Years
Discussion Span
Last Post by hericles

Do you mean you don't know how the connection string looks or you don't know the credentials to the database? Because we don't know them either...
If you have SQL Server management Studio or something similar installed you should be able to get the server name easily enough (it'll show in the list of databases).
If you set up the SQL database didn't you set up credentials at the time?

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.