CF requiring owner name prefix to tablename during query

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

  1. #1

    Default CF requiring owner name prefix to tablename during query

    Hi,

    We are beginner a transfer of all of out apps from CF5 to CF7 and I noticed
    that, when the owner of a table is not DBO, then I have to prefix table names
    with the owner name. For example...

    Say we have a table called "SysAdmins", it is owned by the user "Andy".

    This doesn't work, but worked in previous versions:
    SELECT * FROM SysAdmins

    But, this works:
    SELECT * FROM Andy.SysAdmins

    Is this a new function of CF7? Is there are setting to make CF not require
    this prefix?

    Thanks!

    Andy

    PS. We are running CF7 with MS SqlServer v8.

    AndyDC Guest

  2. Similar Questions and Discussions

    1. sort tablename in sql table
      hi.. i have several tables where I need to sort the column name in a table; asc order.. how can i do that? ex: table is abc column name: yahoo,...
    2. ASP problem - Invalid object name 'dbo.tablename'
      I've got a really strange ASP situation that driving me crazy! I'm sorry that it sounds like a word problem, but these are the things I've tried. ...
    3. Drop table <tablename> failling
      I created a very simple table in db2, the prompt gave a success message. but when I try to do a describe or select or insert or basically anything...
    4. query on changing object owner
      I need to change object ownership for all objects (sp's, tables, views, etc) from SGLuser to dbo for a sql 7 db. Can anyone give me an idea of the...
    5. using DatabaseName.dbo.TableName
      First, sorry for my bad english...I work hard to improve it I need to access a table in a different database Ex: I work on a table tableOne in...
  3. #2

    Default Re: CF requiring owner name prefix to tablename duringquery

    We are running on CFMX v6.1 with SQLServer7 and have not experienced this
    issue. Sounds like it may be an account configuration issue with your
    SqlServer account access. Have you tried manually accessing SqlServer with
    Enterprise Manager using the account in question?

    zz3top Guest

  4. #3

    Default Re: CF requiring owner name prefix to tablename duringquery

    Hi Andy,
    If you create public synonyms for those tables in the database, table owner prefix will not be required. This works in Oralce. I think MS SQL does the same.

    James
    [url]www.kidSale.com[/url]

    James168 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