UPDATE QUERY RETURNING
Posted: Mon 20 Apr 2009 21:51
I have the following query:
UPDATE lanemanagement.customers
SET customertitle = :customertitle, customerfirstname= :customerfirstname, customermiddleinitial = :customermiddleinitial,customerlastname = :customerlastname, customersuffix = :customersuffix, customeremail = :customeremail, customerstreet1 = :customerstreet1, customerstreet2 = :customerstreet2, customercity = :customercity, customerstateabbr = :customerstateabbr, customerzip = :customerzip, customerphone = :customerphone, customercellphone = :customercellphone, customerworkphone = :customerworkphone, customerworkphoneext = :customerworkphoneext, customerfax = :customerfax, customerreferredby = :customerreferredby, customerdatelastmodified = :customerdatelastmodified
WHERE (customerid = :customerid)
I have a strongly typed dataset and when this query is executed using the command object of that dataset I get an error that says: Parameter 'customerid is missing
It is called using this int returnValue = command.ExecuteNonQuery()
I think I probably need to do some kind of return or something but not sure. I really need to get this working so any help that you can give me would be appreciated.
UPDATE lanemanagement.customers
SET customertitle = :customertitle, customerfirstname= :customerfirstname, customermiddleinitial = :customermiddleinitial,customerlastname = :customerlastname, customersuffix = :customersuffix, customeremail = :customeremail, customerstreet1 = :customerstreet1, customerstreet2 = :customerstreet2, customercity = :customercity, customerstateabbr = :customerstateabbr, customerzip = :customerzip, customerphone = :customerphone, customercellphone = :customercellphone, customerworkphone = :customerworkphone, customerworkphoneext = :customerworkphoneext, customerfax = :customerfax, customerreferredby = :customerreferredby, customerdatelastmodified = :customerdatelastmodified
WHERE (customerid = :customerid)
I have a strongly typed dataset and when this query is executed using the command object of that dataset I get an error that says: Parameter 'customerid is missing
It is called using this int returnValue = command.ExecuteNonQuery()
I think I probably need to do some kind of return or something but not sure. I really need to get this working so any help that you can give me would be appreciated.