Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (4)
As of 2018-05-22 17:57 GMT
Find Nodes?
    Voting Booth?