That is invalid SQL and normally I would post the correct SQL but I have no clue what you're trying to do.
Valid SQL is simply:
INSERT INTO dbo.customers (col1, col2) VALUES (@val1, @val2)
Are you trying to
UPDATE the table instead of
INSERT maybe?
UPDATE dbo.Customers
SET
col1 = @val1,
col2 = @val2
WHERE id = @id
Last edited by sknake; Oct 29th, 2009 at 3:12 am.
Reputation Points: 1749
Solved Threads: 735
Senior Poster
Offline 3,948 posts
since Feb 2009