My basic concern is to find which database/s I have access to using query…
In the following image, I need to write a query to find list of databases mapped to the user. In following example list will contain Cal and San…..
I can retrieve this loginname by using following query
select loginname from syslogins where name = (SELECT SUSER_NAME() LoggedInUser)
How can I find database list from that?

Thanks a lot,
Omkar.
You can use the system procedure sp_helplogins to get this information:
Its likely more information than you need. If so, look at the code of that procedure as example to write your own procedure (its best not to rely on system procedures anyways, as they can be changed by Microsoft).