Connecton string problem with classic ASP running within Net SDK

Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default Connecton string problem with classic ASP running within Net SDK

    When I run the following connection code in classic ASP on a machine
    without the NET SDK installed it works perfectly and has done for some
    time.

    When I run it on a computer with the Net SDK installed it fails with
    the message given below.

    The code is:

    dim strconnect
    strconnect="Provider=sqloledb;DataSource=CMS2\NetS DK;Database=testThursday;uid=sa;pwd=;"

    set myConn= Server.CreateObject ("ADODB.Connection")
    myConn.open strConnect

    The error message is:
    Microsoft OLE DB Provider for SQL Server error '80004005'

    Invalid connection string attribute

    I would be most grateful for advice as I urgently need to solve this
    problem. I

    I should perhaps say that the datasource and database names are
    slightly different in the two computers but I have double checked that
    the names are correct and that the form of the sting is the same.

    I can make a connection using the Visual Studio tool but I cannot get
    what looks like a complicated VS generated string to work in the asp
    file.

    I am wondering if I need to use a different connection string in the
    Net environment ?

    Best wishes, John Morgan


    John Morgan Guest

  2. Similar Questions and Discussions

    1. Freehand9 running on Classic mode of OSX
      I recently moved to OSX and should be able to run older versions of software in OS9 at the same time. After reinstalling FH9, I cannot launch due...
    2. Running command from string variable as if part of script
      I'm reading another perl script into array and want to commands from the the array as if normal perl commands. How do I do it?
    3. Classic Projector/ Buddy API problem
      Hello, I am trying to use Buddy API to open files on a CD. Works great in OS X and Windows but not in Classic. I created the application...
    4. Cross-platform --- Win/Mac OS X/Classic OS... Major Problem!!!
      Hi all, I'm currently working on a cross-platform app in DirMX, which has to be deployed on Mac OS X, Classic Mac OS and Windows. I have created...
    5. problem:Director mx projector in classic.....
      When I try to run the projector in OS 9....first of all the projector icon does not appear. It appears the white sheet with the "A"....(application...
  3. #2

    Default Re: Connecton string problem with classic ASP running within Net SDK

    See [url]www.connectionstrings.com[/url] for the correct syntax.

    Bob Barrows

    John Morgan wrote:
    > When I run the following connection code in classic ASP on a machine
    > without the NET SDK installed it works perfectly and has done for some
    > time.
    >
    > When I run it on a computer with the Net SDK installed it fails with
    > the message given below.
    >
    > The code is:
    >
    > dim strconnect
    >
    strconnect="Provider=sqloledb;DataSource=CMS2\NetS DK;Database=testThursday;u
    id=sa;pwd=;"
    >
    > set myConn= Server.CreateObject ("ADODB.Connection")
    > myConn.open strConnect
    >
    > The error message is:
    > Microsoft OLE DB Provider for SQL Server error '80004005'
    >
    > Invalid connection string attribute
    >
    > I would be most grateful for advice as I urgently need to solve this
    > problem. I
    >
    > I should perhaps say that the datasource and database names are
    > slightly different in the two computers but I have double checked that
    > the names are correct and that the form of the sting is the same.
    >
    > I can make a connection using the Visual Studio tool but I cannot get
    > what looks like a complicated VS generated string to work in the asp
    > file.
    >
    > I am wondering if I need to use a different connection string in the
    > Net environment ?
    >
    > Best wishes, John Morgan

    Bob Barrows Guest

  4. #3

    Default Re: Connecton string problem with classic ASP running within Net SDK

    Thanks Bob,
    I appreciate your help - I looked up the page and the first string I
    tried worked perfectly,

    Best wishes, John Morgan

    On Fri, 10 Oct 2003 17:16:36 -0400, "Bob Barrows"
    <reb01501@NOyahoo.SPAMcom> wrote:
    >See [url]www.connectionstrings.com[/url] for the correct syntax.
    >
    >Bob Barrows
    >
    >John Morgan wrote:
    >> When I run the following connection code in classic ASP on a machine
    >> without the NET SDK installed it works perfectly and has done for some
    >> time.
    >>
    >> When I run it on a computer with the Net SDK installed it fails with
    >> the message given below.
    >>
    >> The code is:
    >>
    >> dim strconnect
    >>
    >strconnect="Provider=sqloledb;DataSource=CMS2\Net SDK;Database=testThursday;u
    >id=sa;pwd=;"
    >>
    >> set myConn= Server.CreateObject ("ADODB.Connection")
    >> myConn.open strConnect
    >>
    >> The error message is:
    >> Microsoft OLE DB Provider for SQL Server error '80004005'
    >>
    >> Invalid connection string attribute
    >>
    >> I would be most grateful for advice as I urgently need to solve this
    >> problem. I
    >>
    >> I should perhaps say that the datasource and database names are
    >> slightly different in the two computers but I have double checked that
    >> the names are correct and that the form of the sting is the same.
    >>
    >> I can make a connection using the Visual Studio tool but I cannot get
    >> what looks like a complicated VS generated string to work in the asp
    >> file.
    >>
    >> I am wondering if I need to use a different connection string in the
    >> Net environment ?
    >>
    >> Best wishes, John Morgan
    >
    John Morgan 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