Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

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]
[marto]: #deletefacebook
[LanX]: well try to find my profile xD
[marto]: derp
[marto]: I've never had an account, and wouldn't visit the site
LanX having only a fake profile is hard if a flirt asks to befriend you
[erix]: "surveillance companies" have been rebranded as "social media"
[LanX]: I'm using whatapp though :-/
[LanX]: Snowden remins me of Evan Spiegel (... start of a new conspiracy theory)
[LanX]: yes! The same person!

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (4)
As of 2018-03-19 15:27 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (240 votes). Check out past polls.