473,839 Members | 1,318 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.Ole Db.OleDbExcepti on: [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 1408
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.Ol eDb.OleDbExcept ion: [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=SQLOL EDB;Server=CENT RAL;Initial
Catalog=Aplicac ion;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******** ******@TK2MSFTN GP10.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.Ol eDb.OleDbExcept ion: [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.*******@euro divisas.com> wrote in message
news:#n******** ******@TK2MSFTN GP12.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=SQLOL EDB;Server=CENT RAL;Initial
Catalog=Aplicac ion;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******** ******@TK2MSFTN GP10.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.Ol eDb.OleDbExcept ion: [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
7279
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 connection. Further, the Sybase server shows no connection. Because the page is hanging I am unable, with my limited knowledge, to query the error collection. After many tries I will get an error page ...HTTP 403.9 Access forbidden: Too many users are...
17
3257
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 connection string' . When I write the string to the page using response.write(connectionstring) it shows up fine. Is the something else that I need to do? Thanks
4
3529
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 object? Normally, I would do this and not worry about whether I could have chosen not to bother. However, in this example, setting the variable to nothing can take ages, up to 15 seconds, and I wonder whether it is worth it. I would like a...
5
24032
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 development client. Bur Its gives me following error message. I searched lots of things on net and tried on remote server but i didnt got suceess. Can any one tell me how to set TCP\IP
1
6075
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 during the runtime, the user can click on a button and change the connection string without exiting the application. I would really appreciate any sort of help.
3
13366
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 Administration tool, use the aspnet_regsql command-line utility to create and configure the database, and then return to this tool to set the provider. On Windows XP Pro, I am using MS Visual Studio 2005, and I am using the developer's edition of...
20
3308
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 many connection has been used ? 2. If the maximum pool size has been reached, what happens when I call the method Open to open the connection ? Will I get an error ? MSDN says the request is queued, but will I get an error in the open method ? ...
2
4968
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 Edition" via the link on: http://msdn2.microsoft.com/en-us/express/bb410792.aspx
1
5132
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 the control unit and store them into the Sql server - The operation console then retrieve this data from the sql for reporting and statistics purposes - I am using ODBC connection - The problem is that the operation console is not able to...
0
5898
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. Basically what im trying to do is the following: - a client connect to a server using sslsocket. - server receive the connection and reply with the first part of the data and keep the connection open. - then client receive the reply and request for...
0
9697
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10908
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10587
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10649
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10295
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9426
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
7018
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5682
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
4064
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.