Incomplete result set returned by record select - Crystal XI, MS SQL stored procedure

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



I've got a stored procedure written in T-SQL. When I use Query
Analyzer to call the stored procedure, all records are returned that
I'm expecting. Same if I just copy the code from the sp directly into
query analyzer. So, the sp would seem to be working properly.

My Crystal XI report hooks into the sp using a MS SQL ODBC driver. The
db connection works correctly and permissions are not an issue (logged
on as sa) I have a cascading record selection in the report that uses
prompt parameters. That functions fine, the prompts seem to work OK, I
can select most records.

Here's my problem: the first record selection prompts for a person's
last name. It's a drop-down, you click the drop-down, you see a list
of names, in alphabetical order (just as the sp creates it).

But the list only goes up to S. There are no records for T through Z.

Remember, the sp executes properly within Query Analyzer and does
return all records, A to Z. Just not the Crystal report.

This was working fine on Friday. I don't know if my server was out
drinking all weekend, maybe picked up a cute little laptop at a trance
club, did some X and is now hung over and just doesn't feel like
cooperating with non-native applications but I'm mighty puzzled as to
why it decided to stop working today.

I've manually executed the sp several times, even scheduled it run
every 10 minutes, I just don't know what else to try.

Anyone got any clues, 'cause I'd like to buy one, please!

Thank you.

Steven Tadlock

.



Relevant Pages

  • SQL2K Question
    ... I have a Stored Procedure that is taking an unusual amount of time ... I have analyzed the execution plan via Query Analyzer and I have identified ... analyzed the indexes and added other index fields in the query with no luck. ...
    (microsoft.public.sqlserver.programming)
  • Re: Help with where clause in Stored proc and Qry Analyzer getting different rec. counts
    ... type of fkarInvFlagRefID is charor some nullable char ... you run this query. ... analyzer) and stored procedure and procedure call. ... If you are calling the stored procedure from somewhere other than query ...
    (microsoft.public.sqlserver.programming)
  • SP **
    ... I've a Stored procedure in SQL server 2000 and when I run it in Query ... executing it throght a command and ofcourse I make the connection timout ... when I alter procedure with it's script again in Query analyzer whithout any ...
    (microsoft.public.sqlserver.programming)
  • Re: Bookmark Lookups...
    ... Query Analyzer and I have identified what portion of the Stored Procedure ... bookmark lookups), but if I use the same values assigning them to varchar, ...
    (microsoft.public.sqlserver.programming)
  • Re: Prompting for parameters in MSQuery to pass into a stored procedure
    ... Query is what I have and Query is what I have to use. ... I have created a stored procedure that contains 3 queries. ... I'm trying to create a complicated query in MSQuery which prompts the ... extracts the data from flat files on an SQL server database via ODBC. ...
    (microsoft.public.excel)