Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Trouble Getting Recordset Back From SQL Stored Proc
Message
De
12/02/2004 16:43:27
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Trouble Getting Recordset Back From SQL Stored Proc
Divers
Thread ID:
00876871
Message ID:
00876871
Vues:
59
Hi All,

I know this is a pretty open ending question, but I'm having trouble getting a populated recordset returned from a SQL Server stored procedure (which executes fine in SQL Query Analyzer). I've tried calling the stored procedure using the Connection object, Command object, Command object with named parameters, just about any example I could find on the net to no avail. I'm wondering if it's something as simple as a setting that I'm missing...

Here are the various ways that I've tried:
** oConn is already created and Open()

oRS = oConn.Execute("spSecurity_GetObjectsForUser @ObjectIDStart=1000, @Depth=-1, @UserAccountID=13, @ObjectTypeCSV='2', @MinimumPermissionLevel=100")
* No Errors, oRS state is 0 

oRS = oConn.Execute("spSecurity_GetObjectsForUser 1000, -1, 13, '2', 100")
* No Errors, oRS state is 0 

oRS = CREATEOBJECT("ADODB.Recordset")
oConn.spSecurity_GetObjectsForUser(1000, -1, 13, '2', 100, oRS)
* No Errors, oRS state is 0 

oRS = oConn.spSecurity_GetObjectsForUser(1000, -1, 13, '2', 100)
* No Errors, oRS state is 0 
The SQL Profiler shows the executing command which again, looks fine and executes in the SQL Query Analyzer.

Does anyone have an idea of what I can look for?


Thanks,

- Brian


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


www.wulfsden.com
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform