Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re: Problem Inserting into Sql Server Database

by trs80 (Priest)
on Aug 22, 2002 at 22:56 UTC ( #192206=note: print w/replies, xml ) Need Help??

in reply to Problem Inserting into Sql Server Database

Two questions:
1. Are you sending real values in place of the ones you have in the execute? If not it is most likely a type mismatch between the fields and the data you are supplying.

2. Where does the $SQL->execute come from? If that is connected with the above insert, I would imagine it would be something like:
my $rowCount = $insertHandle->commit();
getting rid of the $SQL->execute all together, unless it is a separate command that isn't included in the sample you provided. Regardless if you have to commit a change you need to do it on the correct database handle at some point I would assume.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2020-10-19 22:24 GMT
Find Nodes?
    Voting Booth?
    My favourite web site is:

    Results (207 votes). Check out past polls.