You might not want the whole connection string for that. Has security implications.
If you add "@@servername" as a column in the query, and add that to the report, that should give you what you need. (Assuming they're on different servers.)
If the same server, DB_NAME will do for that.
- Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
Property of The Thread
"Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon