hello,
I am sending a form to an asp page, where I'm using a command object to activate an updating stored procedure on sql server. I'm filling the command's parameters using "request" on what was sent from the form.
There is one parameter that is not passed correctly. it looks like this:
on some productID's the number is not updated correctly in the database: instead of, say 56858905, I get 56858904. The problem is consistant - the same numbers are the ones updated badly and each is always updated to it's wrong number. The wrong numbers are close to the originals, but not the same - 1, 2,3 and so less or more.
The stranges thing is, I can't find where the problem is. If i display the value of the "request" used, it is the correct value. If I'm using Query Analizer to activate the stored procedure using the same number - the update is ok.
So where can the problem come from?
Hope someone can help
Yael
I am sending a form to an asp page, where I'm using a command object to activate an updating stored procedure on sql server. I'm filling the command's parameters using "request" on what was sent from the form.
There is one parameter that is not passed correctly. it looks like this:
Code:
cmd1.Parameters.Append cmd1.CreateParameter("productID",4,1,4,request("productID"))
on some productID's the number is not updated correctly in the database: instead of, say 56858905, I get 56858904. The problem is consistant - the same numbers are the ones updated badly and each is always updated to it's wrong number. The wrong numbers are close to the originals, but not the same - 1, 2,3 and so less or more.
The stranges thing is, I can't find where the problem is. If i display the value of the "request" used, it is the correct value. If I'm using Query Analizer to activate the stored procedure using the same number - the update is ok.
So where can the problem come from?
Hope someone can help
Yael