General information
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Retrieving the DBC name in a SP
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only