My sp (SQL2000) is very simple -- pulling data from a table based on an input paramater.
When I run the sp in Query Analyzer - it is fine. When I run it through ASP -- 0 records. That is the count - zero...no data whatsoever.
However, if I eliminate the where clause inside the sp and just grab the top 6 in the table -- ASP reads this.
This is a fairly new db and I am not a true admin - I have rechecked the settings, but it is possible I have missed something. Any ideas?
When I run the sp in Query Analyzer - it is fine. When I run it through ASP -- 0 records. That is the count - zero...no data whatsoever.
However, if I eliminate the where clause inside the sp and just grab the top 6 in the table -- ASP reads this.
Code:
CREATE PROCEDURE dbo.sixMoSum2 (@xID as varchar(20))
AS
SET NOCOUNT ON
DECLARE @maxQtrDt as datetime
SET @maxQtrDt = '2007-06-30'
-- this one reads as zero records in ASP
-- runs fine in Query Analyzer
Select * from galtmain.dbo.finquarterly_master where xID=@xID
-- when I uncomment this line,it works and writes out in ASP
-- runs fine in Query Analyzer
--Select top 6 * from galtmain.dbo.finquarterly_master
This is a fairly new db and I am not a true admin - I have rechecked the settings, but it is possible I have missed something. Any ideas?