Hi Nensy V_,
The sql script below shows how to get the name and the owner of the current database:
--Get the name of the current database.
select DB_NAME() as dbName;
--Get the owner of the current database.
select SUSER_SNAME(owner_sid) as dbOwner from sys.databases where name=DB_NAME();
Let me know if this does not help.
Aland Li
Please mark the replies as answers if they help and unmark if they don't. This can be beneficial to other community members reading the thread.