S
Schoo
I have an ASP app that works but I am trying to make a change that is not
working.
The app uses MS Application Data Blocks to call a stored procedure. The way
I originally designed it, the user opens the first screen, selects an item
from a list and the program calls an object I created which then makes a
call the the MS App Block and returns the dataset. This continues to work
fine.
I needed to set up an alternate way to run the application so the user could
type in a parameter in the URL to force it to make the selection without
stopping at the selection form. To simulate this, I created a default.aspx
which simply uses a request.redirect("") to send a URL to the real first
page.
However, when it runs this way I get the following error message:
"Syntax error converting from a character string to a uniqueidentifier"
I stepped through the code and it makes it all the way through the scenario
to the Application Block. With the 'executedataset' version it stops on the
command: dataAdapter.Fill(ds)
I have tried a number of changes including building the solution over again,
using an "Execute Scalar" technique instead and checking the stored proc
with Query Analyser to make sure it works. (SQL2000)
So, does anyone have any ideas? Why will this work one way and not another?
working.
The app uses MS Application Data Blocks to call a stored procedure. The way
I originally designed it, the user opens the first screen, selects an item
from a list and the program calls an object I created which then makes a
call the the MS App Block and returns the dataset. This continues to work
fine.
I needed to set up an alternate way to run the application so the user could
type in a parameter in the URL to force it to make the selection without
stopping at the selection form. To simulate this, I created a default.aspx
which simply uses a request.redirect("") to send a URL to the real first
page.
However, when it runs this way I get the following error message:
"Syntax error converting from a character string to a uniqueidentifier"
I stepped through the code and it makes it all the way through the scenario
to the Application Block. With the 'executedataset' version it stops on the
command: dataAdapter.Fill(ds)
I have tried a number of changes including building the solution over again,
using an "Execute Scalar" technique instead and checking the stored proc
with Query Analyser to make sure it works. (SQL2000)
So, does anyone have any ideas? Why will this work one way and not another?