Results 1 to 2 of 2

Thread: current database name needed...

  1. #1
    David Guest

    current database name needed...

    Hi:

    I need to know the current database name in executing a stored procedure,
    which will trancatte the log of that database.
    (in a dynamic multiple customerID oriented database environment,
    ex. custID_101_db, custID_102_db, .....)

  2. #2
    Steve Rodgers Guest

    current database name needed... (reply)

    David,

    You need to use DB_NAME(), this will return you the current database name.

    Cheers,



    ------------
    David at 4/10/2002 8:17:39 PM

    Hi:

    I need to know the current database name in executing a stored procedure,
    which will trancatte the log of that database.
    (in a dynamic multiple customerID oriented database environment,
    ex. custID_101_db, custID_102_db, .....)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •