Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^5: 'use database' for sqlserver

by mje (Curate)
on May 23, 2013 at 08:35 UTC ( #1034908=note: print w/replies, xml ) Need Help??


in reply to Re^4: 'use database' for sqlserver
in thread 'use database' for sqlserver

$ perl -le 'use DBI; my $h = DBI->connect("dbi:ODBC:DRIVER={Easysoft O +DBC-SQL Server};server=172.20.0.39\\SQLEXPRESS;UID=xxx;PWD=yyy;"); $h +->{RaiseError} = 1;$h->do(q/use master/); $ echo $? 0 $ perl -le 'use DBI; my $h = DBI->connect("dbi:ODBC:DRIVER={Easysoft O +DBC-SQL Server};server=172.20.0.39\\SQLEXPRESS;UID=xxx;PWD=yyy;"); $h +->{RaiseError} = 1; $h->do(q/use fred/);' DBD::ODBC::db do failed: [unixODBC][Easysoft][SQL Server Driver 11.0][ +SQL Server]Database 'fred' does not exist. Make sure that the name is + entered correctly. (SQL-08004) at -e line 1.

I don't have a 'fred' database. Works for me but of course your probably using a different ODBC driver for SQL Server.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1034908]
help
Chatterbox?
[Corion]: I hope you spent the four days well without me online ;-D
[Discipulus]: more or less Corion: the monastery was so calm, maybe too much! i feared you'v lost in VR
[Discipulus]: choroba can i ask why you used *DATA{IO}?
[Corion]: Discipulus: Aaah, no, while I'm working on connecting the VR libraries to Perl, I'm not lost there ;) Although I watched The Matrix with a friend in London ;)

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (8)
As of 2016-12-06 08:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (101 votes). Check out past polls.