Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re: sql connectivity

by EdwardG (Vicar)
on Jan 05, 2007 at 12:32 UTC ( #593104=note: print w/replies, xml ) Need Help??

in reply to sql connectivity

$DSN probably needs to be a connection string rather than a filename.

For example,

$DSN="Driver={SQL Server};Server=myServerAddress;Database=myDataBase;Uid=myUsername;Pwd=myPassword;"

See also

See also perldoc Win32::ODBC

NAME Win32::ODBC - ODBC Extension for Win32 SYNOPSIS To use this module, include the following statement at the top of +your script: use Win32::ODBC; Next, create a data connection to your DSN: $Data = new Win32::ODBC("MyDSN"); NOTE: *MyDSN* can be either the *DSN* as defined in the ODBC Administrator, *or* it can be an honest-to-God *DSN Connect String +*. Example: "DSN=My Database;UID=Brown Cow;PWD=Moo;"


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://593104]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (4)
As of 2018-07-20 05:31 GMT
Find Nodes?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?

    Results (424 votes). Check out past polls.