lsmyth1717
Programmer
I have the following stored procedure and was wondering if anyone could help me. I've not written sql in ages and I'm not sure if i'm working efficently. I'm trying to return a dataset to bind to a asp.net datagrid and then I also want to display the total count of records in a label. Does anyone know if i'l be able to achieve this using this stored procedure?
CREATE PROCEDURE [sp_RegisteredUsers]
AS
SELECT u_user_title, u_first_name, u_last_name
FROM UserObject
Select Count (*)
From UserObject
GO
CREATE PROCEDURE [sp_RegisteredUsers]
AS
SELECT u_user_title, u_first_name, u_last_name
FROM UserObject
Select Count (*)
From UserObject
GO