Click here to Skip to main content
12,623,724 members (35,766 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C# SQL Server Remote
please advise regarding how to coonect sql server 2008 remote instance using c#.
We are trying to transfer database from 2008 to 2005. we are able to do this for sql 2008 local instance. But same code is not working for remote instance.
thanks in advance
Pankaj Phukane.
Posted 27-Jul-12 0:51am

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

Connecting to a SQL server is the same if you are in the same network : http://www.connectionstrings.com/[^]

If you are not in the same network (i.e. you can't ping the server) then you must setup a VPN/port forwarding system first.
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.161128.1 | Last Updated 27 Jul 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100