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

Re: Reviewing Rows from MSSQL SELECT statement

by Grygonos (Chaplain)
on Jun 08, 2005 at 08:38 UTC ( [id://464659]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Reviewing Rows from MSSQL SELECT statement

Not trying to deflect your question, but do you gain anything from using the MSSQL:SQLLib over say... DBI? DBI is database independant, so if you ever had to transition this code to another platform, the work would be minimal, compared to re-writing it from a platform specific module like you're using. I'm not trying to be a DBI zealot at all. DBI has just worked really well for me in MySQL,Oracle, and MSSQL.

<edit> Since I was babbling about it I thought I would expand on the fact that DBI is an interface, and you need the database driver DBD::ODBC to use it with DBI. Check the POD on them, and there are some good examples of how to get something up and running. </edit>

Replies are listed 'Best First'.
Re^2: Reviewing Rows from MSSQL SELECT statement
by dtharby (Acolyte) on Jun 09, 2005 at 03:31 UTC
    Since I posted this, I have started experimenting with DBI and have found that it would make sense to use this method.
    Once again, thanks to all Monks that replied..
    Danny
Re^2: Reviewing Rows from MSSQL SELECT statement
by dtharby (Acolyte) on Jun 09, 2005 at 03:50 UTC
    Grygonos,
    Do I have to specify use DBD::ODBC after the use DBI
    statement ?
    After reading various help pages on DBI/DBD, I thought
    that the DBI module loaded the appropriate DBD part on
    connect.
    Thanks
      No you don't.
      use DBI; my $dbh = DBI->connect('DBI:ODBC:driver=SQL Server;database=mydb;serve +r=myserver;app=myapp',$username,$password);

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://464659]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.