473,406 Members | 2,705 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,406 software developers and data experts.

simple adodb calling stored procedures code please?

could anyone provide me with some simple example code of asp classic
calling adodb? specifically, i'd like the code to:
- call a couple of stored procedures that have optional parameters
- share a connection over the two calls

any assistance greatly appreciated and thanks in advance.
Jun 27 '08 #1
8 1898
ro***********@shaw.ca wrote:
could anyone provide me with some simple example code of asp classic
calling adodb? specifically, i'd like the code to:
- call a couple of stored procedures that have optional parameters
- share a connection over the two calls

any assistance greatly appreciated and thanks in advance.
http://groups.google.com/group/micro...fedf4e1efd63a6
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Jun 27 '08 #2
On 28 May, 19:08, "Bob Barrows [MVP]" <reb01...@NOyahoo.SPAMcom>
wrote:
rocketboy2...@shaw.ca wrote:
could anyone provide me with some simple example code of asp classic
calling adodb? specifically, i'd like the code to:
- call a couple of stored procedures that have optional parameters
- share a connection over the two calls
any assistance greatly appreciated and thanks in advance.

http://groups.google.com/group/micro...ng.vbscript/ms...
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
thanks bob,

your code provides an error... for me at least.

in ie7, SpConnectInfo.htm gives:
Line: 19
Char: 1
Error: Object required: 'parent.document.all.tags(...).item(...)'
Code: 0

any ideas?
Jun 27 '08 #3
wrote on 29 mei 2008 in microsoft.public.inetserver.asp.general:
On 28 May, 19:08, "Bob Barrows [MVP]" <reb01...@NOyahoo.SPAMcom>
wrote:
>rocketboy2...@shaw.ca wrote:
could anyone provide me with some simple example code of asp classic
calling adodb? specifically, i'd like the code to:
- call a couple of stored procedures that have optional parameters
- share a connection over the two calls
any assistance greatly appreciated and thanks in advance.

http://groups.google.com/group/micro...ng.vbscript/ms...

thanks bob,

your code provides an error... for me at least.

in ie7, SpConnectInfo.htm gives:
Line: 19
Char: 1
Error: Object required: 'parent.document.all.tags(...).item(...)'
Code: 0
parent? Do you use an html frame?

If so, better use:

parent.document.getElementByTagName('...')

Anyway, that is a clientside error,
nothing to do with ASP or adodb on the server.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jun 27 '08 #4
ro***********@shaw.ca wrote:
On 28 May, 19:08, "Bob Barrows [MVP]" <reb01...@NOyahoo.SPAMcom>
wrote:
>rocketboy2...@shaw.ca wrote:
>>could anyone provide me with some simple example code of asp classic
calling adodb? specifically, i'd like the code to:
- call a couple of stored procedures that have optional parameters
- share a connection over the two calls
>>any assistance greatly appreciated and thanks in advance.

http://groups.google.com/group/micro...ng.vbscript/ms...
>
thanks bob,

your code provides an error... for me at least.

in ie7, SpConnectInfo.htm gives:
Line: 19
Char: 1
Error: Object required: 'parent.document.all.tags(...).item(...)'
Code: 0
".htm"? "parent.document"?
This is an asp group. I can guarantee you that since my code was
intended to be used in server-side code in a .asp page, none of the code
I provided contained a reference to client-side objects like "parent"
and "document". Why do you think it's my code that is causing the error?
:-)

You are attempting to directly connect to a database in client-side
code? I'm sure there may be some security settings that may be
preventing this. Even moreso, I know there are many reasons for you not
to be attempting to do this.

Anyways, without seeing the code you are using, it is impossible for
anyone to troubleshoot your problem, which may have nothing at all to do
with the whatever method you chose to execute the stored procedure. Then
again, it might. Impossible to say.

--
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.
Jun 27 '08 #5
Bob Barrows [MVP] wrote:
>in ie7, SpConnectInfo.htm gives:
Line: 19
Char: 1
Error: Object required: 'parent.document.all.tags(...).item(...)'
Code: 0
".htm"? "parent.document"?
This is an asp group. I can guarantee you that since my code was
intended to be used in server-side code in a .asp page, none of the
code I provided contained a reference to client-side objects like
"parent" and "document". Why do you think it's my code that is
causing the error? :-)
Maybe because the URL has your name in it, Bob:
http://common.mvps.org/barrowsb/Clas..._generator.zip

