SQLDataSource and Blank Parameters

G

Guest

Don't know if this is a bug or a feature. I have a SQLDatasource that calls
a stored procedure with 2 parameters. The default values are -1 and ''.
When I set a breakpoint in the 'Selecting' event. The 2nd parameter values
shows as Nothing. Which I'm fine with. But if I don't actually set a value
here and let the code run the select returns no rows.

Not sure what's going on here. I've tried running the stored procedure
through SQL Server Mgmt Studio with different combinations of parameters and
everything work correctly. Anyone with an idea of what is going on?

Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,576
Members
45,054
Latest member
LucyCarper

Latest Threads

Top