G
Guest
I am using SQL server express 2005 and sending the string as an SQL text
query from C# 2005.
Perhaps I am missing something, but when I use
UPDATE SomLast_num
SET CUST_NUM = CUST_NUM + 1
WHERE (CurrentRec = 1)
I get a respose of 1 as an integer. (I assume it means 1 record affected)
When I try to get the new record number by sending
UPDATE SomLast_num SET CUST_NUM = CUST_NUM + 1 WHERE CurrentRec = 1
SELECT CUST_NUM FROM SomLast_num WHERE CurrentRec = 1
I get an "unable to parse error"
Is there a way to send 2 SQL statements and use the last response as the
return value?
I tried separating them with ; and putting a go between them, but I still
get an unable to parse error.
query from C# 2005.
Perhaps I am missing something, but when I use
UPDATE SomLast_num
SET CUST_NUM = CUST_NUM + 1
WHERE (CurrentRec = 1)
I get a respose of 1 as an integer. (I assume it means 1 record affected)
When I try to get the new record number by sending
UPDATE SomLast_num SET CUST_NUM = CUST_NUM + 1 WHERE CurrentRec = 1
SELECT CUST_NUM FROM SomLast_num WHERE CurrentRec = 1
I get an "unable to parse error"
Is there a way to send 2 SQL statements and use the last response as the
return value?
I tried separating them with ; and putting a go between them, but I still
get an unable to parse error.