Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: SQL Server

by Melly (Chaplain)
on Nov 09, 2006 at 16:14 UTC ( [id://583140]=note: print w/replies, xml ) Need Help??


in reply to SQL Server

My SQL Server code tends to look something like this:

use strict; use DBI; my $database = 'northwind'; my $login = 'sqluser'; my $password = 'sqlpw'; my $host = 'OURSQLSERVER'; my $data_source = "dbi:ODBC:driver={SQL Server};Server=$host;database= +$database;uid=$login;pwd=$password;"; }

<update>IIRC you need to install DBD::ODBC - and I'm assuming you're running your perl on a Win OS...</update>

Tom Melly, tom@tomandlu.co.uk

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2024-04-26 00:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found