in reply to Perl and MS SQL 2k5 procs

Just call it as an SQL statement. I do it all the time. Instead of select * from foo use exec sp_foo. If you want to use in/out parameters, bind them up using a prepared statement.

I'll try to dig up an example around here and put it up.

...roboticus

Update: While delving through my hard drive looking for one of my bits of code that calls a proc, I tripped across proctest1.pl, which comes straight from the DBD-ODBC-1.14 distribution. That's a fine example. There are a couple of others in there, as well.

Replies are listed 'Best First'.
Re^2: Perl and MS SQL 2k5 procs
by Eagle_f91 (Acolyte) on Apr 04, 2008 at 01:35 UTC
    Thanks I will look at proctest1.pl for more details.
Re^2: Perl and MS SQL 2k5 procs
by Eagle_f91 (Acolyte) on Apr 04, 2008 at 22:35 UTC
    I finaly got around to looking for the proctest.pl but can't find it on cpan. I run off a shard server so I am not sure of exactly where to find the .pl file your talking about.
      You can download the tarball from CPAN, then extract the archive. You'll find the code in the mytest directory.

      ...roboticus