473,396 Members | 2,068 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.

not creating ADODB connection

Me
I have the following lines in my asp, but somehow
it isn't working, can someone help me resolve it?

---Comm = "DSN=HRPROD"
Server="MYSERVER"
Response.Write ("Server Name ") & Server
Set Conn = Server.CreateObject("ADODB.Connection")
Response.Write ("After Conn ")
Conn.Open Comm

when I execute this, I do get valid response
Server Name MYSERVER

But I don't see the 2nd response "After Conn "
as a result I am unable to see any output after that.

Thanks for your help!
-Me

Sep 29 '06 #1
3 1430
Me wrote:
I have the following lines in my asp, but somehow
it isn't working, can someone help me resolve it?

---Comm = "DSN=HRPROD"
Server="MYSERVER"
Response.Write ("Server Name ") & Server
Set Conn = Server.CreateObject("ADODB.Connection")
Response.Write ("After Conn ")
Conn.Open Comm

when I execute this, I do get valid response
Server Name MYSERVER

But I don't see the 2nd response "After Conn "
as a result I am unable to see any output after that.
not even an error message?? Do you have "On error Resume Next" before
this code snip? if so, comment it out and try running the page so you
can see the error.

Beyond that, we cannot help because you have failed to provide the
database type (and version) to which you are attempting to connect.

For self-help see: http://www.aspfaq.com/show.asp?id=2126

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Sep 29 '06 #2
Me
Hi Bob,

Thanks for quick response. It doesn't display any error message.
No, I don't have on error clause before this.

I am using similar code in another page and its working fine. I just copied it
from the other page into this one and it doesn't work.
The other code is also on the same server. That's why I don't think
there is anything wrong with the way I have specified the connection.
But can't think why it shouldn't work.

Here is the complete string for your info ...

Comm = "DSN=MYDSN"
Server="MYSERVER"
Response.Write ("Server Name ") & Server
Set Conn = Server.CreateObject("ADODB.Connection")
Response.Write ("Connection ")
Conn.Open Comm

Please let me know if you have ideas.
"Bob Barrows [MVP]" wrote:
Me wrote:
I have the following lines in my asp, but somehow
it isn't working, can someone help me resolve it?

---Comm = "DSN=HRPROD"
Server="MYSERVER"
Response.Write ("Server Name ") & Server
Set Conn = Server.CreateObject("ADODB.Connection")
Response.Write ("After Conn ")
Conn.Open Comm

when I execute this, I do get valid response
Server Name MYSERVER

But I don't see the 2nd response "After Conn "
as a result I am unable to see any output after that.
not even an error message?? Do you have "On error Resume Next" before
this code snip? if so, comment it out and try running the page so you
can see the error.

Beyond that, we cannot help because you have failed to provide the
database type (and version) to which you are attempting to connect.

For self-help see: http://www.aspfaq.com/show.asp?id=2126

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Sep 29 '06 #3
Me wrote:
Hi Bob,

Thanks for quick response. It doesn't display any error message.
No, I don't have on error clause before this.

I am using similar code in another page and its working fine. I just
copied it from the other page into this one and it doesn't work.
The other code is also on the same server. That's why I don't think
there is anything wrong with the way I have specified the connection.
But can't think why it shouldn't work.

Here is the complete string for your info ...

Comm = "DSN=MYDSN"
Server="MYSERVER"
Response.Write ("Server Name ") & Server
Set Conn = Server.CreateObject("ADODB.Connection")
Response.Write ("Connection ")
Conn.Open Comm

Please let me know if you have ideas.
Based on this, I have nothing to add.
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Sep 29 '06 #4

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

Similar topics

5
by: BP | last post by:
I get the following error: Error Type: Microsoft VBScript runtime (0x800A01A8) Object required: '' /myweb4/authorised_user_page.asp, line 70 and line 70 of my code is: <% rsCheckUser1.Open...
4
by: gonzal | last post by:
Hi Dose any body know why a temporary table gets deleted after querying it the first time (using SELECT INTO)? When I run the code bellow I'm getting an error message when open the temp table...
1
by: Pragati | last post by:
Hi ! I have an SQL query which im developing on the click of a command button on a form. but am stuck up in creating a recordset of that query. how should one connect to database? use adodb...
0
by: billmiami2 | last post by:
Perhaps many of you MS Access fanatics already know this, but it seems that stored procedures and views are possible in Jet. I thought I would leave this message just in case it would help anyone....
2
by: Jozef | last post by:
Hello, I'm trying to create a central function that runs a connection to an SQL Server database. The connection etc works, but when I try to call it, I get an error saying "Runtime-Error 91:...
18
by: Ken Kazinski | last post by:
Does anyone know of a good example for creating a access database and then tables within that database. All the examples I have found so far use a SQL database. Thanks, Ken
0
by: MG | last post by:
Hello all, Perhaps you can help me. I have a com object which I converted from VB6 to VB.NET. I am using this com object with other .Net applications without any problem. However, I am now trying...
3
by: Bhavsan | last post by:
Here is what I am trying to do. Kindly, help me. 1. I'm creating a query dynamically based on User input using VBA (strSQL and DotSQL in the code below) 2. Executing the created query with in VBA...
4
by: mramsay | last post by:
Hi, I'm having a real problem creating a dynamic hyperlink for my website. I want to pull the field name from mysql table. Field name is description. I would like this to be a hyperlink on my...
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: 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
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
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...
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.