Re: Thick client connection works, VB/ASP doesn't!

From: Mark Schupp (notvalid_at_email.net)
Date: 10/26/04


Date: Tue, 26 Oct 2004 09:01:05 -0700

As others have pointed out this is a "traditional" asp newsgroup, not an
asp.net one. However, from your connection string it looks like you are
using named pipes to connect. Have you tried TCP/IP instead?

-- 
--Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com
"UncleHarpoon" <UncleHarpoon@discussions.microsoft.com> wrote in message 
news:4389F5BA-420B-4A0A-A5F5-F3A7D6396BF3@microsoft.com...
> An asp application is attempting to log on to a database using the
> SqlDataAdapter ADO. For some reason, the same connection strings that work 
> in
> non-web applications are refused when the asp application attempts to 
> connect
> with the same connection string.
>
> Sqlconnection.connectionstring = "User ID=user00;Password=pw00;Initial
> Catalog=test_db;Data Source=np:\\.\pipe\sql\query"
>
>
> Dim dt As New DataTable
> Try
>  Dim query As String = "SELECT * from table"
>  Dim dataAdapt As New SqlDataAdapter(query,sqlConnection)
>
>  dataAdapt.Fill(dt)
>
> Catch SQLex As SqlException
>            Throw SQLex
> End Try
>
>
> The solution that I am currently using is using the impersonate feature in
> the web.config:
>
> <identity impersonate="true" userName="domain\username" password="pwd"/>
>
> -- 
> Don Glman, P.E., MCP
> Sr. Software Engineer
> Energy Systems Lab, Texas A&M 


Relevant Pages

  • 0113 timeout
    ... This may be a SQL error, but I suspect it's a connection string problem, ... I have an Intranet app at the company I work for. ... allow ASP, which is turned off by default. ...
    (microsoft.public.inetserver.asp.general)
  • Re: 0113 timeout
    ... Original URL: ... > This may be a SQL error, but I suspect it's a connection string problem, ... > allow ASP, which is turned off by default. ... > Dim strDBConnection ...
    (microsoft.public.inetserver.asp.general)
  • Re: custom ASP programming has clashed with Frontpage DRW pages with SQL INSERT and UPDATE
    ... I've never heard of any such thing, and I've used ASP since it was first ... >> Both Jim and I told you that you shouldn' be referencing any DLL in your ... >> It is certainly fine to have both FrontPage DRW pages and your own ... >> automatically-generated Connection String in the global.asa file. ...
    (microsoft.public.frontpage.programming)
  • Re: Encryption of Connection String
    ... My web application is a mix of ASP and ASP.Net. ... The connection string is stored in clear text right now and I want to ... Server 2003. ... System.Cryptography namespace - loads of options for string encryption... ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Thick client connection works, VB/ASP doesnt!
    ... the same connection strings that work ... non-web applications are refused when the asp application attempts to ... Dim dataAdapt As New SqlDataAdapter ... without even the implied warranty of merchantability ...
    (microsoft.public.inetserver.asp.general)