Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Trouble Getting Recordset Back From SQL Stored Proc
Message
De
13/02/2004 10:53:24
 
 
À
13/02/2004 09:58:17
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00876871
Message ID:
00877129
Vues:
21

>Hi William,
>
>Nope, that doesn't work either. I tried calling one of the other stored procs that the guy wrote an it works fine from VFP. I even went as far as writing sample calling programs in VB 6 (*gasp*) and C#.
>
>Strange thing is that the C# program using OleDbCommand.ExecuteReader() to a OleDbDataReader works. However, since the VB 6 call fails too, I'm wonding if it might have something to do with the stored proc and ADO... either way I got to push it back to the guy who wrote the stored proc.
>


Well, we discovered what it was. Maybe others know this, but for those who don't and are interested, the problem was resolved simply by adding a SET NOCOUNT ON in the SQL Server stored proc. I don't know enough about the technical aspects of SQL SPs and their interaction with ADO to know why this matters, but it does and apparently the .NET OleDbDataReader can handle it and ADO 2.8 can't.



- Brian


VFP6 SP5, VFP8 SP1, VFP 9 SP 1 and Win XP SP 3 (unless otherwise specified)


www.wulfsden.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform