can't execute SP

N

NuB

I'm trying to fill my gridview (asp.net 2.0) from a sp, When I create my
SQLDataSource connection and test it, the SP works, but when I run my page,
my grid does not load with the data.
I tried to run a SP against a test DB (northwind) and it works, but I can't
get it working against my database. What am I missing here?
 
H

Hans Kesting

I'm trying to fill my gridview (asp.net 2.0) from a sp, When I create my
SQLDataSource connection and test it, the SP works, but when I run my page,
my grid does not load with the data.
I tried to run a SP against a test DB (northwind) and it works, but I can't
get it working against my database. What am I missing here?

Some questions to debug this:
* does your SP run (check SqlProfiler)?
* does it return data? Try filling a DataSet and examine that
* are table and column-mappings correct (does the grid expect the data
in the table where it is returned, do you mention specific columns and
are they really present in the DataSet?)
* any errors that you maybe ignore (just a wild guess)?

Hans Kesting
 
J

joshuacoad

You may want to check that the proper permissions are set on the stored
procedure as well.
 

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,777
Messages
2,569,604
Members
45,216
Latest member
topweb3twitterchannels

Latest Threads

Top