SQL Connection Problems

Ask a Question related to Coldfusion Database Access, Design and Development.

  1. #1

    Default SQL Connection Problems

    Ever since installing Windows XP service pack 2 I've been having problems
    registering and using a SQL Server 2000 database with Coldfusion MX 7
    Developers edition. I'm running everything local on my laptop with Win XP pro
    (IIS, SQL Server 2000 and CF MX7 Developer). I am unable to register a SQL
    database using the Microsoft SQL Server driver in the CF Admin. I read some
    posts that said to use an ODBC Socket which I did and am able to register with
    the CF Admin and verify. But now when I run a query I get the following error:
    Error Executing Database Query.
    [Macromedia][SequeLink JDBC Driver][ODBC Socket][Microsoft][ODBC SQL Server
    Driver][SQL Server]Invalid object name 'Users'.

    The error occurred in C:\Inetpub\wwwroot\sites\MyCMS\index.cfm: line 1

    1 : <cfquery name="loginQuery" datasource="CMS">
    2 : SELECT UserID, UserName, Password
    3 : FROM Users</cfquery>




    --------------------------------------------------------------------------------

    SQL SELECT UserID, UserName, Password FROM Users
    DATASOURCE CMS
    VENDORERRORCODE 208
    SQLSTATE 42S02

    Please try the following:
    Check the ColdFusion documentation to verify that you are using the correct
    syntax.
    Search the Knowledge Base to find a solution to your problem.


    Browser Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR
    1.1.4322)
    Remote Address 127.0.0.1
    Referrer
    Date/Time 17-Sep-05 04:38 PM

    Stack Trace (click to expand)

    I've tried adding a username/password to the query but still got the same
    error. I'm at a total loss and would really like to be able to get this working
    locally so I can do some offline development.

    emeade Guest

  2. Similar Questions and Discussions

    1. FMS connection problems
      I have just set up FMS on Windows XP It seems to work fine since I can connect to it through the admin interface! Now the problem is when I try...
    2. Connection Problems
      I have a obscure, on-going and difficult problem. Aproximately every 3rd time (but not exactly) I try to connect to the internet the port doesn't...
    3. Connection / Re-connection problems
      Hi, I was wondering if anybody has been having similar problems with Contribute. I'm having two different connection problems. I'm using Microsoft...
    4. How ma ny are still having Connection Problems
      Hi, just to let you know that a support person from Macromedia contacted me early last week and managed to resolve my difficulty. I have been able...
    5. OLE DB Connection Problems
      Hi Guys One of you kindly confirmed what the true OLE DB syntax is for an ASP > ADO FYR, I have it as follows: ...
  3. #2

    Default Re: SQL Connection Problems

    Did you make sure any firewall settings allow communication with your database?
    What was the exact error message you received when using the "Microsoft SQL
    Server" driver?
    Did you set the default database in the ODBC DSN configuration? Otherwise I
    think it defaults to the "master" database.


    mxstu Guest

  4. #3

    Default Re: SQL Connection Problems

    Thanks for the quick response. So of couse as soon as I post I get it to work.
    I tried using the SQL Server Driver one more time and changed the Server from
    (Localhost) to 127.0.0.1 and it worked. I thought I had already tried that. Go
    figure. Thanks.

    emeade Guest

  5. #4

    Default Re: SQL Connection Problems

    That happens sometimes. Glad it is working now.
    mxstu Guest

  6. #5

    Default Re: SQL Connection Problems

    You have to install sp 3 for sql server after you have installed sp2 for xp

    Ken
    The ScareCrow 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