T
tshad
I'm not sure if this is an asp.net or ado.net question.
I have been using parameters with my Sql commands and have been getting
errors that say there is a problem with my input string, but there is no way
to look at what it is trying to do.
I have many parameters such as:
objCmd.parameters.add("@ClientID",SqldbType.VarChar,20).value =
session("ClientID")
objCmd.parameters.add("@Email",SqlDbType.VarChar).value = session("Email")
objCmd.parameters.add("@SearchName",SqlDbType.VarChar,45).value =
SearchName.Text
But there doesn't seem to be a way to look at the @Client or @Email type of
variables to see what it is trying to put together.
I get the error when I try to do a:
Dim applicantReader = objCmd.ExecuteReader
The problem is not coming from Sql Server but from my page. If there was a
problem with the string being sent to SQL Server, it would show up in the
Sql Profiler - which is how I usually find the parameter problems.
In this case, it is never getting sent. Is there some way to see what
ASP.Net is trying to send?
Thanks,
tom
I have been using parameters with my Sql commands and have been getting
errors that say there is a problem with my input string, but there is no way
to look at what it is trying to do.
I have many parameters such as:
objCmd.parameters.add("@ClientID",SqldbType.VarChar,20).value =
session("ClientID")
objCmd.parameters.add("@Email",SqlDbType.VarChar).value = session("Email")
objCmd.parameters.add("@SearchName",SqlDbType.VarChar,45).value =
SearchName.Text
But there doesn't seem to be a way to look at the @Client or @Email type of
variables to see what it is trying to put together.
I get the error when I try to do a:
Dim applicantReader = objCmd.ExecuteReader
The problem is not coming from Sql Server but from my page. If there was a
problem with the string being sent to SQL Server, it would show up in the
Sql Profiler - which is how I usually find the parameter problems.
In this case, it is never getting sent. Is there some way to see what
ASP.Net is trying to send?
Thanks,
tom