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

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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...
    2. 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...
    3. 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...
  3. #2

    Default 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...
    >
    > 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
    >
    >
    >
    >

    Kevin Spencer Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139