Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Re^3: pass MS SQL server scripts into Win32::ODBC

by Corion (Pope)
on Jan 24, 2013 at 07:46 UTC ( #1015099=note: print w/replies, xml ) Need Help??

in reply to Re^2: pass MS SQL server scripts into Win32::ODBC
in thread pass MS SQL server scripts into Win32::ODBC

None of these statements are valid SQL:

use db set nocount on declare @MRN varchar(255) set @MRN = 'xxxxxxxx' ;

Most likely, they are interpreted by whatever command line shell you use to connect to your database, and they most likely only set up output parameters and template variables that will get replaced in the real SQL later. That functionality does not live in the ODBC component of the database driver, or the database driver.

Either you shell out to the console and let it run the script, or you find out how to replicate the shell functionality with Perl.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1015099]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (2)
As of 2016-10-25 02:49 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (313 votes). Check out past polls.