Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Creating stored procedure through VFP code
Message
De
14/01/2003 12:39:47
 
 
À
Tous
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Stored procedures, Triggers, UDFs
Titre:
Creating stored procedure through VFP code
Divers
Thread ID:
00741525
Message ID:
00741525
Vues:
75
I have a VFP application that creates SQL Server databases and tables on the fly. I would also like to be able to create a stored procedure in the created database (this database is usually not the default database).

I created a table in SQL that contains the stored procedure name and stored procedure code


lcSql='Create proc '+ALLTRIM(sqltable.csp_name)+" "
lcscript=ALLTRIM(sqltable.CSP_SCRIPT)
lcscript=STRTRAN(lcscript,'lcdatabase',gccurrentjob)
lcsql=lcsql+lcscript

lnSQLResult = SQLEXEC(gnConnectHandle,lcsql)

SQL acts like the command was successful but the stored procedure is not created.


Any suggestions??

Thanks.

Joyce
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform