ASP, ORACLE STORED PROC Must Return A Recordset

Does anyone know how ASP calls a stored procedure in ORACLE ? I want the stored procedure to return a recordset bact to the ASP environment.

Can a stored procedure in ORACLE return a recordset to ASP. If so can you direct me to the necessary syntax that can be useful for this ?

View Replies


ADVERTISEMENT

Stored Proc

I need to also add an AND after the where like

WHERE (Id = @CId)
and MAX(end) < NOW()

CREATE PROCEDURE dbo.[sp_rsgroup]
@Id int
AS

SELECT ISNULL(Group, '') AS GroupCalc, MIN(start) AS START, COUNT(Id) AS Count
FROM Table
WHERE (Id = @CId)
GROUP BY ISNULL(Group, '')
ORDER BY start
GO

View Replies View Related

Stored Proc

What is the simplest way to open up a stored query in Access - I'v got this far but I need to open: qry_Listings.

set cnn = Server.CreateObject("ADODB.Connection")
strCon = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" &
Server.MapPath("../database/listings.mdb") '//This one is for Access
2000/2002
cnn.Open strCon

View Replies View Related

Array From Stored Proc

as I'm in the process of performance tuning, I'm trying to receive a NUMBER type array from a Stored Procedure.I made a VARRAY OF NUMBER in my stored procedure. I'm not able to receive this in a Function in ASP.

View Replies View Related

Calling A Stored Proc

I would like to call my stored proc and invoke the WITH RECOMPILE option. I can't figure out what to set in ADO to make that happen. how to make this work? BTW, I _don't_ want to create the stored proc using the WITH RECOMPILE.

View Replies View Related

Open Dynaset From Stored Proc

I need to open a Recordset with a dynamic cursor from a Stored Proc. Does anyone have the syntax?

View Replies View Related

AdDate Parameter To Stored Proc.

I am trying to pass a VBScript Date variable as value to an ADO adDate
parameter of a stored procedure (which runs in an SQL Server).
If I add the parameter like this:

oCmd.Parameters.Append oCmd.CreateParameter( "@p_Date", adDate,
adParamInput, , dParam)

where oCmd is of type ADODB.Command and dParam is a VBScript variable of
type Date
then when trying to execute the stored procedure I get the following error:

Optional feature not implemented

I was able to get round this by passing a string value in an adVarChar
parameter, but it would be easier and more readable with adDate and
Date-type variables. Is this latter possible?

View Replies View Related

How To Call A Stored Proc Asynchronously

Is it possible to call a stored procedure asynchronously from an ASP page?
We would like to be able to execute a proc and have the page continue to
process without having to wait for the proc to finish. I know you can make
a dll and call it from there, but we'd rather just be able to keep it simple
and call it from the page if we can.

View Replies View Related

XML STRING Passed To Stored Proc

I am using SQL SERVER 2005 and ASP.

Would anyone be kind enough to give me a solution to the problem below please?

If for example in the stored procedure looks like this:

-- Initialize the SQL Server XML stored procedures
EXEC sp_xml_preparedocument @xmlDoc OUTPUT, @xmlString

Insert into @TableBook
SELECT * FROM OPENXML (@xmlDoc, 'books/book') WITH
(
bookNameVARCHAR(100) 'name',
authorVARCHAR(100) 'author'
)

The question is supposing there is a node called 'Surname' but I am not adding 'Surname' to 'Author'. If I want to check 'Surname' value DOES exists and I want to replace it with 'Author' or if 'Surname' does not exist, just use 'Author' node instead.

I am not sure how you can use IF statement to check a node and put the value into SET @surname and then put something like author VARCHAR(100) '@surname' OR author VARCHAR(100) '@Author'. Just like switching it around.

View Replies View Related

Post Param From Asp To Sql Stored Proc

I am trying to run the following t-sql stored proc from my VBScript page

Create Procedure getUserInfo
(
@login nvarchar(8)
)
AS
USE proj_dashboard
SELECT f_forename, f_surname, f_profile_id
FROM t_users
WHERE f_login = @login

basically I wasnt to pull in the login of the user pass it to the proc and pull out the info for that user. I use the following sql statement Code:

View Replies View Related

Resultset Returned By Stored Proc

I've got a problem with an ASP page which calls a stored proc. The sybase stored procedure returns numeric values as shown: ...

View Replies View Related

Records Returned From Stored Proc

I've created a Stored Procedure which adds a new record and updates some more records and then returns the primary key for the added record.

The SP seems to work OK, but I'm having problems getting at the returned key in my ASP code:

"Item cannot be found in the collection corresponding to the requested name or ordinal."

A common error, but in this case I can't see why... I output the SQL instruction that is sent to the DB and have run it in Query Analyser and it runs OK and returns a single row, with a single column - the new primary key...

But when I try and access this in ASP, I get the error message....

View Replies View Related

Executing SQL Stored Proc And Returning XML Through ADO In ASP Page ??

I need to return XML from a SQL Stored Procedure which I will execute through ASP ADO code. Stored Procedure as below:

CREATE PROCEDURE pr_GetJobInfo2
@JobType int,
@CntryID int,
@JobTitle varchar(8000) OUTPUT
AS
SELECT @JobTitle = ltrim(rtrim(JobTitle))
FROM dbo.JOBS
WHERE JobType = @JobType
AND CntryID = @CntryID
FOR XML AUTO
[code]

Now the output parameter (@JobTitle) cannot be assigned to FOR XML, so what must I do ??? My ASP code reads as: ....

View Replies View Related

ASP Button To Execute Stored Proc In Table Adapter

Is it possible to add a stored proc to a table adapter and execute the proc
inside an ASP button click event?

I have a table adapter called Claimers and a sp called AddWatch. On the
onclick event I would like to call the table adapter and execute the sp.
Note that the sp does not return records. Code:

View Replies View Related

Stored Procedure In Oracle

I'm trying to access a stored procedure in oracle using asp/jscript.

I get an error message complaining about the parameters;
[Oracle][ODBC][Ora]ORA-06550: line 1, column 7: PLS-00306: wrong number or types of arguments in call to 'UPDATE_BAKERY_USER' ORA-06550: line 1, column 7: PL/SQL: Statement ignored

A Response.write returns this:
CommandText: { call BUNGE.UPDATE_BAKERY_USER(?, ?, ?) }

The stored procedure changes a users password, so the parameters are:
plogin
pold_password
pnew_password

Can anyone please help me verify my code?

Code:....

View Replies View Related

Oracle Stored Procedure APPEND

I'm trying to run a stored procedure on an Oracle database. I currently get this error message:

Error Type:
ADODB.Command (0x800A0BB9)
Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.
/live/verify_3.asp, line 24

My code is as follows: ....

View Replies View Related

Call Oracle Stored Procedure

I'm trying to call a stored procedure(package) from asp/vb using following
code but I got the error message. What's the correct syntax for oracle stored procedured? Code:

View Replies View Related

Can't Call Oracle 9i Stored Procedure From ASP

I'm trying to call a stored procedure(package) from ASP/VB using following code. But I got the error message. Code:

View Replies View Related

Getting Return Value Of Stored Procedure

I have the Following Code, that Executes a Stored Procedure and Attempt to
read a Returned Integer Value from the StoredProc.

But It gives Error ...

ADODB.Command (0x800A0BB9)
Arguments are of the wrong type, are out of acceptable range, or are in
conflict with one another.
/C4U/DBOutputParameterTest.asp, line 25

Can some one Points Out the Problem: Code:

View Replies View Related

Stored Procedure Return Value

how can i see a stored procedures return value in ASP?

View Replies View Related

Stored Procedure Does Not Return A Value?

i m trying to use a stored procedure to return one for now.. and later 2 random values from the tables. but it does not return any value and my recordset stays closed. Code:

View Replies View Related

Pass An Array Into An Oracle PL/SQL Stored Procedure From ASP?

is it possible to pass an array into an Oracle PL/SQL stored procedure from ASP? I'm trying to upload approx. 15 000 rows into Oracle and for security reasons am only permitted to access the database through PL/SQL. At the moment I've got it uploading one row at a time by looping through but this is extremely slow.

View Replies View Related

Return Recordset

There is an access database and asp page .That asp page opens connection with that database,And opens a recordset online..

Is there any way that this opened recordset can be returned to Vb6 application which requested that Asp page to open connection and recordset and return some result.

View Replies View Related

ADODB Recordset Return

