473,401 Members | 2,068 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,401 software developers and data experts.

DSN's and ASP.NET can it be done?


I am trying to do what I think is a very simple thing but I am getting lost
in the documentation.

I have a DSN set up on a server .. and I want to place a connection string
in my ASPX page so I can read from a table on the remote DB server

The DSN points to a SQL server that is using named pipes (TCP/IP would make
everything easy but its not to be)

all the doco's seem to want to use DSNless connections I have typed in so
many different connection strings but nothing brings joy.
I even found a page with so many connection strings that I felt heartened
that others also share my problems with these damn things.

Can anyone give me a snippet of code that will allow my ASPX page to use the
DSN (which by the way tests just fine)
Any tips appreciated.
Cheers Bill


Nov 17 '05 #1
1 5328
You don't want to use a System DSN. A System DSN uses ODBC which is a
wrapper for OLE DB, meaning that you're talking about a lot of unnecessary
overhead. The .Net System.Data.SqlClient classes talk directly to the SQL
Server, without having to use OLE DB OR ODBC. Instead, you need to figure
out how to build your Connection correctly. If you post your Connection
String, perhaps we can help.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Big things are made up of
lots of little things.

"Taco Bill" <no****@nospam.com.au> wrote in message
news:2d*****************@news-server.bigpond.net.au...

I am trying to do what I think is a very simple thing but I am getting lost in the documentation.

I have a DSN set up on a server .. and I want to place a connection string
in my ASPX page so I can read from a table on the remote DB server

The DSN points to a SQL server that is using named pipes (TCP/IP would make everything easy but its not to be)

all the doco's seem to want to use DSNless connections I have typed in so
many different connection strings but nothing brings joy.
I even found a page with so many connection strings that I felt heartened
that others also share my problems with these damn things.

Can anyone give me a snippet of code that will allow my ASPX page to use the DSN (which by the way tests just fine)
Any tips appreciated.
Cheers Bill

Nov 17 '05 #2

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

Similar topics

2
by: Kevin | last post by:
I am currently importing data into Access 2002 from 3 Sybase ASA 7.0 databases over a network. At this time I am using a ODBC System DSN connection using the proper ASA 7 driver. I would like to...
6
by: jimfortune | last post by:
A long time ago in a company far, far away :-), I set up UPS WorldShip to use an A97 query to provide up-to-date shipping label addresses using a Data Source Name (DSN) created via the ODBC...
6
by: Andi Reisenhofer | last post by:
Hallo C# folks, Somebody know how to create a ODBC DSN dynamically in c# program. Also interesting for me would be the connectionstring for an Access Database. Thinks a lot Andreas
0
by: Lewt | last post by:
I am aware of the 'hack the registry' approach. This is just not a safe way to accomplish this on a user's PC. I need to do this the right way. Is there anyone -perhaps from Microsoft - out there...
13
by: JIM.H. | last post by:
Hello, I have the following lines to read connection string from web.config; string cStr = ConfigurationSettings.AppSettings; SqlConnection sqlConn = new SqlConnection(cStr);...
0
by: Neo | last post by:
Hello All, ODBCAD32.exe launches DSN Setup. But then I have to select DSN and click configure to configure DSN. Is there any way, I could invoke configuration dialog box for particular DSN...
3
by: Tull Clancey | last post by:
Hi all. I've been searching all over the place for a bit of VB Net code that will create a DSN for an Access database. I've found examples of creating connections for SQL, but not Access. ...
3
by: bala | last post by:
Hi Gurus The scenario A MS Access frontend application with Oracle Backend (Linked Tables). The Database UserID and password is not stored and each user has a unique UserID and password. There...
7
by: Bill Nguyen | last post by:
I have this connection string using ODBC DSN Dim FactorJaco As String = "dsn=jaco;catalog=factor;uid=user;pwd=passord" This requires an ODBC DSN (jaco) at every client PC. I need to use DSN-less...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
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...
0
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...
0
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...

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.