Daily Archives: February 17, 2009

How to get Current DB name and user in MS SQL server?

Most of the time I forget the command to get the DB name and current user when working. So decided to make post about it no better way to find the info fast.

Here are the 2 commands that basically gets the info.

  • Select DB_name() ;
  • Select Current_user;

Here is a post that my friend wrote on How to Insert Values into an Identity Column which I didn’t know to do before.

BTW he is Microsoft guy not CF :(

Switch to our mobile site