Arrays to Oracle Stored Procedures

2009-05-19 Thread Turlapati, Srikanth (Education Cabinet)
Is it possible with Latest DBI modules to pass an array [string or integer] to Oracle stored procedure which accepts an array? Procedure specification is like this: Create or replace procedure p_getarray_perl(p_arr_value dbms_sql.varchar2_table) -- String array. How do I pass an array

RE: Arrays to Oracle Stored Procedures

2009-05-19 Thread Martin Gainty
fourni. Subject: Arrays to Oracle Stored Procedures Date: Tue, 19 May 2009 11:48:52 -0400 From: srikanth.turlap...@ky.gov To: dbi-users@perl.org Is it possible with Latest DBI modules to pass an array [string or integer] to Oracle stored procedure which accepts an array? Procedure

RE: Arrays to Oracle Stored Procedures

2009-05-19 Thread Turlapati, Srikanth (Education Cabinet)
, Srikanth (Education Cabinet); dbi-users@perl.org Subject: RE: Arrays to Oracle Stored Procedures --you can pass in a huge string then in your Oracle Procedure --then split the pieces by known delimiter --Here is an Oracle Procedure which uses a Oracle array type to refer to HUGE varchar2

Yet Another DBIX:Class and Stored Procedures Question

2008-07-30 Thread Karen Hoofnagle
I've been trying to come up with a consistent and comfortable approach to dealing with a large number of complex action-performing stored procedures I've got sitting in my Oracle database -- things with names like Assign_customer that perform many actions across several tables and don't

Stored Procedures that return a recordset

2006-05-21 Thread Daniel Kasak
Greetings. Is there a driver-neutral way of executing a stored procedure and fetching a recordset from it? I've noticed some documentation for binding input variables with Oracle. I've also noticed I can call a procedure by name ( and list the input variables after the procedure name ) when I

DBD::Pg and stored procedures

2005-06-11 Thread Bill Kurland
Windows 2000 Active State Perl 5.6.1.638 DBI 1.37 DBD::Pg 0.95 - this is the only win32 binary I have been able to find I would like to be able to execute a pgsql stored procedure from within my perl program and retrieve the return value. So far as I have been able to determine, that is not

Newbie needs help on stored procedures

2005-06-09 Thread Pam Derks
Hello all, Am a newbie to SQL Server and the DBI interface and could use some help. I'm able connect to MSSQL via DBD::Sybase. And am able to run a stored procedure (with hard coded values that are inserted into a table). Now, how would I pass values (approximately 30) to this stored

Re: Executing Oracle stored procedures

2005-05-10 Thread Job Miller
The DBD::Oracle docs cover how to call stored procedures. However, if you have stored procedures that generate web pages via the mod_plsql web toolkit functions/procedures in the htp/htf packages, you should be using the mod_plsql gateway to execute them. Those functions/procedures

RE: Executing Oracle stored procedures

2005-05-10 Thread Reidy, Ron
. -Original Message- From: Kevin Moore [mailto:[EMAIL PROTECTED] Sent: Monday, May 09, 2005 10:32 PM To: 'dbi-users@perl.org' Subject: Executing Oracle stored procedures All, I've got Apache v2.x, Oracle 9i, running on Red Hat linux 9, mod_perl, and DBI installed and working. I'd like

Executing Oracle stored procedures

2005-05-09 Thread Kevin Moore
All, I've got Apache v2.x, Oracle 9i, running on Red Hat linux 9, mod_perl, and DBI installed and working. I'd like to be able to execute Oracle stored procedures. Is anyone doing this without the mod_plsql plugin? If so, would you be wlling to share tips for making this work. I've already

Re: Stored Procedures

2005-04-22 Thread Michael A Chase
On 04/22/2005 09:30 AM, Denesa K Shaw said: How do I pass an one parameter to a External Stored Procedure? I don't think anyone here has a clue. Without knowing what DBD driver you are using, the answer would be pure guesswork. Please read the URL in my signature. If you have a DBI 1.38 or

Stored Procedures

2005-04-22 Thread Denesa K Shaw
How do I pass an one parameter to a External Stored Procedure?

Running stored procedures

2005-03-01 Thread Moreno, Javier
Hi all, This is probably a dumb question, but how do I run stored procedures with the DBI? I am using DBD::ODBC. Regards, Javier Moreno

Re: Running stored procedures

2005-03-01 Thread Brian Roy
On Tue, 1 Mar 2005 11:49:40 -0600, Moreno, Javier [EMAIL PROTECTED] wrote: Hi all, This is probably a dumb question, but how do I run stored procedures with the DBI? I am using DBD::ODBC. my $dbh = DBI-connect(dbi:ODBC:server, 'name', 'password'); my $query = exec spTest ; my $sth = $dbh

Re: Running stored procedures

2005-03-01 Thread Michael A Chase
Quoting Moreno, Javier [EMAIL PROTECTED]: This is probably a dumb question, but how do I run stored procedures with the DBI? I am using DBD::ODBC. It's pretty low level, but you may find some of the links in the perldoc useful. http://search.cpan.org/~jurl/DBD-ODBC/ODBC.pm A Google search

Re: Running stored procedures

2005-03-01 Thread amonotod
From: Brian Roy [EMAIL PROTECTED] Date: 2005/03/01 Tue PM 12:28:50 CST If anyone is willing to chime in on how to pull out OUTPUT params I would love to have an example. I just gave up getting it to work. This is from the first hit on a googling of 'perl dbi stored procedures output

Re: Running stored procedures

2005-03-01 Thread martin . evans
explain how to get output parameters and procedure return values. Martin Quoting Brian Roy [EMAIL PROTECTED]: On Tue, 1 Mar 2005 11:49:40 -0600, Moreno, Javier [EMAIL PROTECTED] wrote: Hi all, This is probably a dumb question, but how do I run stored procedures with the DBI? I am using DBD

RE: Running stored procedures

2005-03-01 Thread Jeff Urlwin
On Tue, 1 Mar 2005 11:49:40 -0600, Moreno, Javier [EMAIL PROTECTED] wrote: Hi all, This is probably a dumb question, but how do I run stored procedures with the DBI? I am using DBD::ODBC. my $dbh = DBI-connect(dbi:ODBC:server, 'name', 'password'); my $query = exec spTest

Re: Running stored procedures

2005-03-01 Thread martin . evans
]: On Tue, 1 Mar 2005 11:49:40 -0600, Moreno, Javier [EMAIL PROTECTED] wrote: Hi all, This is probably a dumb question, but how do I run stored procedures with the DBI? I am using DBD::ODBC. my $dbh = DBI-connect(dbi:ODBC:server, 'name', 'password'); my $query = exec spTest

DBD::ODBC, DBD::Sybase and parameters to stored procedures

2005-02-10 Thread DMeleshko
Hi all, Trying to solve a puzzle -- how to write a cross-platform code to call stored procedure with output parameters and return codes. Environment: - MS SQL 2000 database - Win32, ActivePerl - 5.8.6, DBD::ODBC - Linux, perl 5.8.0, DBD::Sybase (freeTDS) Stored procedure:

Re: DBD::ODBC, DBD::Sybase and parameters to stored procedures

2005-02-10 Thread David Goodman
Placeholders are only supported for values in select statements. For your exec, you will need to substitute in values with perl variables. That's the essence of the error message. regards, David --- [EMAIL PROTECTED] wrote: Hi all, Trying to solve a puzzle -- how to write a cross-platform

Re: [Spam: 05.3] Re: DBD::ODBC, DBD::Sybase and parameters to stored procedures

2005-02-10 Thread DMeleshko
To dbi-users@perl.org cc Subject [Spam: 05.3] Re: DBD::ODBC, DBD::Sybase and parameters to stored procedures Placeholders are only supported for values in select statements. For your exec, you will need to substitute in values with perl variables. That's the essence of the error message

Re: Oracle 10g, Stored Procedures and Perl's Internal UTF8 Flag