Your "canned response" post has a link to this file, which contains
SpConnectInfo.htm, the offending file.


--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms.
Jun 27 '08 #6
Dave Anderson wrote:
Bob Barrows [MVP] wrote:
>>in ie7, SpConnectInfo.htm gives:
Line: 19
Char: 1
Error: Object required: 'parent.document.all.tags(...).item(...)'
Code: 0
".htm"? "parent.document"?
This is an asp group. I can guarantee you that since my code was
intended to be used in server-side code in a .asp page, none of the
code I provided contained a reference to client-side objects like
"parent" and "document". Why do you think it's my code that is
causing the error? :-)

Maybe because the URL has your name in it, Bob:
http://common.mvps.org/barrowsb/Clas..._generator.zip

Your "canned response" post has a link to this file, which contains
SpConnectInfo.htm, the offending file.

Oh! It never occurred to me that he was talking about that ... How did
you make the leap?

--
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.
Jun 27 '08 #7
ro***********@shaw.ca wrote:
On 28 May, 19:08, "Bob Barrows [MVP]" <reb01...@NOyahoo.SPAMcom>
wrote:
>rocketboy2...@shaw.ca wrote:
>>could anyone provide me with some simple example code of asp classic
calling adodb? specifically, i'd like the code to:
- call a couple of stored procedures that have optional parameters
- share a connection over the two calls
>>any assistance greatly appreciated and thanks in advance.

http://groups.google.com/group/micro...ng.vbscript/ms...
>--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so
I don't check it very often. If you must reply off-line, then remove
the "NO SPAM"

thanks bob,

your code provides an error... for me at least.

in ie7, SpConnectInfo.htm gives:
Line: 19
Char: 1
Error: Object required: 'parent.document.all.tags(...).item(...)'
Code: 0

any ideas?
OK, it now appears that you are attempting to use the command object
code generator. Did you read what was in the readme.txt file? Here:
Unzip the 3 asp files into a website folder.
Call the spParamFrame.asp page to load the app. Enter the information
and click the button to generate the code.
You have the code so you can modify it if you want things like trusted
connection, different variable names, etc.

The page to be loading in the browser is spParamFrame.asp
SpConnectInfo.htm is not intended to be run on its own

--
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.
Jun 27 '08 #8
Bob Barrows [MVP] wrote:
>Your "canned response" post has a link to this file, which contains
SpConnectInfo.htm, the offending file.

Oh! It never occurred to me that he was talking about that ... How
did you make the leap?
I bothered to follow your link to see if your canned response was as
thorough as I hoped it would be.


--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms.
Jun 27 '08 #9

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

Similar topics

1
by: Robert Scheer | last post by:
Hi. I wrote some stored procedures used by a web application. As I am fairly new to Oracle, I am missing some concepts when creating these procedures, as a result, the application is suffering...
1
by: ZeBerg | last post by:
Is it possible to have a stored procedure in database A while calling it from database B and have it manipulate the tables in database B (whatever the calling database happens to be)? We have a...
1
by: Lauren Quantrell | last post by:
I'm using an Access2K front end on a SQL Server2K backend. I use Scope_Identity() in a lot of stored procedures to pass the newwly inserted record's unique ID to the next select statement in the...
3
by: mdaetwyler | last post by:
Hi all I am trying to call a DB/2 v8.2 stored procedure from Perl DBI and am getting an error message telling me, that the routine could not be found in the library path. SQL0444N Routine...
2
by: singlal | last post by:
Hi, my question was not getting any attention because it moved to 2nd page; so posting it again. Sorry for any inconvenience but I need to get it resolved fast. Need your help! ...
7
by: Aleks Kleyn | last post by:
At this time my code use ODBC and adodb to access database. Working with win vista i discovered that way i cannot work with SQL server. it is not clear this is bug or Microsoft suppose to give...
8
by: Ben | last post by:
Hi! I already sent this to the ACCESS newsgroup. But since I do not know really which side is really causing the problem, I have decided to send this inquiry to this newsgroup also, if I may....
0
by: aravindalapat | last post by:
Hi All, I am facing an error when I try to invoke a remote nested stored proc. Please find the details below. 1) SP TEST1 is defined in DB2 instance DB2A. It is calling a stored procedure ...
7
by: CSharper | last post by:
Yesterday I had a heated discussion with my colleagues on what is a data centric application and having business logic in sql. I have group of people who wants to include all the business logic in...
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
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...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.