Solved

Using a local database via web browser

Posted on 2012-12-28
11
675 Views
Last Modified: 2012-12-29
I am converting a race timing service from a windows-based software to a web-based system.   The goal is to run the service off of the database on the web server at a remote location.  However if I am at a location where I can't access the remote server I would like to run it off of the local db on the machine I am using via a web browser and then upload to the server later.  What are my options?

Thanks~
0
Comment
Question by:Bob Schneider
  • 4
  • 4
  • 3
11 Comments
 
LVL 38

Assisted Solution

by:Aaron Tomosky
Aaron Tomosky earned 286 total points
Comment Utility
Write something the has a connection string to a database you can alter. Run it against localhost or a URL. Then you can work on importing records from one db to the main db. That's probably a separate app.
0
 
LVL 82

Assisted Solution

by:Dave Baldwin
Dave Baldwin earned 214 total points
Comment Utility
Your 'real' problem will occur when the internet connection goes down in the middle of your event, something that is very likely to happen if you are connecting wirelessly.  You are probably better off keeping your Windows-based software and adding a routine to upload it to the web database after the event.
0
 
LVL 38

Assisted Solution

by:Aaron Tomosky
Aaron Tomosky earned 286 total points
Comment Utility
That sounds like a plan. Spend your time on sending that data to an aggregate web service that can display results and such. Leave the tracking as is.
0
 

Author Comment

by:Bob Schneider
Comment Utility
So I am hearing that the way to do it is to run it against a local db and then periodically upload it to the server.  I currently use connection strings for my remote db.  I assume I would do something very similar to connect to a db on my local machine.  Can I do it via my chrome browser if it is connecting to a db on the local machine?
0
 
LVL 38

Assisted Solution

by:Aaron Tomosky
Aaron Tomosky earned 286 total points
Comment Utility
IF you want a web front end, and you have windows 7 available, I'd start with installing localdb ( or full SQL express if you want) , and putting your site in IIS. Then you can use chrome or Firefox or whatever you want
0
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 
LVL 82

Assisted Solution

by:Dave Baldwin
Dave Baldwin earned 214 total points
Comment Utility
A browser by itself will not connect to an SQL server.  Browsers connect to web pages.  Some kind of program is going to be required to do the database connection and formatting.  To access it thru a web browser, you will also need a web server that supports your programming language.
0
 

Author Comment

by:Bob Schneider
Comment Utility
I have full sql express on my server and my local machine.  The web code is classic asp hosted on iis 7.0 on a remote server.  Does that mean I am good to go?  I will try to begin setting  this up in the next couple of days and I don't want to bother folks once I accept a solution.
0
 

Author Comment

by:Bob Schneider
Comment Utility
Ok so I guess what I am saying is how do I create a connection string to a local db.  I already know how to run it against the db on the server....
0
 
LVL 82

Assisted Solution

by:Dave Baldwin
Dave Baldwin earned 214 total points
Comment Utility
It should be the same as on the remote host except for the instance name.
0
 
LVL 38

Accepted Solution

by:
Aaron Tomosky earned 286 total points
Comment Utility
The web.config will have the connection string. This is relative to your site files and doesn't matter where you use a browser from. The browser talks to the site, the site talks to the database.
0
 

Author Closing Comment

by:Bob Schneider
Comment Utility
Very, very helpful.  thanks so much!!
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Do you come here a lot? Are you lazy like me and don't want to go through the "trouble" of having to click your Dock's Safari icon and then having to click your Experts Exchange Favorites bookmark to get here? Well then this article is for you.
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
This Micro Tutorial will demonstrate how nuggets on the Web are formatted by using Chrome Developer Tools. These tools would not only view the site's CSS but it can also modify it and save the CSS to use on your own site.
How to create a custom search shortcut to site-search Experts Exchange using Google in the Firefox browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch your Bookmark Menu: Press 'Ctrl +…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now