Ask a Question related to ASP.NET General, Design and Development.
-
Taco Bill #1
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
Taco Bill Guest
-
ColdFusion MX ODBC Agent & Server Services Required forMS SQL 2000 DSN's?
Does anyone know if "ColdFusion MX ODBC Agent & Server Services" are required for Microsoft SQL 2000 DSN's? I thought these ODBC services were only... -
ODBC Socket doesn't show my list of ODBC DSN's!?!
In the ColdFusion MX 7 Administrator, when I try to create a new datasource of type ?ODBC Socket?, the drop down labled ?ODBC DSN? that is supposed... -
MX and CF faill to locate DSN's
I am setting up MX 2004 to connect to a ColdFusion 7 enabled server. When I go to Applications panel group and click on the Specify RDS login, enter... -
Kevin Spencer #2
Re: DSN's and ASP.NET can it be done?
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
[url]http://www.takempis.com[/url]
Big things are made up of
lots of little things.
"Taco Bill" <nospam@nospam.com.au> wrote in message
news:2dcRa.7266$wU5.5097@news-server.bigpond.net.au...lost>
> I am trying to do what I think is a very simple thing but I am gettingmake> 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 wouldthe> 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> DSN (which by the way tests just fine)
> Any tips appreciated.
>
>
> Cheers Bill
>
>
>
>
Kevin Spencer Guest



Reply With Quote

