Dude...
it has to be a select query... thats how data grids work... if you want to
return a single result from a stored proc, don't use a datagrid. Thats like
using a backhoe to plant a daisy...
and if its a "returned table" then yes, thats a select query.
"Jim" <an*******@discussions.microsoft.com> wrote in message
news:0c****************************@phx.gbl...
It's not a select query. I can do select queries. I can
start a stored procedure and get the single integer result
that says the procedure completed. I just can't seem to
get the returned table into a datagrid.
Jim
-----Original Message-----
Create a dataadapter and assign the select query to this
stored proc in yourdatabase. Then, you could create a strongly typed
dataset from this, andassign your datagrid's datasource to your new dataset.
Peace,
cege
"Jim" <an*******@discussions.microsoft.com> wrote in
messagenews:05****************************@phx.gbl... Can someone, please, show me how to display the results of a stored procedure in a VB.NET datagrid on a winform? I'm a newbie.
Here's my SQL 2000 stored precedure that returns the
status of SQL Jobs as a table.
==================================================
CREATE PROCEDURE [dbo].[GetRunningJobs] AS
EXEC msdb.dbo.sp_help_job @execution_status = 0
GO
==================================================
Thanks,
Jim
.