Solved

How can we connect Local Sql Server to Web Server?

Posted on 2013-10-30
3
268 Views
Last Modified: 2013-11-15
How can we connect Local Sql Server to Web Server?


Thanks in advance
0
Comment
Question by:hc_gupta
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 19

Expert Comment

by:Peter Hutchison
ID: 39611302
A bit more information is required. Is it a MySQL server or Microsoft SQL Server?
Is it an IIS web server or an Apache web server?
What language are you using on web pages? ASP, ASPX, PHP, Perl, Java?
For non-Microsoft scripting, you need to use FreeTDS add-on to connect to SQL databases:
http://freetds.schemamania.org/
0
 

Author Comment

by:hc_gupta
ID: 39613383
I am using Microsoft SQL Server.And the language is ASP.Net
0
 
LVL 19

Accepted Solution

by:
Peter Hutchison earned 500 total points
ID: 39616159
If using asp.net then you can use the ADODB v7 objects to connect to sql.
e.g.
USe ADODB.Connection to create a connection to a SQL database.
Use ADODB.Command to send commands to a SQL server.
Use ADODB.Recordset to store SQL table contents.
Use connection.Open to open a SQL table
use table.AddNew to add a row to SQL table
use table.Fields("name") to get or set fields in a table
Use table.Update to write changes to a table.
etc.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

730 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