I am running a query that can return over 16000 records in the recordset. The problem is that whenever the return is greater than 16000 the recordset is null instead of having data. I have been looking around the internet, not sure if this is an administrative option. I am using IIS with an ORACLE DB, and ASP XSL for the pages. Anyone know why the system seems incapable of returning over 16000 records? I can return 16000+ with simplier queries. Running the same query in SQL-PLUS works perfectly.
Here is the query I am running.

SELECT * FROM (SELECT STATUS, ADDRESS, NAME, POSITION, GROUP, POINTS, GROUP_STATUS, USER_ID, USER_DESCRIPTION, ROW_NUMBER() OVER (ORDER BY GROUP, NAME, ADDRESS) AS RANK FROM USERS U, GROUPS G, USER_GROUPS UG WHERE G.ID = UG.GROUP_ID AND U.ID = UG.USER_ID *** Additional user filtering done here ***) WHERE RANK BETWEEN 0 AND 50
I am returning 50 users per page. This all works fine until I hit the 16000 record limit, at which point there is no data in the recordset.

View Replies View Related

Faster Return Of Large Recordset

I remember reading somewhere that there is a faster way to retrieve a large recordset to display it in a table, could anyone point me in the right direction.

View Replies View Related

Server Text Return Recordset

I've got a SQL Server database, and am pulling records from it via ASP.Everything works fine, apart from the field which is stored as 'text' data type in SQL Server.If I change this data type to 'varchar' it works fine, but I need more than 8000 characters, so really I need the data type to be 'text'.Can anyone suggest why this might be happening, and how it could be resolved?

View Replies View Related

Return Recordset Of Images In Specific Cells In A Table

I have an interesting problem and am looking for some advice. I am
hoping to build an asp whereby records are pulled from SQL Server. These
records will be merely file locations for thumbnail images I hope to display
in a grid.

Rather than having a grid be constructed row-to-row, I was
wondering if it is at all possible to dynamically construct this grid as a
table of thumbnails whereby each cell (perhaps 5-6 columns across)
represents one record? I have no idea how one would construct this loop that
spans columns AND rows rather than just rows.

View Replies View Related

Choose Recordset In Stored Procedure?

I have a SQL 2000 stored procedure with several recordsets. Is there a way to query a specific recordset in a stored procedure, or will I have to loop through each recordset?

View Replies View Related

Empty Recordset Form Stored Procedure

I´m making a asp page which creates a xml-file. The values for the xml-file will be calculated in a stored procedure. This procedure returns 3 recordsets. In my query analyser the stored procedure returns the right values. The problem on my asp page is that the stored procedure is executed, but the recordset is empty.

This is the error message from my internet explorer:
ADODB.Recordset (0x800A0CC1) Item cannot be found in the collection corresponding to the requested name or ordinal.

This is the code i´m using: ....

View Replies View Related

Error Type: ADODB.Recordset (0x800A0BADODB.Recordset (0x800A0BCD)

Last week, my shopping cart was still working well until I began getting the following errors 2days ago..

Error Type:

ADODB.Recordset (0x800A0BCD)
Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record.
../order/saveorder.asp, line 157

Browser Type:

Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)

Page:
GET /main/saveorder.asp

Could you check my code below and let me know what possibly the error is?

View Replies View Related

ASP And Oracle

I'm building a website using the oracle database engine. i'm conneting
to the database using the odbc. the database is created on a webserver.
when i'm using the odbc on my local workstation the connection works.
but when i'm trying to publish the site i receive the following error:
Microsoft OLE DB Provider for ODBC Drivers error '80004005'

Specified driver could not be loaded due to system error 5 (Oracle in
OraHome92).

/arabic/news_index.asp, line 46

line 46 is when i'm opening the connection.

Note: what i mean with "my local workstation" is when i call the
website using the localhost. and i mean by "publish the site" is by
giving the website a dns name.

View Replies View Related

ASP And Oracle

When I place a record set on an asp page designed in dreamweaver. I get the following error when i try to run d page.

Microsoft OLE DB Provider for ODBC Drivers (0x80004005)

Specified driver could not be loaded due to system error 127

I am connected to the database i can see my tables i was able to make a record set but when i place it on the pace and try to prview the page in internet explorer i get the above error. I have used oracle 10g to create the database.

View Replies View Related

Asp With Oracle

i would like to ask what is the best and easiest way to connect an ASP application to an ORacle database? i will be accessing the database server from our network. do i still need to install anything in my local pc?

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved