I have a client with an established accounting database for which I want to write a report. I am planning to use VS 2008. I have no difficulty doing this for SQL Server running on my own machine but want to know how best to publish a c# program to run on the client's network SQL Server. So there are two main issues: 1.) How to adapt the connection string for the remote environment? 2.) A recommendation for good remote assistance method for a fledgling contractor working on someone else's network.
You can use this kind of a connection string to connect clients SqlServer :
Data Source=190.190.200.100,1433;Network Library=DBMSSOCN;Initial Catalog=myDataBase;User ID=myUsername;Password=myPassword;
For more connection strings click here.
I think you know that but I want to mention you should keep it in your web.config. You may need to deploy your product to clients network. then it will be easy to configure your application.
Hope this helps !
Store the connection string in a configuration file (Visual Studio will do this for you most of the time now) and just adjust it when you deploy the app on the client's network.
Remote Assistance Method - check out Microsoft SharedView, and if you want to pay for a higher-end solution, LogMeIn Rescue. Edit - Also, check out TeamViewer (www.teamviewer.com).
Additional Information on Remote Clients:
SharedView - http://connect.microsoft.com/site/sitehome.aspx?SiteID=94 - Free, requires Windows Live ID, up to 15 people can watch a screen and you can change presenters at any time.
TeamViewer - http://www.teamviewer.com - Free (and / or pay version) - Start up in "Remote Support", "Presenter", "File Transfer", or "VPN" mode. Can switch sides with partner easily. (Warning - I've had issues with using this in Vista with the UAC command prompts).
LogMeIn Rescue - http://www.logmein.com - Pay Product (expensive but extremely nice tool for professional client support). One-way (can't change sides with customer).