dsnless help for sql

Ask a Question related to Dreamweaver AppDev, Design and Development.

  1. #1

    Default dsnless help for sql

    Hi,

    I have built a site using sql databases but when I upload the site to the web
    server I get an error because my host dose not let me use the sql database from
    a different domain than the one hosting the sql.

    Here is what I mean,

    sql database for creekaudio.com
    sql database for epos-acoustics.com

    musichallaudio.com needs to use both of the above sql databases.

    The host told me that I will have to use a dsnless connection string to ues
    the two. I can't seam to find a string that will work with the site I have
    made. I'm useing the same file name as before. here are the different typs of
    code I have tried:

    "PROVIDER=SQLOLEDB;DATA
    SOURCE=sql.server;UID=creeksql;PWD=password;DATABA SE=creeksql"

    "Driver={SQL Server};
    Server=[sql.server];Database=[creeksql];UID=[creeksql];PWD=[password];"

    <%
    ' FileName="Connection_ado_conn_string.htm"
    ' Type="ADO"
    ' DesigntimeType="ADO"
    ' HTTP="true"
    ' Catalog=""
    ' Schema=""
    Dim MM_creek_STRING
    MM_creek_STRING = "PROVIDER=SQLOLEDB;DATA
    SOURCE=sql.server;UID=creeksql;PWD=password;DATABA SE=creeksql"
    %>

    <%
    ' FileName="Connection_ado_conn_string.htm"
    ' Type="ADO"
    ' DesigntimeType="ADO"
    ' HTTP="true"
    ' Catalog=""
    ' Schema=""
    Dim MM_creek_STRING
    MM_creek_STRING = "Driver={SQL Server};
    Server=[sql.server];Database=[creeksql];UID=[creeksql];PWD=[password];"
    %>

    Can someone shead some light onthis for me as I get this type of error when
    using both codes.

    ADODB.Recordset error '800a0bb9'
    Arguments are of the wrong type, are out of acceptable range, or are in
    conflict with one another.
    /creek_products.asp, line 15


    Luke (dwtips.com) Guest

  2. Similar Questions and Discussions

    1. DSNless connection
      Has anyone had experience of losing their connection to their database after changing the site domain? All my existing tables link to the access...
    2. The DSNless access
      I am finally working on converting CF 5.x to the latest an greatest... why so long? Well, it's that darn deprication of dynamic data... I can deal...
    3. DSNLESS CONNECTION for COLDFUSION 4.0
      Is there anywy to have a dsnless connection for COLDFUSION 4.0? I have seen a couple scripts out there but when i try them it errors on me. I...
    4. Create a DSNless connection IN VBscript to connect to an Oracle Database
      Cheers for all the great help!!! I have now got the connection working and i can now write to the database; but the problem i have now is i need...
    5. perl as win32 and DSNless con to mdb?
      Hi here is wat I am trying: use Win32::ODBC; #my $dsn = "Provider=Microsoft.Jet.OLEDB.4.0; dbq=h:/logs/mail/report/addressTrack.mdb"; my...
  3. #2

    Default Re: dsnless help for sql

    [url]www.connectionstrings.com[/url]


    "Luke (dwtips.com)" <webforumsuser@macromedia.com> wrote in message
    news:d5cool$mjb$1@forums.macromedia.com...
    > Hi,
    >
    > I have built a site using sql databases but when I upload the site to the
    > web
    > server I get an error because my host dose not let me use the sql database
    > from
    > a different domain than the one hosting the sql.
    >
    > Here is what I mean,
    >
    > sql database for creekaudio.com
    > sql database for epos-acoustics.com
    >
    > musichallaudio.com needs to use both of the above sql databases.
    >
    > The host told me that I will have to use a dsnless connection string to
    > ues
    > the two. I can't seam to find a string that will work with the site I have
    > made. I'm useing the same file name as before. here are the different typs
    > of
    > code I have tried:
    >
    > "PROVIDER=SQLOLEDB;DATA
    > SOURCE=sql.server;UID=creeksql;PWD=password;DATABA SE=creeksql"
    >
    > "Driver={SQL Server};
    > Server=[sql.server];Database=[creeksql];UID=[creeksql];PWD=[password];"
    >
    > <%
    > ' FileName="Connection_ado_conn_string.htm"
    > ' Type="ADO"
    > ' DesigntimeType="ADO"
    > ' HTTP="true"
    > ' Catalog=""
    > ' Schema=""
    > Dim MM_creek_STRING
    > MM_creek_STRING = "PROVIDER=SQLOLEDB;DATA
    > SOURCE=sql.server;UID=creeksql;PWD=password;DATABA SE=creeksql"
    > %>
    >
    > <%
    > ' FileName="Connection_ado_conn_string.htm"
    > ' Type="ADO"
    > ' DesigntimeType="ADO"
    > ' HTTP="true"
    > ' Catalog=""
    > ' Schema=""
    > Dim MM_creek_STRING
    > MM_creek_STRING = "Driver={SQL Server};
    > Server=[sql.server];Database=[creeksql];UID=[creeksql];PWD=[password];"
    > %>
    >
    > Can someone shead some light onthis for me as I get this type of error
    > when
    > using both codes.
    >
    > ADODB.Recordset error '800a0bb9'
    > Arguments are of the wrong type, are out of acceptable range, or are in
    > conflict with one another.
    > /creek_products.asp, line 15
    >
    >

    Lionstone 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