Re: OO and databases
by davido (Cardinal) on Jul 20, 2004 at 06:08 UTC
|
| [reply] |
|
|
| [reply] |
Re: OO and databases
by jZed (Prior) on Jul 20, 2004 at 06:27 UTC
|
| [reply] |
Re: OO and databases
by blokhead (Monsignor) on Jul 20, 2004 at 06:30 UTC
|
| [reply] |
Re: OO and databases
by NetWallah (Canon) on Jul 20, 2004 at 06:10 UTC
|
Have a look at Class::DBI.
Earth first! (We'll rob the other planets later)
| [reply] |
Re: OO and databases
by john.goor (Acolyte) on Jul 20, 2004 at 13:11 UTC
|
Thanx all.
I managed to set up a working DBI interface without a flaw.
Win32::OLE and Win32::ADO is now obscured by DBI, which is fine.
I would like to know which option you guys prefer: Class::DBI or Class:Tables.
Both look nice options. Class::Table however is the most easiest, but I would like to know which one is to be preferred for a production environment. Please advice me on this. Maybe It'll end in an interesting discussion :-). Why should I choose either the Class or Table variant? | [reply] |
Re: OO and databases
by john.goor (Acolyte) on Jul 20, 2004 at 07:01 UTC
|
Oops!
I forgot to mention that I am bound to the fabulous product made by some firm called 'Microsoft' or something.
Which means the Class::Table (which looks very nice b.t.w.) is no option.
Also until now I used Win32 and ADO to connect.
Reading this, is there still an option left?
Rgds,
Bill's victim :-)
| [reply] |
|
|
DBI is not especially fussy about which database you use behind the scenes.
I'd just try using one of the ODBC interfaces, preferably the DBI version DBD::ODBC (rather than Win32::ODBC) or I notice that there is a DBD::ADO available. Also, DBIx::SQLEngine may be of some use. Not used any of these, so this is not a recommendation, just some pointers to more info.
Hope that this helps.
Cheers, -- Dave :-)
$q=[split+qr,,,q,~swmi,.$,],+s.$.Em~w^,,.,s,.,$&&$$q[pos],eg,print
| [reply] |
|
|
| [reply] |
|
|
In addition to DBD::ODBC, you can also use DBD::Sybase to connect to SQL*Server. It so happens that Microsoft chose to build SQL*Server from Sybase 4.3. :-)
------
We are the carpenters and bricklayers of the Information Age.
Then there are Damian modules.... *sigh* ... that's not about being less-lazy -- that's about being on some really good drugs -- you know, there is no spoon. - flyingmoose
I shouldn't have to say this, but any code, unless otherwise stated, is untested
| [reply] |