473,383 Members | 1,880 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Connection string does not work

This is the error I get
Message "No error information available: DB_E_ERRORSOCCURRED(0x80040E21)."
String

This is the basic code with whicj I am testing it.

Dim MyConn As New System.Data.OleDb.OleDbConnection

MyConn.ConnectionString = "Provider=sqloledb.1;data source=MAX;initial
catalog=RmtTel; Integrated security=True"

MyConn.Open() This statement gives me the above error, however from reading
the docs it should be OK.

Can anyone tell me what's happening and how to fix this problem?

Any help appreciated,

Bob


Dec 20 '06 #1
6 9172
Bob,

You might try:

Provider=sqloledb

instead of:

Provider=sqloledb.1

Kerry Moorman
"Robert Dufour" wrote:
This is the error I get
Message "No error information available: DB_E_ERRORSOCCURRED(0x80040E21)."
String

This is the basic code with whicj I am testing it.

Dim MyConn As New System.Data.OleDb.OleDbConnection

MyConn.ConnectionString = "Provider=sqloledb.1;data source=MAX;initial
catalog=RmtTel; Integrated security=True"

MyConn.Open() This statement gives me the above error, however from reading
the docs it should be OK.

Can anyone tell me what's happening and how to fix this problem?

Any help appreciated,

Bob


Dec 21 '06 #2
Robert,

I think that it would be much easier to help you if you told us what kind of
databaseserver you are using.

Cor

"Robert Dufour" <bd*****@sgiims.comschreef in bericht
news:OC**************@TK2MSFTNGP03.phx.gbl...
This is the error I get
Message "No error information available: DB_E_ERRORSOCCURRED(0x80040E21)."
String

This is the basic code with whicj I am testing it.

Dim MyConn As New System.Data.OleDb.OleDbConnection

MyConn.ConnectionString = "Provider=sqloledb.1;data source=MAX;initial
catalog=RmtTel; Integrated security=True"

MyConn.Open() This statement gives me the above error, however from
reading the docs it should be OK.

Can anyone tell me what's happening and how to fix this problem?

Any help appreciated,

Bob


Dec 21 '06 #3
Using sql server 2000 and sql server 2005 (must run on both). I had tried
that before, same result.
BOB
"Kerry Moorman" <Ke**********@discussions.microsoft.comwrote in message
news:13**********************************@microsof t.com...
Bob,

You might try:

Provider=sqloledb

instead of:

Provider=sqloledb.1

Kerry Moorman
"Robert Dufour" wrote:
>This is the error I get
Message "No error information available:
DB_E_ERRORSOCCURRED(0x80040E21)."
String

This is the basic code with whicj I am testing it.

Dim MyConn As New System.Data.OleDb.OleDbConnection

MyConn.ConnectionString = "Provider=sqloledb.1;data source=MAX;initial
catalog=RmtTel; Integrated security=True"

MyConn.Open() This statement gives me the above error, however from
reading
the docs it should be OK.

Can anyone tell me what's happening and how to fix this problem?

Any help appreciated,

Bob



Dec 21 '06 #4
Using sql server 2000 and sql server 2005 (must run on both)bOB
"Cor Ligthert [MVP]" <no************@planet.nlwrote in message
news:uI**************@TK2MSFTNGP06.phx.gbl...
Robert,

I think that it would be much easier to help you if you told us what kind
of
databaseserver you are using.

Cor

"Robert Dufour" <bd*****@sgiims.comschreef in bericht
news:OC**************@TK2MSFTNGP03.phx.gbl...
>This is the error I get
Message "No error information available:
DB_E_ERRORSOCCURRED(0x80040E21)." String

This is the basic code with whicj I am testing it.

Dim MyConn As New System.Data.OleDb.OleDbConnection

MyConn.ConnectionString = "Provider=sqloledb.1;data source=MAX;initial
catalog=RmtTel; Integrated security=True"

MyConn.Open() This statement gives me the above error, however from
reading the docs it should be OK.

Can anyone tell me what's happening and how to fix this problem?

Any help appreciated,

Bob



Dec 21 '06 #5
Hi Robert,

Like Kerry wrote: Replace Provider=sqloledb.1 with Provider=sqloledb

Have you already visited www.connectionstrings.com?

Dec 21 '06 #6
Do not use OleDb. Use SqlClient for SQL databases.

off top of my head...

dim conn as New System.Data.SqlClient.SqlConnection
conn.ConnectionString = "Data Source=MAX;Initial Catalog=RmTel;Integrated
Security=True"
conn.Open()

"Robert Dufour" <bd*****@sgiims.comwrote in message
news:OC**************@TK2MSFTNGP03.phx.gbl...
This is the error I get
Message "No error information available: DB_E_ERRORSOCCURRED(0x80040E21)."
String

This is the basic code with whicj I am testing it.

Dim MyConn As New System.Data.OleDb.OleDbConnection

MyConn.ConnectionString = "Provider=sqloledb.1;data source=MAX;initial
catalog=RmtTel; Integrated security=True"

MyConn.Open() This statement gives me the above error, however from
reading the docs it should be OK.

Can anyone tell me what's happening and how to fix this problem?

Any help appreciated,

Bob


Dec 21 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Paul Robinson | last post by:
I am developing a website in ASP that connects to a Sybase database. However, when I try to open a connection to the database the page will not load. The script does not timeout, nor the...
5
by: Dmitry Karneyev | last post by:
Hi All! I've got an ado.net app with several win forms. In the first form (form1) I connect to DB and in other forms I use connection string generated by the form1 and stored in sqlconnection...
5
by: Dave Dudley | last post by:
Hi, I have a new ASP .Net project that has been developed on our development machine and connects to SQL Server 2000 on the same machine. It is connecting via a connection string similiar to:...
1
by: sal | last post by:
Greets, All Question with udl and connection string does it work? I'm having problems with the code below I keep getting an error "Keyword not supported 'File Name'" I was just following...
14
by: WebMatrix | last post by:
Hello, I have developed a web application that connects to 2 different database servers. The connection strings with db username + password are stored in web.config file. After a code review,...
8
by: Greg Strong | last post by:
Hello All, The short questions are 1 Do you know how to make DSN connection close in Access to Oracle 10g Express Edition? &/or 2 Do you know how to make a DSN-less pass-through query...
1
by: Brad | last post by:
With Oracle 9.2 drivers, this worked connection string worked in a DSN-less connection ODBC;DRIVER={Microsoft ODBC For Oracle};Server=MyServerName;UID=MyName;PWD=MyPwd; However, after upgrading...
20
by: fniles | last post by:
I am using VS2003 and connecting to MS Access database. When using a connection pooling (every time I open the OLEDBCONNECTION I use the exact matching connection string), 1. how can I know how...
7
by: Bill Nguyen | last post by:
I have this connection string using ODBC DSN Dim FactorJaco As String = "dsn=jaco;catalog=factor;uid=user;pwd=passord" This requires an ODBC DSN (jaco) at every client PC. I need to use DSN-less...
5
by: OJ | last post by:
Hi, I am at a loss here, I have a c# asp.net website which connects to a remote SQL Server 2000 db via a connection string. If I set the website up in the filesystem and use the inbuilt cassini...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.