Detect CFQuery Column Data Type

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

  1. #1

    Default Detect CFQuery Column Data Type

    Is it possible to detect the data type of a column in an ODBC Select CFQuery with MS Access or SQL Server?

    This solution will save me a lot of effort.

    Thanks

    GreatBlue Guest

  2. Similar Questions and Discussions

    1. Filter table by column data type
      Hello everyone, I'm using VB Script, SQL 2K. Is it possible to create a recordset from a table based on the column data type? Hypothetically,...
    2. Length of column with 'text' data type
      Hi. I'm getting various data about columns in a table by using sp_column. Everything is working as I expected, except one thing. When I get the...
    3. MSAccess query : detect data type
      "deleteID" in the following query could be either alpha or numeric. How to modify the query to accomodate both cases? <CFQUERY...
    4. Converting data type varchar to data type money
      Hi all, Tearing my hair out trying to figure this out. If anyone can provide any help i would greatly appreciate it. When I try to do an insert...
    5. How to cast cfquery object to type java.util.Map
      In the LiveDocs it says: "..The following table lists how ColdFusion converts ColdFusion data values to Java data types when passing arguments. The...
  3. #2

    Default Re: Detect CFQuery Column Data Type

    If you are using MX 7, take a look at the
    [url]http://livedocs.macromedia.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/common/html/[/url]
    wwhelp.htm?context=ColdFusion_Documentation&file=0 0000488.htm function used
    with a query object.

    mxstu Guest

  4. #3

    Default Re: Detect CFQuery Column Data Type

    Unfortunately I am using CF5.
    Thanks for the help.
    GreatBlue Guest

  5. #4

    Default Re: Detect CFQuery Column Data Type

    MS SQL 2000+ provides information about database objects through the INFORMATION_SCHEMA views. It would require a separate query, but it is a starting point.
    mxstu 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