Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Permission problem with SQL sp
Message
De
09/10/2007 16:15:44
 
 
À
09/10/2007 16:07:55
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
01259858
Message ID:
01259863
Vues:
16
>I have created a stored procedure in SQL Server. I can execute this SP from Sql Server Management Studio fine. But when I try to execute this SP from VFP, I get the following error:
>
>***********
>"Connectivity error: [Microsoft][ODBC SQL Server Driver][SQL Server]EXECUTE permission denied on object 'mytest', database 'MyDatabase', owner 'dbo'."
>***********
>
>I can query any table in SQL Server with SQL Pass Through. And I can call the System Stored Procedures but I can't call a Stored Procedure that I created.
>
>What do I have to do to call a SP that I created from VFP?
>
>Thanks,
>
>Jerry

Hi Jerry,

this is the way I do it:

lnRet = gocnn.execute('< nameofstoredprocedure >', 4)

and it works for me.

HTH
Beth
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform