Microsoft SQL Server
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMicrosoft SQL Server

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old February 17th, 2003, 10:30 AM
chandy chandy is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Location: Kuwait
Posts: 1 chandy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question Connecting to local Sql Server from a Web Server using ASP

I am trying to connect to the Mssql server 2000 database of my

office p.c from an Asp page hosted in our webserver.But it is not

working.The error is something like this

***************
Error Type:
Microsoft OLE DB Provider for SQL Server (0x80004005)
[DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or
access denied.

***************
Do I need to change any settings in the mssqlserver in our office

p.c.I am using the following code for connection

****************
con.ConnectionString= "Provider=SQLOLEDB.1;Persist Security

Info=true;User ID=sa; Initial Catalog=db1;Data

Source=xx.xxx.xxx.xx,pppp ; "

***************
The i.p used for Data Source is the dyanamic i.p provided by the isp since we are using a dialup connection here(I got it by using the command 'ipconfig' in the command prompt).The port is the default one '1433'.There is no problem with the i.p as i am able to obtain the static html pages in my office p.c using this i.p(IIS is there in my office p.c)
I don't think there is any problem with the code used for connection as I am to connect to our other sql server databases hosted in the web servers using the same code.
So i think that there should be some settings/configurations to be
made in SQL Server/IIS for accessing the databsae thru internet and I don't know what it is

Last edited by chandy : February 24th, 2003 at 09:43 AM.

Reply With Quote
  #2  
Old February 17th, 2003, 01:34 PM
digitallysmooth digitallysmooth is offline
you know how we do
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jun 2002
Posts: 788 digitallysmooth User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 34 m 21 sec
Reputation Power: 7
Try it with localhost or the private lan ipaddress first and see what you can come up with.
__________________
__________________________________________________ _
Wil Moore III, MCP | Integrations Specialist | Senior Consultant
Are You Listed...? | DigitallySmooth Inc.

Reply With Quote
  #3  
Old February 23rd, 2003, 09:50 PM
stumpy's Avatar
stumpy stumpy is offline
May contain nuts.
Dev Articles Regular (2000 - 2499 posts)
 
Join Date: Aug 2002
Location: Sydney, AU
Posts: 2,058 stumpy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 8 m 57 sec
Reputation Power: 9
Send a message via ICQ to stumpy Send a message via MSN to stumpy
Hey chandy - just letting you know for future reference: it's generally not a good idea to post IP address with login details on the web. (just replace your IP with xxx's)

stumpy.

Reply With Quote
  #4  
Old July 6th, 2004, 07:38 AM
zuka zuka is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 1 zuka User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Help

In fact i am not answering the question but merely asking a basic question. I am trying to connect to a local SQL server from Crystal report thru internet as its not in our intranet. I guess you will be able to guide me how exactly i can do it.... Will appreciate yr help in this, Regards, Zuka.

Reply With Quote
  #5  
Old July 6th, 2004, 08:00 AM
stumpy's Avatar
stumpy stumpy is offline
May contain nuts.
Dev Articles Regular (2000 - 2499 posts)
 
Join Date: Aug 2002
Location: Sydney, AU
Posts: 2,058 stumpy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 8 m 57 sec
Reputation Power: 9
Send a message via ICQ to stumpy Send a message via MSN to stumpy
How are you connecting to the DB - via DSN? If so, simply enter in the name or IP of the machine you want to connect to. If the DB is inside a LAN (and does not have a real world IP) then you won't be able to do it unless you're on a VPN.
__________________
DevArticles Moderator
BlueSix - Web Development and Consulting

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMicrosoft SQL Server > Connecting to local Sql Server from a Web Server using ASP


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT