$ 0 0 Hi Amar, Please try the below query ....... SELECT defaultdatabase,sessionno FROM Dbc.Sessioninfo where username='USR_NAME' ;