Brak has asked for the wisdom of the Perl Monks concerning the following question:
I just migrated my SQL server from MSSQL 2005 to 2008 and now DBI::ODBC is returning all the INTs as decimals! Even boolean columns that used to return just 1 or 0, now return 0.00. Just the data moved; the server running the scripts hasn't changed since the move, aside from me pointing my DBI connections to the new server, literally only updating the "Server=oldserver;" to "Server=newserver". Both of my servers are Windows Server 64 2008.
When I get back a result with an ID (primary key) it will respond with "15.00" instead of "15", for example. This makes using that number in hundreds of already written and previously working queries not work at all.
Perl is using: "dbi:ODBC:Driver={SQL Server};" as the connection string to talk to the server and PHP is using "Driver={SQL Server};". PHP seems to be doing it too.
Any DBI or ODBC expert super monks out there who could shed light on why this is happening now and never before? Maybe a tip or configuration change that may fix it?
Solved, See reply below.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Need DBI/ODBC advice Quick!
by psini (Deacon) on Aug 10, 2010 at 23:25 UTC | |
|
Re: Need DBI/ODBC advice.
by pileofrogs (Priest) on Aug 10, 2010 at 23:55 UTC | |
|
Re: Need DBI/ODBC advice.
by mje (Curate) on Aug 11, 2010 at 09:38 UTC | |
by Brak (Novice) on Aug 11, 2010 at 20:34 UTC | |
by Your Mother (Archbishop) on Aug 11, 2010 at 23:55 UTC | |
by Brak (Novice) on Aug 12, 2010 at 11:28 UTC | |
|
Re: Need DBI/ODBC advice.
by aquarium (Curate) on Aug 11, 2010 at 03:07 UTC |