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

Connection String from Include file ASP to SQL Server 2000????



Dear friends,

I am working on a App. at my work place, now wanting to set it up at home
but for some reason I keep getting this error :

ADODB.Command (0x800A0BB9)
Arguments are of the wrong type, are out of acceptable
range, or are in conflict with one another.


I did some research on the NET but I am still unable to figure out why I
cannot connect to my db.

My code:

I set up a Virtual Directory in IIS and then working with Microsoft
FrontPage, opened my Web Folder...........

File.asp

my connection strng

<%

Dim CONN_STRING

Set CONN_STRING = Server.CreateObject("ADODB.Connection")

CONN_STRING.open = "Driver={SQL
SERVER};Server=Server;UID=User;PWD=XXX;DATABASE=My DB"

%>

Inside my Brad.htm page

Sub CatTopicsList()

Set objComm = Server.CreateObject("ADODB.command")

objComm.ActiveConnection = CONN_STRING

objComm.CommandText = "stored procedure name"

objComm.CommandType = adCmdStoredProc

objComm.Parameters.Append objComm.CreateParameter("@prod", adInteger,
adParamInput, 4, int prod ID)

objComm.Parameters.Append objComm.CreateParameter("@count", adInteger,
adParamInput, 4, count)

Set RS = objComm.Execute

Then inside my Brad.ASP page I have the following::

<!-- #include virtual="MyVirtualFolderName/file.asp" -->

<!-- #include virtual="MyVirtualFolderName/Brad.htm" -->

Anyhow I continue to get errors and the page cannot be displayed...yet the
same connection works fine at work, I am missing something and am looking
for some help please,

Any ideas would be greatly appreciated,

Thanks in advance,

~Brad

----------------------------------------------
Brad Isaacs
Web/Application Developer & Client Support
www.webdevcreations.com


Jul 19 '05 #1
2 1843
http://www.aspfaq.com/5003

--
http://www.aspfaq.com/
(Reverse address to reply.)


"Brad" <in**@webdevcreations.com> wrote in message
news:Ut*******************@news20.bellglobal.com.. .


Dear friends,

I am working on a App. at my work place, now wanting to set it up at home
but for some reason I keep getting this error :

ADODB.Command (0x800A0BB9)
Arguments are of the wrong type, are out of acceptable
range, or are in conflict with one another.


I did some research on the NET but I am still unable to figure out why I
cannot connect to my db.

My code:

I set up a Virtual Directory in IIS and then working with Microsoft
FrontPage, opened my Web Folder...........

File.asp

my connection strng

<%

Dim CONN_STRING

Set CONN_STRING = Server.CreateObject("ADODB.Connection")

CONN_STRING.open = "Driver={SQL
SERVER};Server=Server;UID=User;PWD=XXX;DATABASE=My DB"

%>

Inside my Brad.htm page

Sub CatTopicsList()

Set objComm = Server.CreateObject("ADODB.command")

objComm.ActiveConnection = CONN_STRING

objComm.CommandText = "stored procedure name"

objComm.CommandType = adCmdStoredProc

objComm.Parameters.Append objComm.CreateParameter("@prod", adInteger,
adParamInput, 4, int prod ID)

objComm.Parameters.Append objComm.CreateParameter("@count", adInteger,
adParamInput, 4, count)

Set RS = objComm.Execute

Then inside my Brad.ASP page I have the following::

<!-- #include virtual="MyVirtualFolderName/file.asp" -->

<!-- #include virtual="MyVirtualFolderName/Brad.htm" -->

Anyhow I continue to get errors and the page cannot be displayed...yet the
same connection works fine at work, I am missing something and am looking
for some help please,

Any ideas would be greatly appreciated,

Thanks in advance,

~Brad

----------------------------------------------
Brad Isaacs
Web/Application Developer & Client Support
www.webdevcreations.com

Jul 19 '05 #2
Please accept my apology for the multi post ~was not my intention to SPAM
the boards....

~Brad
"Aaron [SQL Server MVP]" <te*****@dnartreb.noraa> wrote in message
news:eK**************@TK2MSFTNGP10.phx.gbl...
http://www.aspfaq.com/5003

--
http://www.aspfaq.com/
(Reverse address to reply.)


"Brad" <in**@webdevcreations.com> wrote in message
news:Ut*******************@news20.bellglobal.com.. .


Dear friends,

I am working on a App. at my work place, now wanting to set it up at home but for some reason I keep getting this error :

ADODB.Command (0x800A0BB9)
Arguments are of the wrong type, are out of acceptable
range, or are in conflict with one another.


I did some research on the NET but I am still unable to figure out why I
cannot connect to my db.

My code:

I set up a Virtual Directory in IIS and then working with Microsoft
FrontPage, opened my Web Folder...........

File.asp

my connection strng

<%

Dim CONN_STRING

Set CONN_STRING = Server.CreateObject("ADODB.Connection")

CONN_STRING.open = "Driver={SQL
SERVER};Server=Server;UID=User;PWD=XXX;DATABASE=My DB"

%>

Inside my Brad.htm page

Sub CatTopicsList()

Set objComm = Server.CreateObject("ADODB.command")

objComm.ActiveConnection = CONN_STRING

objComm.CommandText = "stored procedure name"

objComm.CommandType = adCmdStoredProc

objComm.Parameters.Append objComm.CreateParameter("@prod", adInteger,
adParamInput, 4, int prod ID)

objComm.Parameters.Append objComm.CreateParameter("@count", adInteger,
adParamInput, 4, count)

Set RS = objComm.Execute

Then inside my Brad.ASP page I have the following::

<!-- #include virtual="MyVirtualFolderName/file.asp" -->

<!-- #include virtual="MyVirtualFolderName/Brad.htm" -->

Anyhow I continue to get errors and the page cannot be displayed...yet the same connection works fine at work, I am missing something and am looking for some help please,

Any ideas would be greatly appreciated,

Thanks in advance,

~Brad

----------------------------------------------
Brad Isaacs
Web/Application Developer & Client Support
www.webdevcreations.com


Jul 19 '05 #3

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

Similar topics

3
by: Ryan N. | last post by:
Hello, I saw a brief blurb on this somewhere and am unable to recall where... In the context of Security, what are some best practices for handling -storing, locating, retrieving- database OLEDB...
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...
5
by: Alec | last post by:
Hi All, I am currently trying to link in Access 97 to a table in a MSSQL 7 server. Initially the link is fine, however, when I close the access database and re-open it from the same network...
1
by: vighnesh | last post by:
Hi All I am dealing a project in ASP.NET in which I have to establish a connection to SQL Server 2000 database,where the database was located on a remote system. For this I have used...
1
by: Chris Love | last post by:
I have already asked this, but no one seems to know the answer. Here is the timeline. I wanted to use the membership/roles functionality in a site. I got all sorts of errors trying to get this...
2
by: hfk0 | last post by:
Hi, I have a simple asp.net application running ok on my WinXP development server with SQL Server Express 2005 installed locally. After moving to the live server (Win 2000 server with MSDE 2000...
5
by: Mitya Mitriev | last post by:
Hi I created ASP.NET 2.0 web application that uses SQL Server 2000 database and it works perfectly when website and Sql server were on local machine. Then I installed application on production...
3
by: dynamo08 | last post by:
Hi, I am new to socket programming, I wrote an ftpclient which connects to an ftp server and downloads a file to the client computer. Now in one client connection I want to download multiple files...
2
borisding
by: borisding | last post by:
Hi all, I have recently migrated ASP application from Windows server 2000 to 2003. But failed to connect to SQL Server 2000. (Both sql server and application are on the same server) I keep...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...
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...

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.