No, that is never going to work. A SqlConnection
is a wrapper around a local connection which only makes sense in that one AppDomain
, in that one process, on that one machine. At best you could send the connection string, but that doesn't guarantee that the other user can connect (line-of-sight to the server / firewalls, the account identity, etc).
Frankly I would find it questionable to want to do that. A service should expose data, not internal mechanics like internal connections.