Is there a way to connect to SQL server without OBDC driver in perl? -


is there way connect sql server without obdc driver in perl?

i need run script in machine can not install drivers. specific machine dont have obdc driver, cant run script

my $dbh = dbi->connect("dbi:odbc:driver={sql server}".... 

i searched on web found nothing. can me plz?

if running windows, take module:

http://metacpan.org/pod/win32::odbc

(first need define odbc connection in odbc administrator)

with sample im able connect:

my $db="odbc_conn"; $db_conex = new win32::odbc($db);   $db_conex->sql("select bar foo"); while ($db_conex->fetchrow()){     $foovalue =  $db_conex->data(); } 

Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -