简体   繁体   中英

Can I connect my website to my personal computer SQL Server database?

I already have an website on godaddy, So can I connect SQL Server database (Database is in my home PC) from website which is already launched in godaddy. I did my website using Asp.net.

If can, what are all the things I should give importance?

Note: My database is not huge.

Please help me.

Technically speaking yes you can, should you..unless your home computer is a server, no. You would have to ensure that you have a static IP address and allow 1433 through your firewall. honestly its not that costly to get a cloud sqlserver and hook to that, discountasp.net has really good service.

Technically you can do it. I assume you want to know how to connect to it.

  1. Set a static IP for you computer ex: 192.168.1.105 (make sure you are on the same subnet as your default gateway.
  2. Open the firewall for your sql server.
  3. Go into router settings and do port forwarding to the static IP (from step 1) and the port of your SQL server ex: 1433
  4. Connect your website to the database using public IP (google what is my ip) example: 123.123.123.12:1433

This should work.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM