Re: help. can't connect to sql server express with OleDbConnection
- From: Erland Sommarskog <esquel@xxxxxxxxxxxxx>
- Date: Fri, 14 Apr 2006 21:58:59 +0000 (UTC)
(aboutjav.com@xxxxxxxxx) writes:
I have this code
try
{
m_DbConn = new
OleDbConnection("Provider=SQLOLEDB.1;Data
Source="+strSqlServerName+"; Integrated Security=SSPI; Initial
Catalog="+strSqlServerDbName);
m_DbConn.Open();
m_bDbConnInUse = true;
}
catch (Exception e)
{
throw new Exception(e.Message.ToString());
}
to try to connection to sql server 2005 with OleDbConnection. It keep
saying that I can't connecto to the database.
The exact error message is?
--
Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx
Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
.
- References:
- help. can't connect to sql server express with OleDbConnection
- From: aboutjav . com
- help. can't connect to sql server express with OleDbConnection
- Prev by Date: Re: help. can't connect to sql server express with OleDbConnection
- Next by Date: Re: Turning of ANSI Padding in a ado.net connection string
- Previous by thread: Re: help. can't connect to sql server express with OleDbConnection
- Next by thread: Re: Turning of ANSI Padding in a ado.net connection string
- Index(es):
Relevant Pages
|
|