SqlClient Types and remoting
I am going nuts over here. First, I run into all kinds of remoting issues with SqlParameter types. Now, I discover SqlConnection types are not remotable!!
Follow-up: Rudi was quick to point out the passing a connection from the client is BAD! I agree. In my case, I pass a conncetion string to a remoted server object and then build the connection object. I was simply testing passing the connection object, which, the more I think about it, this is not good. SqlParameters though, I see no reason why I would have concerns passing them as a SqlParameter type from my client, unless, of course, one is concerned about switching databases in the furture, which we will not.