Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Retrieving the DBC name in a SP
Message
From
21/04/2005 06:03:29
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Retrieving the DBC name in a SP
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01006870
Message ID:
01006870
Views:
67
Hello,

I am wondering how in a stored procedure I can retrieve the name or path of the DBC to which the stored procedure belongs ? Calling DBC() doesn't seem safe, because if I am not mistaken, the stored procedure can very well have worked with another database and set that one as the current database.
For the moment I am setting global variables in the OpenData event, but in fact it doesn't seem much safer. There must be a better way.

Thank you for the help,

David
Next
Reply
Map
View

Click here to load this message in the networking platform