How To on connecting to a hosted SQL Server Express database


Author
Message
Jeff Pagley
Jeff Pagley
Advanced StrataFrame User (641 reputation)Advanced StrataFrame User (641 reputation)Advanced StrataFrame User (641 reputation)Advanced StrataFrame User (641 reputation)Advanced StrataFrame User (641 reputation)Advanced StrataFrame User (641 reputation)Advanced StrataFrame User (641 reputation)Advanced StrataFrame User (641 reputation)Advanced StrataFrame User (641 reputation)
Group: StrataFrame Users
Posts: 223, Visits: 893
Hi SF Team,

As I have mention in the past, I am just a part-time VB.NET programmer.  I am not on here very often, but when I need advice or REAL answers you guys are the ones I come to. That is why I love SF and renew my license every year to have access to this forum. 

My scenario is this.  I have written Win App obviously using SF.  Each database only has to hold up to 500,000 records maximum so that is why I am using SQL Server Express databases.    Currently, I have setup an VPN connection to enable 2 users to connect remotely to the databases within my client's network for running the win app.   In addition, I have serveral small databases running on a single XP box using a single SQL Server Express instance.  Depending on the client records they can connect to any one of the databases they choose.  At the moment, everything is working great.  However, he wants to setup up to 10 remote users.  Therefore, it poses several questions in my mind that I am looking for some suggestions, advice or even How Tos.   I think hosting this stuff on the internet would make my life easier in terms of supporting the remote users and updating changes to the databases, but being a part-timer I have NEVER done any of this before.

1. What is the simplest way to deploy updates to the remote users?  Over internet?

2. If over the internet, would I host the updates on a ftp site that the remote users would download or have some way that the app automatically downloads the update?

3. Should I use a hosting site for the SQL Server Express databases so that I don't have to support 10 VPN connections?

4. If hosting the SQL Server Express databases on the internet is the way to go, do you have any suggestion on who I should use?

5. Also, if am going to host the databases on the internet, how do I make the connection using SF?

Sorry about all of the NEWBIE questions!  But I want to do this the right way and I know you guys will give me the best advice.

Thank you and thanks again for this helpful forum and your great products.

Jeff

Replies
Keith Chisarik
Keith Chisarik
StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)
Group: StrataFrame Users
Posts: 939, Visits: 40K
Trent can say more about ES, but since you will be moving to a dedicated server you should have RDP access, therefore you will not need your SQL "exposed", ES runs via HTTP via IIS so if you just have your host allow that protocol and RDP for remote access, you should be fine. They SHOULD provide simple firewall requests, if they dont, look for a new host Smile

Before we got our dedicated hardware firewall, I used the Windows firewall on Server 2003 and it was fine, only once we started doing more with the server did I need to go beyond that.

Keith Chisarik

Jeff Pagley
Jeff Pagley
Advanced StrataFrame User (641 reputation)Advanced StrataFrame User (641 reputation)Advanced StrataFrame User (641 reputation)Advanced StrataFrame User (641 reputation)Advanced StrataFrame User (641 reputation)Advanced StrataFrame User (641 reputation)Advanced StrataFrame User (641 reputation)Advanced StrataFrame User (641 reputation)Advanced StrataFrame User (641 reputation)
Group: StrataFrame Users
Posts: 223, Visits: 893
Keith,

It looks like I am going to use Hosting.com (HostMySite.com) which is the hosting site I believe you are using.  They are sending me a quote for the server and SQL Server Workgroup edition 

I am going to have about 30 clients and 10 databases running on the server.  This app is a very low transactional system.  Probably about 1 update per minute to 5 tables.  Do you think I would be able to get away with SQL Server Express to handle this volume of clients and databases?

Also, let me see if I understand what you meant by not having my SQL Server exposed.  Because my clients are using ES to access the SQL Server database, only ES needs to have access to SQL Server and I don't need to exposed the database to the internet for my clients to access the data...correct?

Thanks so much for the help and advice!

Jeff

