English 中文(简体)
• 如何将我的手法连接到网上数据库?
原标题:How Connect my wpf app to database online?
  • 时间:2011-11-23 08:51:28
  •  标签:
  • c#
  • sql
  • wpf

我开发了一个供内联网连接的WPF应用程序,连接了一个当地服务器的数据库(SQL服务器),但现在,我的公司在海外购买了一个新服务器,希望将这一应用程序与该服务器连接起来。

我应该把这一申请与在线数据库(SQL服务器)联系起来,因此,我请你,这是使这里的用户能够像过去那样操纵数据的最佳途径?

如果你有更好的建议,那么我会知道你的反馈意见。

最佳回答

Connecting to a SQL server in a remote location is not much different to connecting to one locally, you just have to specify the appropriate host name or ip in the connection string.

However there does have to be some kind of route to the remote server, which usually requires setting up a VPN if you need to go out over the internet but that s not really a programming question.

问题回答

你只需要改变连接线。

或许最好像世界能源论坛那样,用某种服务包裹服务器。 这将更加安全和灵活。 你们可以利用世界合作框架数据服务,使之真正迅速。





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

热门标签