2004-12-22 Thread Tim Bunce
returning utf8 strings from Oracle via stored procedures and there is a problem with my set-up? Or have I stumbled upon something else? An example of my test script is below. (I'm in the process of upgrading from Oracle 8i and DBD::Oracle 1.12) Thanks, Alan #!/usr/bin

Oracle 10g, Stored Procedures and Perl's Internal UTF8 Flag

2004-12-21 Thread Alan Seegmiller
to. Are there other users with similiar set-ups successfully returning utf8 strings from Oracle via stored procedures and there is a problem with my set-up? Or have I stumbled upon something else? An example of my test script is below. (I'm in the process of upgrading from Oracle 8i and DBD::Oracle

Re: Oracle 10g, Stored Procedures and Perl's Internal UTF8 Flag

2004-12-21 Thread Thilo Planz
successfully returning utf8 strings from Oracle via stored procedures and there is a problem with my set-up? Or have I stumbled upon something else? I do not think it is a problem with your setup. I have the same situation here (Oracle 9i , Perl 5.8.5 , DBD::Oracle 1.15). Thilo

Re: Oracle 10g, Stored Procedures and Perl's Internal UTF8 Flag

2004-12-21 Thread Lincoln A. Baxter
module to turn the flag on, but of course I would rather not have to. Are there other users with similiar set-ups successfully returning utf8 strings from Oracle via stored procedures and there is a problem with my set-up? Or have I stumbled upon something else? An example of my test script

Stored Procedures Parameters

2004-10-21 Thread Denesa K Shaw
Hi, I'm calling a stored procedure called Pg_Move_Files.Pr_Return_Cycle_File. After the stored procedure executes, it returns an out parameter called out_v_RECV_FILE_NM. I have a perl script which uses the DBI:: Module. My Question is: Is the correct way retrieve the value of my out

RE: Stored Procedures Parameters

2004-10-21 Thread Reidy, Ron
There are examples in the DBD::Oracle docs. - Ron Reidy Lead DBA Array BioPharma, Inc. -Original Message- From: Denesa K Shaw [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 20, 2004 2:28 PM To: [EMAIL PROTECTED] Subject: Stored Procedures Parameters Hi, I'm

Re: Stored Procedures Parameters

2004-10-21 Thread Scott T. Hildreth
perldoc DBD::Oracle will show you how to do this. On Wed, 2004-10-20 at 15:27, Denesa K Shaw wrote: Hi, I'm calling a stored procedure called Pg_Move_Files.Pr_Return_Cycle_File. After the stored procedure executes, it returns an out parameter called out_v_RECV_FILE_NM. I have a perl

Re: Stored Procedures Parameters

2004-10-21 Thread Scott T. Hildreth
Sorry, I am assuming you are using Oracle, are you? Look for bind_paraminout(). On Thu, 2004-10-21 at 08:34, Scott T. Hildreth wrote: perldoc DBD::Oracle will show you how to do this. On Wed, 2004-10-20 at 15:27, Denesa K Shaw wrote: Hi, I'm calling a stored procedure called

Re: Stored Procedures Parameters

2004-10-21 Thread Scott T. Hildreth
...bind_param_inout(), typo. On Thu, 2004-10-21 at 08:36, Scott T. Hildreth wrote: Sorry, I am assuming you are using Oracle, are you? Look for bind_paraminout(). On Thu, 2004-10-21 at 08:34, Scott T. Hildreth wrote: perldoc DBD::Oracle will show you how to do this. On Wed,

Re: Stored Procedures Parameters

2004-10-21 Thread Denesa K Shaw
. HildrethTo: Denesa K Shaw [EMAIL PROTECTED] [EMAIL PROTECTED] cc: [EMAIL PROTECTED] [EMAIL PROTECTED] tgroup.com Subject: Re: Stored

Re: Stored Procedures Parameters

2004-10-21 Thread Denesa K Shaw
Subject: Re: Stored Procedures Parameters 10/21/2004 08:36

RE: Stored Procedures Parameters

2004-10-21 Thread Denesa K Shaw
: 10/21/2004 09:13 AM Subject: RE: Stored Procedures Parameters

RFC: scope of database routines / stored procedures

2004-09-17 Thread Darren Duncan
I am thinking of making a significant design change to my SQL::SyntaxModel / Rosetta modules within the next week or so, but I am debating whether it would be an improvement or a step backwards. This change would be mostly to data, rather than code, because the modules are heavily data-driven.

Re: [Poop-group] RFC: scope of database routines / stored procedures

2004-09-17 Thread Tim Bunce
Darren, and anyone replying, please don't cross-post to [EMAIL PROTECTED] with topics not directly related to the DBI or drivers. Thnaks. Tim.

RE: DB2 Stored Procedures and Perl

2004-08-24 Thread Jeff Urlwin
Folks, I have tried to use many different combinations of trying to call a DB2 stored procedure through a cgi script but this is what I see in the error logs, [Fri Aug 20 10:46:56 2004] mail2_form.pl: DBD::ODBC::st execute failed: [IBM][CLI Driver][DB2] SQL0440N No function by

DB2 Stored Procedures and Perl

2004-08-20 Thread samarth_kumar
Folks, I have tried to use many different combinations of trying to call a DB2 stored procedure through a cgi script but this is what I see in the error logs, [Fri Aug 20 10:46:56 2004] mail2_form.pl: DBD::ODBC::st execute failed: [IBM][CLI Driver][DB2] SQL0440N No function by the name

Calling DB2 Stored Procedures through DBD::ODBC

2004-08-06 Thread samarth_kumar
Folks, I am not sure if this has been answered before or not but on searching the list archives I haven't been able to get an answer. I am connecting to DB2 using DBD::ODBC and am also able to run select statements. Now I have to run a stored procedure through the connection and was wondering

executing MS SQL Server stored procedures

2004-07-16 Thread PerlDiscuss - Perl Newsgroups and mailing lists
I am trying to run an MS SQL server stored procedure using Perl. We are using SQL Server 2000. Using the current Perl and DBI. Can I use the ODBC DBD? I am using a prepare,execute and fetch. Has anyone tried this and do you have examples or how to do this? I use the 'exec' command but get syntax

Re: executing MS SQL Server stored procedures

2004-07-16 Thread Jenda Krynicky
From: [EMAIL PROTECTED] (PerlDiscuss - Perl Newsgroups and mailing lists) I am trying to run an MS SQL server stored procedure using Perl. We are using SQL Server 2000. Using the current Perl and DBI. Can I use the ODBC DBD? I am using a prepare,execute and fetch. Has anyone tried this and do

HELP PLEASE! Problems using returning a cursor to DBI DBD::Oracle using Stored Procedures

2004-02-04 Thread Michael Cesar
Tim, Oracle 8.1.7 DBI 1.28 DBD::Oracle 1.12 I hope this email does not irriatate you but I really need some help. I have an Oracle DBA I need to work with who doesn't seem to how to write PL/SQL for Perl DBI. He insists on writting stored procedures which loop through the results set

Re: HELP PLEASE! Problems using returning a cursor to DBI DBD::Oracle using Stored Procedures

2004-02-04 Thread Michael A Chase
On 02/04/2004 06:56 AM, Michael Cesar wrote: Oracle 8.1.7 DBI 1.28 DBD::Oracle 1.12 I hope this email does not irriatate you but I really need some help. I have an Oracle DBA I need to work with who doesn't seem to how to write PL/SQL for Perl DBI. He insists on writting stored procedures which

Re: HELP PLEASE! Problems using returning a cursor to DBI DBD::Oracle using Stored Procedures

2004-02-04 Thread Michael A Chase
On 02/04/2004 12:55 PM, Michael Cesar wrote: Heres the entire script. Michael Cesar #!/usr/local/bin/perl -w use strict; use DBI; use Data::Dumper; use DBD::Oracle qw(:ora_types); my (@result_arref,@row); my $dbh = DBI-connect( 'dbi:Oracle:XXX', 'abc',

Re: HELP PLEASE! Problems using returning a cursor to DBI DBD::Oracle using Stored Procedures

2004-02-04 Thread Michael A Chase
On 02/04/2004 06:09 PM, Michael Cesar wrote: Thanks a million... BTW, if you are really putting the SELECT text in the script, prepare()ing a SELECT by itself and executing that would be more efficient and avoids having a cursor returned from a package. Why is this so? My DBA wants everything

Stored procedures and DBD::Sybase

2003-11-10 Thread Steven Velez
Hello, I am using DBI v. 1.38, DBD::Sybase v. 1.01 (?), and FreeTDS 0.61.2 to connect to an MSSQL 6.5 database from a Linux client and I am having problems retrieving the values of out parameters to a stored procedure call. I followed the example in the DBD::Sybase docs modifying for my purpose

Re: Stored procedures and DBD::Sybase

2003-11-10 Thread Chuck Fox
Steven, I believe that you are misunderstanding what it is that you are receiving. The only output from your commands is the print @c. This comes through the error handler since a print statement is a level 0 or level 10 message from the server and not a result set. Try changing the print

RE: Stored procedures and DBD::Sybase

2003-11-10 Thread Steven Velez
: [EMAIL PROTECTED] Subject: Re: Stored procedures and DBD::Sybase Steven, I believe that you are misunderstanding what it is that you are receiving. The only output from your commands is the print @c. This comes through the error handler since a print statement is a level 0 or level 10

Re: Stored procedures and DBD::Sybase

2003-11-10 Thread Michael Peppler
On Mon, 2003-11-10 at 06:30, Steven Velez wrote: Hello, I am using DBI v. 1.38, DBD::Sybase v. 1.01 (?), and FreeTDS 0.61.2 to connect to an MSSQL 6.5 database from a Linux client and I am having problems retrieving the values of out parameters to a stored procedure call. MS-SQL doesn't

(Fwd) Pass Arrays to Stored Procedures in Oracle

2003-08-14 Thread Tim Bunce
- Forwarded message from Grimes, Greg [EMAIL PROTECTED] - Delivered-To: [EMAIL PROTECTED] Subject: Pass Arrays to Stored Procedures in Oracle Date: Wed, 13 Aug 2003 14:28:38 -0500 From: Grimes, Greg [EMAIL PROTECTED] To: [EMAIL PROTECTED], Steve Baldwin [EMAIL PROTECTED] X

Stored procedures returning an array...how do I get hold of it? (using DBD::Oracle)

2003-06-06 Thread Hamish Whittal
Hi all, I have a stored procedure that returns an array. Here is the PROC definition: TYPE tab_num10 is TABLE of NUMBER(10) INDEX BY BINARY_INTEGER; -- -- PROCEDURE Add_Device( p_IPAddress in varchar2, p_DeviceType in varchar2, p_DeviceID OUT Device_Management.tab_num10); I have tried the

Re: Passing arrays as arguments to Stored Procedures

2003-03-11 Thread Ronald J Kimball
On Tue, Mar 11, 2003 at 03:54:34AM -0800, N, PraveenX wrote: Hi, I am using PERL version 5.6. One of the applications developed needs data in arrays to be passed as arguments to stored procedure in Oracle 8i. You still haven't told us the versions of DBI and DBD::Oracle that you are

Re: DBD::Pg and stored procedures

2003-01-20 Thread David Wheeler
On Monday, January 13, 2003, at 11:03 AM, Jeff Boes wrote: My problem is that for such procedures, doing: select fn_stored_proc(id_field) from table_name; opens and closes the database connection over and over. This is very inefficient. Is there some way to inherit the connection so it

DB2 PERL Stored Procedures

2003-01-15 Thread Miguel Molowny Lopez
Hi, I have a problem with PERL and the stored procedures. I can't execute my $sth_proc = $dbh-prepare(call db2inst1.sert_resource(?,3,?,?,?,?)); $sth_proc-bind_param(1,$LOG IN_NAME); $sth_proc-bind_param(2,$cpu); $sth_proc-bind_param(3,$macc); $sth_proc-bind_param(4,$anno); $sth_proc

DBD::Pg and stored procedures

2003-01-13 Thread Jeff Boes
Has anyone here done any work with PostgreSQL stored procedures which themselves use DBI? Essentially, I've got a stored procedure that looks like ... CREATE FUNCTION fn_stored_proc(integer) as ' use DBI; my $dbh = DBI-connect(...); my $sth = $dbh-prepare(...); $sth-execute

RE: Stored Procedures with DBD::Sybase and FreeTDS

2002-12-24 Thread RWilbert
20, 2002 11:06 AM To: [EMAIL PROTECTED] Subject: Re: Stored Procedures with DBD::Sybase and FreeTDS On Thu, 2002-12-19 at 13:35, [EMAIL PROTECTED] wrote: Has anyone had a problem calling to a stored procedure that performs an insert and returns no data ? I am currently having

Stored Procedures with DBD::Sybase and FreeTDS

2002-12-20 Thread RWilbert
Has anyone had a problem calling to a stored procedure that performs an insert and returns no data ? I am currently having that and the error that I am getting is: dbih_setup_fbav: invalid number of fields: 0, NUM_OF_FIELDS attribute probably not set right at

Re: Stored Procedures with DBD::Sybase and FreeTDS

2002-12-20 Thread Michael Peppler
On Thu, 2002-12-19 at 13:35, [EMAIL PROTECTED] wrote: Has anyone had a problem calling to a stored procedure that performs an insert and returns no data ? I am currently having that and the error that I am getting is: dbih_setup_fbav: invalid number of fields: 0, NUM_OF_FIELDS attribute

RE: Perl DBI and Stored Procedures

2002-12-19 Thread Vorce, Tim (T.)
ones. You can use placeholders if you wish. Tim Vorce Ford Motor Company [EMAIL PROTECTED] -Original Message- From: Zhao, Charles [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 18, 2002 4:50 PM To: [EMAIL PROTECTED] Subject: RE: Perl DBI and Stored Procedures Thanks for all

RE: Perl DBI and Stored Procedures

2002-12-19 Thread Zhao, Charles
output ones. You can use placeholders if you wish. Tim Vorce Ford Motor Company [EMAIL PROTECTED] -Original Message- From: Zhao, Charles [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 18, 2002 4:50 PM To: [EMAIL PROTECTED] Subject: RE: Perl DBI and Stored Procedures Thanks for all

Re: Perl DBI and Stored Procedures

2002-12-19 Thread Stephen R. Wilcoxon
Have you tried this? $sth = $dbh-prepare(exec $database..storedProcedure $parm); On Thu 2002/12/19 10:12:11 PST, Zhao, Charles [EMAIL PROTECTED] writes : $database is the name of the database, as it is not included in the = data source name. On my $server there are dozens of databases so

RE: Perl DBI and Stored Procedures

2002-12-18 Thread Zhao, Charles
error in the statement preparation. Any ideas what's wrong with the above? Thanks a lot. -Original Message- From: Brien Pirkle [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 05, 2002 12:38 AM To: 'Zhao, Charles '; '[EMAIL PROTECTED] ' Subject: RE: Perl DBI and Stored Procedures

RE: calling oracle stored procedures using DBI - URGENT

2002-12-13 Thread Nanditha Gade
, December 12, 2002 11:23 AM To: [EMAIL PROTECTED] Subject: calling oracle stored procedures using DBI - URGENT Hi, I have a stored procedure which returns an Oracle OBJECT. This object contains a list of objects, which inturn contain the table. I would like to read a column from this table

Re: calling oracle stored procedures using DBI - URGENT

2002-12-13 Thread Michael A Chase
On Thu, 12 Dec 2002 16:20:21 -0800 (PST) Nanditha Gade [EMAIL PROTECTED] wrote: Thanks for the info. But i have a restriction that i can't create procedures on the database... You can do the conversion in an anonymous block that assigns the values to bind variables. DECLARE o1 object;

Perl DBI and Stored Procedures

2002-12-04 Thread Zhao, Charles
I need to call stored procedures directly from Perl -- don't want to use any shell script in between. Can anybody please give me any tips how to do it? Thanks.

Re: Perl DBI and Stored Procedures

2002-12-04 Thread Michael A Chase
On Wed, 4 Dec 2002 15:27:02 -0800 Zhao, Charles [EMAIL PROTECTED] wrote: I need to call stored procedures directly from Perl -- don't want to use any shell script in between. Can anybody please give me any tips how to do it? RTFM: http://xmlproj.com/fom-serve/cache/49.html For any more

RE: Perl DBI and Stored Procedures

2002-12-04 Thread Zhao, Charles
Sybase sql servers is what I am using. So far every reply has been very helpful. Thanks. -Original Message- From: Michael A Chase [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 04, 2002 4:03 PM To: [EMAIL PROTECTED]; Zhao, Charles Subject: Re: Perl DBI and Stored Procedures

RE: Perl DBI and Stored Procedures

2002-12-04 Thread Michael Peppler
On Wed, 2002-12-04 at 16:13, Zhao, Charles wrote: Sybase sql servers is what I am using. So far every reply has been very helpful. There's nothing magic about executing stored procedures with DBD::Sybase. You can run them like any other SQL statement. Michael -Original Message

RE: Calling SQLServer Stored Procedures

2002-11-29 Thread Brien Pirkle
Roger, Thank you v. much. This is exactly the info I was looking for. Rgds, Brien -Original Message- From: Roger Perttu To: Brien Pirkle; '[EMAIL PROTECTED] ' Sent: 28/11/02 16:47 Subject: Re: Calling SQLServer Stored Procedures Brien Pirkle wrote: Jeff, So, assuming sp_foo takes

Calling SQLServer Stored Procedures

2002-11-28 Thread Brien Pirkle
How can I execute a SQL Server stored proc from my Perl script? The Cheeta book (DBD::ODBC Driver pg 296) suggests using the following ODBC escape sequence: {call procedure1_name} Fine. But what's the rest of the syntax? My platform is NT, ActivePerl 633...database is SQLServer2000. TIA,

Re: Calling SQLServer Stored Procedures

2002-11-28 Thread Roger Perttu
Brien Pirkle wrote: How can I execute a SQL Server stored proc from my Perl script? The Cheeta book (DBD::ODBC Driver pg 296) suggests using the following ODBC escape sequence: {call procedure1_name} Fine. But what's the rest of the syntax? From BOL: The ODBC CALL escape sequence for

RE: Calling SQLServer Stored Procedures

2002-11-28 Thread Jeff Urlwin
How can I execute a SQL Server stored proc from my Perl script? The Cheeta book (DBD::ODBC Driver pg 296) suggests using the following ODBC escape sequence: {call procedure1_name} Fine. But what's the rest of the syntax? Err, that is the syntax. If your procedure name is sp_foo,

RE: Calling SQLServer Stored Procedures

2002-11-28 Thread Brien Pirkle
-Original Message- From: Jeff Urlwin To: Brien Pirkle; [EMAIL PROTECTED] Sent: 28/11/02 14:55 Subject: RE: Calling SQLServer Stored Procedures How can I execute a SQL Server stored proc from my Perl script? The Cheeta book (DBD::ODBC Driver pg 296) suggests using the following ODBC

Re: Calling SQLServer Stored Procedures

2002-11-28 Thread Roger Perttu
Brien Pirkle wrote: Jeff, So, assuming sp_foo takes no paramters, my whole script could be: # use DBI; my $dbh = DBI-connect('DBI:ODBC:OSTDB', 'user', 'password') or die Couldn't connect to database: . DBI-errstr; {call sp_foo} #More like this: my

MS-SQL Stored Procedures - DBI

2002-08-29 Thread Michael Dalziel
All, Having difficulty with an error message no statement executing against the following my $dbh = DBI-connect($DATA_SOURCE,$USER,$PASSWORD,{AutoCommit = 0, RaiseError = 0, PrintError = 0 }) or error(Can`t connect to db: DBI::errstr, 1,2); # DBI-trace(2); my $sth =

RE: MS-SQL Stored Procedures - DBI

2002-08-29 Thread Jeff Urlwin
Having difficulty with an error message no statement executing against the following my $dbh = DBI-connect($DATA_SOURCE,$USER,$PASSWORD,{AutoCommit = 0, RaiseError = 0, PrintError = 0 }) or error(Can`t connect to db: DBI::errstr, 1,2); # DBI-trace(2); my $sth =

Re: MS-SQL Stored Procedures - DBI

2002-08-29 Thread Michael Peppler
://www.mbay.net/~mpeppler [EMAIL PROTECTED] / ZetaTools, Inc / http://www.zetatools.com ZetaTools: Call perl functions as Sybase stored procedures! signature.asc Description: This is a digitally signed message part

Re: MS-SQL Stored Procedures - DBI

2002-08-29 Thread Michael Peppler
://www.mbay.net/~mpeppler [EMAIL PROTECTED] / ZetaTools, Inc / http://www.zetatools.com ZetaTools: Call perl functions as Sybase stored procedures! signature.asc Description: This is a digitally signed message part

RE: Problem with stored procedures with inserts.

2002-07-30 Thread Howard, Steven (US - Tulsa)
: RE: Problem with stored procedures with inserts. Ok -- I have a quick fix for this which I'll release shortly. I still need to look into a few other bugs. This may not be a complete fix, but it seems to resolve the issues. I plan on making a SQLServer specific set of tests that add

RE: Problem with stored procedures with inserts.

2002-07-29 Thread Jeff Urlwin
I am having a problem with a script after upgrading the DBD::ODBC the script was running from version 0.28 to 0.45.8. I am getting invalid cursor state errors on stored procedures that contain insert queries. This is using MS SQL 7.0, Activestate Perl 5.6.1 bild 631. Is there something

RE: Problem with stored procedures with inserts.

2002-07-29 Thread Jeff Urlwin
- From: Jeff Urlwin [mailto:[EMAIL PROTECTED]] Sent: Monday, July 29, 2002 10:48 AM To: Sthoward; [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: RE: Problem with stored procedures with inserts. I am having a problem with a script after upgrading the DBD::ODBC the script was running from

RE: Problem with stored procedures with inserts.

2002-07-29 Thread Jeff Urlwin
]] Sent: Monday, July 29, 2002 10:48 AM To: Sthoward; [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: RE: Problem with stored procedures with inserts. I am having a problem with a script after upgrading the DBD::ODBC the script was running from version 0.28 to 0.45.8. I am getting invalid

Re: Stored procedures and Perl DBI

2002-04-20 Thread Michael A Chase
From: T. Murlidharan Nair [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, April 19, 2002 12:57 PM Subject: Stored procedures and Perl DBI Has anyone executed a stored procedures from a perl CGI. I am having problems when there are many rows returned. When the return result

Executing stored procedures

2002-04-16 Thread Sean Culhane
Folks, I'm in the process of redesigning a web-based interface for a database driven website. The previous iteration of this system had SQL queries embedded within the scripts themselves. In the second version, I'd like to use stored procedures to streamline the database transactions

Re: Executing stored procedures

2002-04-16 Thread Amarnath Habib
a web-based interface for a database driven website. The previous iteration of this system had SQL queries embedded within the scripts themselves. In the second version, I'd like to use stored procedures to streamline the database transactions. Unfortunately, I've come up short on resources

Re: Executing stored procedures

2002-04-16 Thread Michael A Chase
From: Sean Culhane [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, April 16, 2002 21:08 Subject: Executing stored procedures I'm in the process of redesigning a web-based interface for a database driven website. The previous iteration of this system had SQL queries embedded within

DBD::Proxy connecting to Oracle using PL/SQL and stored procedures

2002-04-08 Thread Ben Lowe - RMC EMEA - Web Developer
] List-Subscribe: mailto:[EMAIL PROTECTED] Delivered-To: mailing list [EMAIL PROTECTED] Date: Fri, 5 Apr 2002 09:55:43 +0100 (BST) From: Ben Lowe - RMC EMEA - Web Developer [EMAIL PROTECTED] Subject: DBD::Proxy connecting to Oracle using PL/SQL and stored procedures To: [EMAIL PROTECTED] Hello

Re: DBD::Proxy connecting to Oracle using PL/SQL and stored procedures

2002-04-08 Thread Tim Bunce
[EMAIL PROTECTED] Date: Fri, 5 Apr 2002 09:55:43 +0100 (BST) From: Ben Lowe - RMC EMEA - Web Developer [EMAIL PROTECTED] Subject: DBD::Proxy connecting to Oracle using PL/SQL and stored procedures To: [EMAIL PROTECTED] Hello, This is my first post to this list. I need to be able to run PL/SQL

DBD::Proxy connecting to Oracle using PL/SQL and stored procedures

2002-04-05 Thread Ben Lowe - RMC EMEA - Web Developer
Hello, This is my first post to this list. I need to be able to run PL/SQL and oracle stored procedures using the perl DBI. I am using the DBD::Proxy driver to connect to the oracle server on another host. I cannot get the following simple code to work. my $p1; my $csr = $dbh-prepare(q

Re: Sybase stored procedures

2002-04-04 Thread Tim Noll
On 2 Apr 2002 at 12:51, [EMAIL PROTECTED] wrote: Where I work, we use a lot (thousands) of Sybase stored procedures and have only recently adopted DBI and DBD::Sybase. Is there any DBIx-type module out there that handles fetching the return status and output params in an intuitive way

Re: Sybase stored procedures

2002-04-04 Thread Tim Noll
On 2 Apr 2002 at 19:43, Tim Bunce wrote: [EMAIL PROTECTED] wrote: I have a proof-of-concept module that does this, tentatively called DBIx::Sybase::StoredProc, I'd suggest just Sybase::StoredProc Why doesn't this fit into the DBIx namespace, in your opinion? Just curious. -Tim

Re: Sybase stored procedures

2002-04-04 Thread Tim Bunce
On Thu, Apr 04, 2002 at 12:22:34PM +0100, Tim Noll wrote: On 2 Apr 2002 at 19:43, Tim Bunce wrote: [EMAIL PROTECTED] wrote: I have a proof-of-concept module that does this, tentatively called DBIx::Sybase::StoredProc, I'd suggest just Sybase::StoredProc Why doesn't this fit

Re: Sybase stored procedures

2002-04-03 Thread John_Tobey
. Does inserting a return statement make the script fail for you? Thanks. -John [EMAIL PROTECTED] on 04/02/2002 02:55:54 PM To: Michael Peppler [EMAIL PROTECTED] cc: [EMAIL PROTECTED] (bcc: John Tobey/Intdata) Subject: Re: Sybase stored procedures Michael Peppler [EMAIL PROTECTED

Sybase stored procedures

2002-04-02 Thread John_Tobey
Hi all, Where I work, we use a lot (thousands) of Sybase stored procedures and have only recently adopted DBI and DBD::Sybase. Is there any DBIx-type module out there that handles fetching the return status and output params in an intuitive way? A quick search of CPAN has revealed nothing. I

Re: Sybase stored procedures

2002-04-02 Thread Michael Peppler
[EMAIL PROTECTED] writes: Where I work, we use a lot (thousands) of Sybase stored procedures and have only recently adopted DBI and DBD::Sybase. Is there any DBIx-type module out there that handles fetching the return status and output params in an intuitive way? A quick search of CPAN

Re: Sybase stored procedures

2002-04-02 Thread Tim Bunce
On Tue, Apr 02, 2002 at 12:51:49PM -0500, [EMAIL PROTECTED] wrote: I have a proof-of-concept module that does this, tentatively called DBIx::Sybase::StoredProc, I'd suggest just Sybase::StoredProc Tim.

Re: Sybase stored procedures

2002-04-02 Thread John_Tobey
Michael Peppler [EMAIL PROTECTED] wrote: See the new 'exec proc syntax (with placeholders) that is supported in 0.94. This does away with the need to declare OUTPUT parameters as T-SQL variables. Is this also in 0.93 as the manpage suggests? We have installed 0.93 and upgrading is a

Oracle Stored Procedures and Packages

2002-02-15 Thread Adam Gent
Hi, I am trying to run an oracle stored procedure through the DBI the procedure is stored in a package. In the DBI faq it say that this is possible but I can not seem to get it working. This is the code I am using #!/usr/local/bin/perl use DBI; use CGI; print Content-Type: text/html\n\n;

Oracle wrapped stored procedures.

2002-02-15 Thread Robert Kuropkat (MIS Contractor)
I have some stored procedures and functions received from a third party that have been wrapped. Is it possible to use DBD::Oracle to install these? The $rv = $sth-do($statement); call is failing with: Can't mix placeholder styles (:1/:foo) at DBD/Oracle.pm line 293. Where

Re: Oracle Stored Procedures and Packages

2002-02-15 Thread Michael A Chase
- Original Message - From: Adam Gent [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, February 15, 2002 15:02 Subject: Oracle Stored Procedures and Packages I am trying to run an oracle stored procedure through the DBI the procedure is stored in a package. In the DBI faq it say

  1   2   >