Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^2: Database Insert Depending on Data Type

by Olaf (Acolyte)
on Dec 20, 2007 at 20:45 UTC ( [id://658244]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #---SQL to change the column data
    for ($count = 0; $count < $EasySetDataCount; $count++) {
    ...
    $sqlCmd->execute()
        or die "SQL Error: $DBI::errstr\n";
    }
    
  2. or download this
    Uncaught exception from user code:
            SQL Error: [Microsoft][ODBC SQL Server Driver][SQL Server]Inva
    +lid column name 'Other'. (SQL-42S22)
    ...
     at C:\temp\EasySetRenameTool.pl line 155
    Issuing rollback() for database handle being DESTROY'd without explici
    +t disconnect() at C:\temp\EasySetRenameTool.pl line 155, <STDIN> line
    + 5.
    UPDATE AI_ESP SET Race = red WHERE Race = Other
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://658244]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (4)
As of 2024-04-24 01:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found