I want someone to write a TSQL function that returns the name of the ODBC DSN.
I will use the queries below, to get information about the connection, but none of these return the DSN name for example.
1. select * from sys.dm_exec_connections
2. select * from sysprocesses
3. select connectionproperty('net_transport')
4. select connectionproperty('protocol_type')
Could you quote for writing a function that I will use from TSQL code that returns the name of the DSN?
Skills required are .NET, C# Programming, Database Administration, SQL