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

  1. #1

    Default Database-CF admin

    hey,
    I just realised I dont have access to the cold fusion administrative page and
    im trying to figure out the tables that exist on the database. I understand
    this can be done through the cfquery and cfgrid tags but i was hoping somebody
    could give me insight into what i might need to do.
    thanks

    Counselnitin Guest

  2. Similar Questions and Discussions

    1. Accessing database which is not set up in Admin
      How can you access MS Access database without configuring it in admin panel and accessing it through a path like when you do with .asp e.g....
    2. Database access without using CF admin
      Hi, I'm using Coldfusion MX 7 and I've built a web app that actually creates an user profile, then creates a mySQL database in c:\mysql\data as...
    3. CF Admin not accepting database password
      Running CF 6.1 on a test server. I'm trying to setup an access database which contains a database password. The cf admin keeps giving me an error...
    4. Incorrect password or user Admin is not known on the database
      As the log files tells you, the user is trying userid Admin. Check if this ID exists on ur unix box. To get a list of IP's and stuff from where...
    5. Incorrect password or user Admin is not known on the database server
      Hi all !! I frecuently seen this message on the log file: "Admin: Incorrect password or user Admin is not known on the database server" I...
  3. #2

    Default Re: Database-CF admin

    Hi,

    I had the same problem once when i did an update. First of all you need to
    make sure your webserver is up and running. If so two things can be wrong:
    1) Your CFIDE files are not on your computer
    2) Your hyperlink is pointing to a false directory (not likely)

    To find out if your cfide files are on your computer goto your default web
    directory if you are using IIS i believe this is C:\Inetpub\wwwroot (\htdocs
    not sure about the last), for apache C:\Program Files\Apache
    Group\Apache2\htdocs. The map should contain a map named CFIDE. If so try the
    following url:
    [url]http://127.0.0.1/[/url] (your default webserver path)
    [url]http://127.0.0.1/cfide/administrator/[/url] (happy administrating)

    This should work now.

    If the map CFIDE does not exists you need the copy them from another computer
    on your comp in the map i just mentioned.

    Well hope i helped you on your way.

    Greetings Nebu



    Nebu24 Guest

  4. #3

    Default Re: Database-CF admin

    Hi,
    I think my description of the problem was inadequate. The CF server is running
    on the school server. I tried to get access to the administrative page but was
    told they dont really want people accessing the database. I was told that the
    only way I can determine the tables that exist in my DB was through the
    CFquery and CFgrid tag. hope this helps
    nitin

    Counselnitin Guest

  5. #4

    Default Re: Database-CF admin

    Counselnitin,

    You can use cfquery to get the list of tables in your database. The exact
    syntax depends on what database you're using. Once you have the list of tables
    in a cfquery object, you can use cfgrid to display the information, but it is
    not required. If you just want to display the list, you can use something as
    simple as cfdump or cfoutput.



    <!--- assumes correct datasource/database permissions --->
    <!--- sql server database --->
    <cfquery name="getTableNames" datasource="yourSQLServerDSN">
    SELECT Table_Name
    FROM Information_Schema.Tables
    WHERE Table_Catalog = 'yourDatabaseName'
    </cfquery>
    <cfdump var="#getTableNames#">
    <!--- mySQL database --->
    <cfquery name="getTableNames" datasource="yourMySQLDSN">
    SHOW TABLES FROM yourDatabaseName;
    </cfquery>
    <cfdump var="#getTableNames#">

    mxstu Guest

  6. #5

    Default Re: Database-CF admin

    Connection to LDAP Server failed
    The error occurred in
    /afs/.glue.umd.edu/department/oit/eis/webhosting/counseling/htdocs/cfcommon/scri
    pts/_Auth_UMCPLDAP_.cfm: line 61
    Called from
    /afs/.glue.umd.edu/department/oit/eis/webhosting/counseling/htdocs/cfcommon/scri
    pts/_CommonLogin_UMCPLDAP_.cfm: line 67
    Called from
    /afs/.glue.umd.edu/department/oit/eis/webhosting/counseling/htdocs/DSS/OnlineFor
    ms/TestRequest/Application.cfm: line 57

    59 : password="#rt.ldapPW#"
    60 : name="ldapRetrieve"
    61 :
    attributes="employeeNumber,cn,givenName,sn,umIniti als,umMiddleInitial,umDisplayN
    ame,umDisplayNameLF,mail,telephoneNumber,postalAdd ress"
    62 : filter="(uid=#rt.ldapID#)"
    63 : start="dc=people,dc=ldap, dc=umd, dc=edu"


    I get this error message when i attached the code. Im not sure about what this
    really means
    nitin

    Counselnitin Guest

  7. #6

    Default Re: Database-CF admin

    i think it is an oracle database
    nitin
    Counselnitin Guest

  8. #7

    Default Re: Database-CF admin

    Sorry I can't help you with the LDAP error message. It looks like something
    specific to your application.

    I'm not using oracle but this link provides some information on retrieving
    metadata in Oracle databases
    [url]http://www.oreillynet.com/pub/a/network/2002/10/28/data_dictionary.html[/url]

    mxstu Guest

  9. #8

    Default Re: Database-CF admin

    Hi,
    Ive reached the point where Im now trying to query the datasource to view the
    tables. This is the code ive attached. But i cant seem to be able to display
    the structure of the table on the screen. Is there a tag I need to attach to
    get it to work
    code :
    <cfquery name="SG_QUESTION_DATA" datasource="#application.ds#">
    select Column_Name, Data_Length, Data_Type
    from USER_TAB_COLUMNS
    where Table_Name = 'SG_QUESTION_DATA'
    </cfquery>
    thanks
    nitin

    Counselnitin Guest

  10. #9

    Default Re: Database-CF admin

    If the display is just for debugging purposes, the easiest method is to use
    cfdump:

    <cfdump var="#SG_QUESTION_DATA#">

    Otherwise, you can use cfoutput with the "query" attribute:


    <cfoutput query="yourQuery">
    #someColumn1# #someColumn2# ... etc... <br>
    </cfoutput>


    mxstu Guest

  11. #10

    Default Re: Database-CF admin

    Hi,
    Yes, im now able to view a few of the columns. Im not sure but what does
    "USER_TAB_COLUMNS" imply ? I know for a fact that there should be a column name
    with first name and last name but they dont show on my view. Is there something
    im missing ?
    nitin

    Counselnitin Guest

  12. #11

    Default Re: Database-CF admin

    okay, so i finally figured out what USER_TAB_COLUMNS does. Its just that now im
    a little confused on why there might be a few fields that are actually not
    displayed. the variables first name and last name do not show up on the
    listing. any ideas why
    nitin

    Counselnitin Guest

  13. #12

    Default Re: Database-CF admin

    FYI, if you want the structure of the table, you could use the DESCribe command
    via SQL Plus, but it looks like you do not have access to the database for
    this. The query below will give you an approximation of what you would see
    using DESC.

    SELECT column_name,
    decode(nullable,'N','NOT NULL','Y',NULL) nullable,
    replace(data_type||'('||NVL(DATA_PRECISION,CHAR_CO L_DECL_LENGTH)||
    ')','()','') type
    FROM user_tab_columns
    WHERE table_name= 'SG_QUESTION_DATA'

    Phil

    paross1 Guest

  14. #13

    Default Re: Database-CF admin

    Is there some way I can alter some of the tables that have been created. It is an oracle database.
    thanks
    nitin
    Counselnitin Guest

  15. #14

    Default Re: Database-CF admin

    I don't know why you wouldn't be able to perform ALTER table DDL commands, provided that the account used by ColdFusion to access the Oracle database has the appropriate privileges.

    Phil
    paross1 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