Can someone please tell me why my connection below is not working?
using System.Data.OleDb;
OleDbConnection conn = new OleDbConnection("Provider=SqlOleDb;Data Source=BLOOD;Initial Catalog=Test;");
//Tried Above as ...;Initial Catalog= Test")
conn.Open();You need to install the database engine software (SQL Server, based on your connection string), and properly configure the server and the database before you can connect to them.
Once you get your server setup you may get error messages. Those would help us a lot in futher diagnosing your problem(s)!
-PatP
Tuesday, February 14, 2012
Connection String
Labels:
below,
conn,
connection,
database,
microsoft,
mysql,
oledboledbconnection,
oracle,
server,
sql,
string,
system,
workingusing
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment