Solved

How can we connect Local Sql Server to Web Server?

Posted on 2013-10-30
3
267 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 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Lots of people ask this question on how to extend the “MembershipProvider” to make use of custom authentication like using existing database or make use of some other way of authentication. Many blogs show you how to extend the membership provider c…
I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

829 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