This is a very elementary I realize, I have recently started working with asp.net and establishing a connection with an Access database was simple enough…
string insertedBookTitle;
conn = new OleDbConnection(@"Provider=Microsoft.Jet.OleDb.4.0;
Data Source=" + Server.MapPath("App_Data\\BookRateInitial.mdb"));
conn.Open()
What is the code I use to connect to SQL Server 2008, with the same name (BookRateInitial)?
Kind regards
Here’s a sample connection string for standard security (username and pwd):
You need to do a: