How do I deal with connection strings in a Click-Once application?

Posted by Pwninstein on Stack Overflow See other posts from Stack Overflow or by Pwninstein
Published on 2010-03-15T16:31:39Z Indexed on 2010/03/15 16:39 UTC
Read the original article Hit count: 158

I'm thinking of building a Click-Once application, and am trying to wrap my head around how to handle the whole connection string issue. The problem is the following:

I want to use EF to get data directly from each client, thus requiring each client to have a connection string configured (this is not the issue). How do I deal with clients that are not on the same domain as the SQL Server being queried? In other words, if I tried to run my app from home as opposed to from work, what should my connection string look like? Would I need to configure my SQL Server differently to allow this scenario?

Thanks in advance!

© Stack Overflow or respective owner

Related posts about sql-server

Related posts about clickonce