Connetion string used for mssql server which is installed in you server.
SqlConnection sqlcon = new SqlConnection("data source=localhost;Initial Catalog= ur database name; User Id=XXX; Password=XXX");
Connetion string used for mssql server which is installed in you system(ie .sql
server management studio express)
SqlConnection sqlcon = new SqlConnection("Server=.\\SQLExpress;Initial Catalog=ur database name; User Id=XXX; Password=XXX; Integrated security=true");
Showing posts with label asp.net connection string to the database. Show all posts
Showing posts with label asp.net connection string to the database. Show all posts
Thursday, October 22, 2009
Subscribe to:
Posts (Atom)