473,554 Members | 2,608 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Possible to access data source not on local server?

D
Hello everyone
I have developed a web application using .asp to access a data
source on a different server than where my .asp files are stored. I've
tried to determine how to establish this connection ( to a SQL server )
to access the data source but I cannot. Is this possible and if
so...how? provided below is my connection string. Thank you!

<%
CONST POST = "POST"
CONST DBCONNSTRING = "Provider=SQLOL EDB.1;Integrate d
Security=SSPI;P ersist Security Info=False;Init ial Catalog=ACC;Dat a
Source=\\WHTSQL NT01\BMC"
'CONST DBCONNSTRING = "Provider=SQLOL EDB.1;Integrate d
Security=SSPI;P ersist Security Info=False;Init ial
Catalog=ACC;dat abase=ACC;Data Source=(Local)"
'CONST DBCONNSTRING = "Provider=SQLOL EDB.1;Integrate d
Security=SSPI;P ersist Security Info=False;Init ial
Catalog=PUBS;da tabase=PUBS;Dat a Source=(Local)"
CONST APPSCOOKIENAME = "AppNumsCoo kie"
CONST GROUPCOOKIENAME ="GroupsCook ie"
%>

Nov 13 '06 #1
3 2156
Which database and which version are you using (trying to connect to
remotely)?

www.connectionstrings.com has some examples;

If you're using msde
then
DISABLENETWORKP ROTOCOLS=0

google that.
I'm guessing you're using trusted/integrated security, and the remote
machine isn't setup to use that account.

I'd suggest creating a non windows / sql authentication account to connect
with to the remote machine


"D" <em*******@comc ast.netwrote in message
news:11******** **************@ f16g2000cwb.goo glegroups.com.. .
Hello everyone
I have developed a web application using .asp to access a data
source on a different server than where my .asp files are stored. I've
tried to determine how to establish this connection ( to a SQL server )
to access the data source but I cannot. Is this possible and if
so...how? provided below is my connection string. Thank you!

<%
CONST POST = "POST"
CONST DBCONNSTRING = "Provider=SQLOL EDB.1;Integrate d
Security=SSPI;P ersist Security Info=False;Init ial Catalog=ACC;Dat a
Source=\\WHTSQL NT01\BMC"
'CONST DBCONNSTRING = "Provider=SQLOL EDB.1;Integrate d
Security=SSPI;P ersist Security Info=False;Init ial
Catalog=ACC;dat abase=ACC;Data Source=(Local)"
'CONST DBCONNSTRING = "Provider=SQLOL EDB.1;Integrate d
Security=SSPI;P ersist Security Info=False;Init ial
Catalog=PUBS;da tabase=PUBS;Dat a Source=(Local)"
CONST APPSCOOKIENAME = "AppNumsCoo kie"
CONST GROUPCOOKIENAME ="GroupsCook ie"
%>

Nov 13 '06 #2
The "Data Source" portion of your connection string looks like a UNC path, it
should look more like just the machine name (or ip address). e.g.,
Data Source=WHTSQLNT 01
Peter
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"D" wrote:
Hello everyone
I have developed a web application using .asp to access a data
source on a different server than where my .asp files are stored. I've
tried to determine how to establish this connection ( to a SQL server )
to access the data source but I cannot. Is this possible and if
so...how? provided below is my connection string. Thank you!

<%
CONST POST = "POST"
CONST DBCONNSTRING = "Provider=SQLOL EDB.1;Integrate d
Security=SSPI;P ersist Security Info=False;Init ial Catalog=ACC;Dat a
Source=\\WHTSQL NT01\BMC"
'CONST DBCONNSTRING = "Provider=SQLOL EDB.1;Integrate d
Security=SSPI;P ersist Security Info=False;Init ial
Catalog=ACC;dat abase=ACC;Data Source=(Local)"
'CONST DBCONNSTRING = "Provider=SQLOL EDB.1;Integrate d
Security=SSPI;P ersist Security Info=False;Init ial
Catalog=PUBS;da tabase=PUBS;Dat a Source=(Local)"
CONST APPSCOOKIENAME = "AppNumsCoo kie"
CONST GROUPCOOKIENAME ="GroupsCook ie"
%>

Nov 13 '06 #3
D
I should've provided a few more key details - all of my pages interact
through intranet. We are not publishing any sites for internet use. It
is true that I'm using a UNC path - we've had one developer
successfully connect across servers this way, as well as using an
access dbo in the same source as the .asp files. Very redundant method
that appears to be. I will check the site that was provided in the last
post and also try your suggestions. Hopefully I can come up with some
resolution. Thank you both for your suggestions!

Nov 15 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

33
106480
by: Savas Ates | last post by:
in asp page im getting this error how can i solve it.. yesterday the codes work but i setup visual studio 6.0 now it doesnt works..
63
5842
by: Jerome | last post by:
Hi, I'm a bit confused ... when would I rather write an database application using MS Access and Visual Basic and when (and why) would I rather write it using Visual Studio .Net? Is it as easy in Visual Studio to create reports and labels as it's in Access?` The advantage of VS.net is that not every user needs Access, right? And that...
5
3322
by: Klemens | last post by:
I get SQL30090 reason 18 by trying to do an insert in a federated table and an update in a local table in one transaction Do I have to change some settings to get done or ist this not possible by definition? Thanks Klemens
3
3481
by: Lyle Fairfield | last post by:
In a recent thread there has been discussion about Data Access Pages. It has been suggested that they are not permitted on many or most secure sites. Perhaps, that it is so, although I know of no site that has this prohibition, and I have uploaded DAPs to various sites and used them from those sites. I do not understand why any site...
3
2350
by: VB.NET | last post by:
I'm using a mysql database and connecting my vb.net program to the DB over a network connection. i would like to bring this data over to a vb.net random access file. does anyone know how to convert my DB into a binary file? and how to convert my code to use a file instead of the db?
9
3818
by: Wayne Smith | last post by:
I've come up against a major headache that I can't seem to find a solution for but I'm sure there must be a workaround and I would really be grateful of any help. I'm currently building a web site for a small club I belong to and one of the features I would like to include is the ability to allow users to upload image files. ...
7
2677
by: D. Patrick | last post by:
I need to duplicate the functionality of a java applet, and how it connects to a remote server. But, I don't have the protocol information or the java source code which was written years ago. So, I used a packet sniffer and saw the protocol (TCP), the port, IP address, etc. All is good. I tried 2 different versions of .NET code to...
3
2901
by: SAL | last post by:
Hi, I have Microsoft Enterprise Library 2005 installed on my local system. I'm developing in C# using Visual Studio 2003 IDE with framework 1.1. I am automating a process that will use a DLL assembly I am developing. I am going to use the data Access Application Block for data access in my DLL assembly, and a Windows Service will execute...
5
4955
by: Jim | last post by:
I'm a vb.net newbie. I have an query that is entirely within an Access database. It's a simple update query - "usp_Append_tbl_RefNos". It works in Access, How can I run that query from a vb .net program? I have an vb app that does update another Access table using a stored procedure but it updates fields with info from a file. I've...
0
7615
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
8055
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7581
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7897
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6170
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5446
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3566
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2030
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
858
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.