Greg McGuffey
Greg McGuffey
Strategic Support Team Member (4.8K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
Jeff,



Yep that is correct. SQL server is not access directly by users (it is access by ES) so SQL Server should NOT be available beyond firewall. ES is made visible via IIS to the outside world. Note you can encrypt the connection via ES, so only your app can get access (because it knows the key setup for ES).



Not sure about using SQL Server Express, but that sounds like real low volume. However, you might want a beefier version just for the admin tools. Hopefully others can weigh in on that issue with more knowledge.
Jeff Pagley
Jeff Pagley
Advanced StrataFrame User (641 reputation)Advanced StrataFrame User (641 reputation)Advanced StrataFrame User (641 reputation)Advanced StrataFrame User (641 reputation)Advanced StrataFrame User (641 reputation)Advanced StrataFrame User (641 reputation)Advanced StrataFrame User (641 reputation)Advanced StrataFrame User (641 reputation)Advanced StrataFrame User (641 reputation)
Group: StrataFrame Users
Posts: 223, Visits: 893
SQL server is not access directly by users (it is access by ES) so SQL Server should NOT be available beyond firewall. ES is made visible via IIS to the outside world. Note you can encrypt the connection via ES, so only your app can get access (because it knows the key setup for ES).

Greg that is a great suggestion.  However, how do I encrypt the connection via ES?

Thanks,

Jeff

Greg McGuffey
Greg McGuffey
Strategic Support Team Member (4.8K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
It's pretty easy. I don't have the help docs available at the moment and since this is rarely done, I'm working with from a faulty memory board (er...my brain), so you'll need to check the help files. This is setup for each data source, so check that part of the help file. You setup a key and a salt for the encryption in the data source config file, then when you setup the ES data source in the application, you provide the same key and salt. There may also be a flag to set that says it's encrypted. That's it!
Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
Greg that is a great suggestion. However, how do I encrypt the connection via ES?




When you setup the ES data source, there is simply a property (flag) that indicates whether you want encryption. There are others as well that include compression, etc. These are all in the docs in how to setup the ES server.
Keith Chisarik
Keith Chisarik
StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)
Group: StrataFrame Users
Posts: 939, Visits: 40K
Do you think I would be able to get away with SQL Server Express to handle this volume of clients and databases?

Yes, you can always move up to another version of SQL Server as you grow. As long as you are comfortable with the limitations of Express you should be fine starting there (1 GB RAM, 4GB database size limit, etc)

http://www.microsoft.com/sql/prodinfo/features/compare-features.mspx?PHPSESSID=0324345d45ef1bf1f764044e03584cd0

Because my clients are using ES to access the SQL Server database, only ES needs to have access to SQL Server and I don't need to exposed the database to the internet for my clients to access the data...correct?

Correct

Keith Chisarik

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
Jeff Pagley - 16 Years Ago
Trent L. Taylor - 16 Years Ago
Jeff Pagley - 16 Years Ago
Keith Chisarik - 16 Years Ago
Jeff Pagley - 16 Years Ago
Trent L. Taylor - 16 Years Ago
Jeff Pagley - 16 Years Ago
Trent L. Taylor - 16 Years Ago
Keith Chisarik - 16 Years Ago
Jeff Pagley - 16 Years Ago
Jeff Pagley - 16 Years Ago
Charles R Hankey - 16 Years Ago
Jeff Pagley - 16 Years Ago
Trent L. Taylor - 16 Years Ago
Jeff Pagley - 16 Years Ago
Trent L. Taylor - 16 Years Ago
Jeff Pagley - 16 Years Ago
Jeff Pagley - 16 Years Ago
Trent L. Taylor - 16 Years Ago
                         Hi Trent, Thanks for the info. Right now I do have the logic to check...
Jeff Pagley - 16 Years Ago
                             [quote]Does this seem to be a reasonable thing to do?[/quote]
...
Trent L. Taylor - 16 Years Ago
                                 Trent, Now I understand the licensing for ES. Purchasing smaller host...
Jeff Pagley - 16 Years Ago
                                     Jeff,

If you will contact Jay Taylor we have a model that...
Trent L. Taylor - 16 Years Ago
                                         Sorry....you can call the sales line or email him at...
Trent L. Taylor - 16 Years Ago
                                         Trent, That's great news. I do have a question that I would like...
Jeff Pagley - 16 Years Ago
                                             Jeff,

I'm not sure if you are asking about the databases...
Greg McGuffey - 16 Years Ago
                                                 Hi Greg, Thanks for the opinion on separate databases. I also felt it...
Jeff Pagley - 16 Years Ago
                                                     Jeff,

ES can definitely connect to any number of databases,...
Greg McGuffey - 16 Years Ago
                                                         Hi Greg, Thank you. Your explanationtruly helped. I have looked at...
Jeff Pagley - 16 Years Ago
                                                             [quote]I believe for my scenario, everytime I add a new database to my...
Greg McGuffey - 16 Years Ago
                                                                 Hi Greg, Thanks for all of the great info. I am going to setup a test...
Jeff Pagley - 16 Years Ago
Jeff Pagley - 16 Years Ago
Trent L. Taylor - 16 Years Ago
Jeff Pagley - 16 Years Ago
Jeff Pagley - 16 Years Ago
Jeff Pagley - 16 Years Ago
Trent L. Taylor - 16 Years Ago
Jeff Pagley - 16 Years Ago
Trent L. Taylor - 16 Years Ago
Jeff Pagley - 16 Years Ago
Keith Chisarik - 16 Years Ago
Jeff Pagley - 16 Years Ago
Greg McGuffey - 16 Years Ago
Jeff Pagley - 16 Years Ago
                         It's pretty easy. I don't have the help docs available at the moment...
Greg McGuffey - 16 Years Ago
                             [quote]Greg that is a great suggestion. However, how do I encrypt the...
Trent L. Taylor - 16 Years Ago
Keith Chisarik - 16 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search