Solved

How can we connect Local Sql Server to Web Server?

Posted on 2013-10-30
3
263 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
  • 2
3 Comments
 
LVL 18

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 18

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

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…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

762 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

20 Experts available now in Live!

Get 1:1 Help Now