(this is an abstract question)
How can I get the current connection string from a T-SQL query?
I mean need for something like this:
Select ConnectionString From Something
and I get the result like this:
data source=HAMCKER-PC;initial catalog=CMMS;trusted_connection=true
Why I need this?
Actually I want to pass some extra parameters via my connection string, suppose the above connection to be something like this:
data source=HAMCKER-PC;initial catalog=CMMS;trusted_connection=true;Area=W9
I need that W9
in my queries.