Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating a trigger / stored procedure
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00947396
Message ID:
00948147
Views:
15
Great I'll give this a try!

Thanks!

>Hi,
>VFP doesn't support APPEND PROCUDERE command at runtime. You need to "hack" into database file in order to do this.
>
>*NOTE: Backup your database before try this code
>
>
>PROCEDURE AppendProcedure(tcDBC As String, tcSPFile As String)
>
>USE (tcDBC) AGAIN SHARED ALIAS tmpData IN 0
>			
>SELECT tmpData			
>LOCATE FOR ObjectType = "Database" AND ObjectName = "StoredProceduresSource"
>IF FOUND()
>   REPLACE Code WITH Code + FILETOSTR(tcSPFile)
>ENDIF
>			
>USE IN SELECT("tmpData")
>ENDFUNC
>
>
>HTH
Previous
Reply
Map
View

Click here to load this message in the networking platform