Community

What is the current database context?

(Kenneth Fisher) Every now and again it can be very helpful to know what the current database context is when you are writing T-SQL code. It’s actually pretty simple. Use DB_Name() and/or DB_ID().

Read More - Register for Free Membership