E
edb
Hi again
I have a stored procedure that looks like this.
CREATE PROCEDURE usp_GetCustomers AS
SELECT customer_id, customer, COUNT(*)
FROM dbo.Customer
GROUP BY customer_id, customer
UNION ALL
SELECT NULL, NULL, COUNT(*) AS Expr1
FROM dbo.Customer
GO
It works great in Query Analyzer and Syntax is successful
in SQL 2000. The expression in Query Analyzer is read as a
field with no name. The total comes up 33 which is Expr1,
what I need.
How do I grab this Stored Procedure and place it into a
label in .Net?
I really appreciate your input. I am not too smart.
Thx bunches
edb
I have a stored procedure that looks like this.
CREATE PROCEDURE usp_GetCustomers AS
SELECT customer_id, customer, COUNT(*)
FROM dbo.Customer
GROUP BY customer_id, customer
UNION ALL
SELECT NULL, NULL, COUNT(*) AS Expr1
FROM dbo.Customer
GO
It works great in Query Analyzer and Syntax is successful
in SQL 2000. The expression in Query Analyzer is read as a
field with no name. The total comes up 33 which is Expr1,
what I need.
How do I grab this Stored Procedure and place it into a
label in .Net?
I really appreciate your input. I am not too smart.
Thx bunches
edb