|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Question about IF NOT EXISTS
Hello all,
I keep getting Invalid parameter binding(s). errors when using the following IF NOT EXISTS statement. Any ideas? IF NOT EXISTS (select mobile_number FROM tblCustomer WHERE mobile_number = 'nParam' AND op_id = 'opParam' ) BEGIN INSERT INTO tblCustomer ( mobile_number, op_id ) VALUES ( 'nParam', 'opParam' ) END Many thanks |
|
#2
|
||||
|
||||
|
Doesn't look like a SQL error (assuming your column data types are all correct). This looks more like your front-end language burping.
__________________
Up the Irons What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home. "Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest Down with Sharon Osbourne Puzzle of the Month solved by Keath and KevinADC, superior perl programmers of the month Looking for a perl job with kick-*** programmers in a well-known NASDAQ listed tech company with branches in the US and Europe? We're hiring. PM me for details. Requirements |
![]() |
| Viewing: Dev Shed Forums > Databases > MS SQL Development > Question about IF NOT EXISTS |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|