473,396 Members | 1,810 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,396 software developers and data experts.

Connection error to SQL Server

Hi,

We've a computer ( in our develepment group) that has installed Visual
Studio.NET 2003 and Delphi 5 and Delphi 7 . When the user try to connect to
database in the SQL Server (installed on the remote database server), the
ASP.NET applicatión gives this error message :

System.Data.OleDb.OleDbException: [DBNETLIB][ConnectionOpen (Connect()).]

We've check that de user/password and the servername is correct.

I understand that the error is because Delphi must be incompatible with de
..NET Framework. We've try many ways in order to identify the problem, i.e:
reinstall .NET Framework, MDAC, IIS, etc... but the problem persist.

If anyone has have the same problem, please tell us wich is the problem and
who should we do to resolve them.

Regards,
Javier

Nov 18 '05 #1
3 1393
Did you try using SQLConnection instead of OleDbConnection?

Shankar

Javier Camacho wrote:
Hi,

We've a computer ( in our develepment group) that has installed Visual
Studio.NET 2003 and Delphi 5 and Delphi 7 . When the user try to connect to
database in the SQL Server (installed on the remote database server), the
ASP.NET applicatión gives this error message :

System.Data.OleDb.OleDbException: [DBNETLIB][ConnectionOpen (Connect()).]

We've check that de user/password and the servername is correct.

I understand that the error is because Delphi must be incompatible with de
..NET Framework. We've try many ways in order to identify the problem, i.e:
reinstall .NET Framework, MDAC, IIS, etc... but the problem persist.

If anyone has have the same problem, please tell us wich is the problem and
who should we do to resolve them.

Regards,
Javier



--
With best Regards
Shankara Narayanan
Nov 18 '05 #2
Yes, we've try with SQLConnection and doesn't work, in addition the
conecction works in the winform application, only ASP.NET webform doesn't
work. We've try with OLEDB connection, ODBC using DSN, etc... any connect
ways works in the ASP.NET application.

This is a type connection that we're using:

Dim conexion As OleDbConnection
Dim comando As OleDbCommand
Dim StrConexion, StrComando As String
Dim Lector As OleDbDataReader
StrConexion = "Provider=SQLOLEDB;Server=CENTRAL;Initial
Catalog=Aplicacion;Uid=admvent; Pwd=5g3Gr;"
conexion = New OleDbConnection(StrConexion) '
conexion.Open()

I think that de ADO components includes in the Delphi 7 currupts some part
of the .NET Framework ADO.NET components, but I'm not sure.

Any guess ?

Thanks

"Shankara Narayanan" <js*****@yahoo.co.in> escribió en el mensaje
news:uY**************@TK2MSFTNGP10.phx.gbl...
Did you try using SQLConnection instead of OleDbConnection?

Shankar

Javier Camacho wrote:
Hi,

We've a computer ( in our develepment group) that has installed Visual
Studio.NET 2003 and Delphi 5 and Delphi 7 . When the user try to connect todatabase in the SQL Server (installed on the remote database server), the
ASP.NET applicatión gives this error message :

System.Data.OleDb.OleDbException: [DBNETLIB][ConnectionOpen (Connect()).]

We've check that de user/password and the servername is correct.

I understand that the error is because Delphi must be incompatible with de..NET Framework. We've try many ways in order to identify the problem, i.e:reinstall .NET Framework, MDAC, IIS, etc... but the problem persist.

If anyone has have the same problem, please tell us wich is the problem andwho should we do to resolve them.

Regards,
Javier



--
With best Regards
Shankara Narayanan


Nov 18 '05 #3
> I think that de ADO components includes in the Delphi 7 currupts some part
of the .NET Framework ADO.NET components, but I'm not sure.
You can certainly eliminate that as a possibility. .Net and COM are totally
separate technologies and do not interoperate with each other, unless you
deliberately make them do so in your app, using COM interop, which I see no
evidence of.

It sounds more like a network error, although using the VS.Net debugger to
peek at the exception details would help to pin it down better. Try using
the IP address of the machine instead of the machine name. And if you can
debug the exception, it would help too.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Javier Camacho" <j.*******@eurodivisas.com> wrote in message
news:#n**************@TK2MSFTNGP12.phx.gbl... Yes, we've try with SQLConnection and doesn't work, in addition the
conecction works in the winform application, only ASP.NET webform doesn't
work. We've try with OLEDB connection, ODBC using DSN, etc... any connect
ways works in the ASP.NET application.

This is a type connection that we're using:

Dim conexion As OleDbConnection
Dim comando As OleDbCommand
Dim StrConexion, StrComando As String
Dim Lector As OleDbDataReader
StrConexion = "Provider=SQLOLEDB;Server=CENTRAL;Initial
Catalog=Aplicacion;Uid=admvent; Pwd=5g3Gr;"
conexion = New OleDbConnection(StrConexion) '
conexion.Open()

I think that de ADO components includes in the Delphi 7 currupts some part
of the .NET Framework ADO.NET components, but I'm not sure.

Any guess ?

Thanks

"Shankara Narayanan" <js*****@yahoo.co.in> escribió en el mensaje
news:uY**************@TK2MSFTNGP10.phx.gbl...
Did you try using SQLConnection instead of OleDbConnection?

Shankar

Javier Camacho wrote:
Hi,

We've a computer ( in our develepment group) that has installed Visual
Studio.NET 2003 and Delphi 5 and Delphi 7 . When the user try to connect
to
database in the SQL Server (installed on the remote database server),
theASP.NET applicatión gives this error message :

System.Data.OleDb.OleDbException: [DBNETLIB][ConnectionOpen (Connect()).]
We've check that de user/password and the servername is correct.

I understand that the error is because Delphi must be incompatible with

de..NET Framework. We've try many ways in order to identify the problem, i.e:reinstall .NET Framework, MDAC, IIS, etc... but the problem persist.

If anyone has have the same problem, please tell us wich is the problem andwho should we do to resolve them.

Regards,
Javier



--
With best Regards
Shankara Narayanan


Nov 18 '05 #4

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...
17
by: AMC | last post by:
Hi, I'm using an include file to store the connection string to a database. Whenever I try to reference that string to open a connection in the page that includes the file I get the error 'empy...
4
by: Anthony England | last post by:
This is a simple question, which has been debated before, but can I ask it again with reference to a specific example? The question is basically should I close and set to nothing an ADO connection...
5
by: Suresh | last post by:
Hi Guys I have Db2 server installed on remote server. i am connecting to that remote server by using VPN. I want to connect that remote DB2 server instance using my local machine DB2...
1
by: Sankalp | last post by:
Hi, I am using VB 2005. My application has many data bound controls. The connection is stored in the app.config file. I want the application to start with a default connection string and while...
3
by: Ted | last post by:
In WSAT, I get the following error when trying to set up my provider: Could not establish a connection to the database. If you have not yet created the SQL Server database, exit the Web Site...
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...
2
by: samadams_2006 | last post by:
Hello, I have a problem that I'm hoping someone will be able to help me resolve. 1) I have a C# Web Site in which I connect to the database: "Install Microsoft SQL Server 2005 Express...
1
by: sherifbk | last post by:
Problem description ============== - I have 4 clients and 1 server (SQL server) - 3 clients are Monitoring console 1 client is operation console - Monitoring console collects some data from...
0
by: kuguy | last post by:
Hi all, I'm new to the forums, so I hope this isn't in the wrong place... I have that "Software caused connection abort: socket write error" exception error that i've never meet before. ...
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.