Accessing MS SQL & Coldfusion

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

  1. #1

    Default Accessing MS SQL & Coldfusion

    I've set up a local MS SQL 2000 database for development yet coldfusion MX 6
    refuses to see my database tables.

    My datasource verifies ok in coldfusion administrator im using the Microsft
    SQL server Driver. When I try and connect I get the following error. The
    table definately exisits and the user has permission to see the table yet i
    still get the error below. Im convinced its a permission problem in the
    database but Ive tried everything. the username in question is the owner of
    the database table and is part of the admin user group yet I still get it to
    work.

    Any help?? Going mad!!



    Error Executing Database Query.
    [Macromedia][SequeLink JDBC Driver][ODBC Socket][Microsoft][ODBC SQL
    Server Driver][SQL Server]Invalid object name 'products'.

    The error occurred in C:\Inetpub\wwwroot\Brady2006\test.cfm: line 1

    1 : <cfquery name="available" datasource="#client.dsn#"
    username="#client.username#" password="#client.password#">
    2 : SELECT *
    3 : FROM products where product='832112'



    bj Guest

  2. Similar Questions and Discussions

    1. Accessing custom java classes in Coldfusion
      I have created some java classes (.class) to work as a model in CF. I could instantiate this classes through the CreateObject() function in CF but I...
    2. Accessing dot net dlls from coldfusion 5
      Hi All. I am converting one part of my coldfusion application to dot net. The problem I am facing is the encryption. User Images are encrypted...
    3. Running ColdFusion 5.0 and ColdFusion 6.1 concurrently
      Hi, this is my first post on this forum, I have tried looking but could not find a post that discussed my problem. I am wondering if it is possible...
    4. How to call a coldfusion function defined in other coldfusion file??
      inside a.cfm, it has code fragment: <cfloop> <cfinclude template="b.cfm"> </cfloop> inside b.cfm, it has code fragment: ...
    5. Accessing complex COM objects in ColdFusion MC usingJava Stubs
      http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tf_18211 Step 3c: I am confused on this step. The server that I have ColdFusion...
  3. #2

    Default Re: Accessing MS SQL & Coldfusion

    Could be a reserved word problem, try

    SELECT *
    FROM where = '832112'

    Ken

    The ScareCrow Guest

  4. #3

    Default Re: Accessing MS SQL & Coldfusion

    Does the query work in Query Analyzer?
    Dan Bracuk Guest

  5. #4

    Default Re: Accessing MS SQL & Coldfusion

    mmmm it doesnt work in query analyzer

    yet the products table is there in enterprise manager

    still think it something to do with the login


    "Dan Bracuk" <webforumsuser@macromedia.com> wrote in message
    news:e3rk97$27p$1@forums.macromedia.com...
    > Does the query work in Query Analyzer?

    bj Guest

  6. #5

    Default Re: Accessing MS SQL & Coldfusion

    not sure what happened but i deleted the products table and recreated it and
    now all is working.

    Thanks for all your help


    "bj" <orders@seton.net.au> wrote in message
    news:e3rnhq$5k1$1@forums.macromedia.com...
    > mmmm it doesnt work in query analyzer
    >
    > yet the products table is there in enterprise manager
    >
    > still think it something to do with the login
    >
    >
    > "Dan Bracuk" <webforumsuser@macromedia.com> wrote in message
    > news:e3rk97$27p$1@forums.macromedia.com...
    >> Does the query work in Query Analyzer?
    >
    >

    bj 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