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

  1. #1

    Default Domain error

    I'm receiving a domain error while processing the following query. I am using
    CFMX 6.1 and MS SQL 2005.

    Any help is greatly appreciated. -Andy

    <cfquery name="results" datasource="massageusa" username="massageusa"
    password="ajm4283">
    <cfloop from="1" to="#ListLen(zips[1])#" index="curZip">
    SELECT ZipCode,
    3963 * (ACOS((SIN(#ListGetAt(zips[2], curZip)#/57.29577951) *
    SIN(latitude/57.29577951)) +
    (COS(#ListGetAt(zips[2], curZip)#/57.29577951) * COS(latitude/57.29577951) *
    COS(longitude/57.29577951 - #ListGetAt(zips[3], curZip)#/57.29577951)))) AS
    distance
    FROM location
    WHERE (3963 * (ACOS((SIN(#ListGetAt(zips[2], curZip)#/57.29577951) *
    SIN(latitude/57.29577951)) +
    (COS(#ListGetAt(zips[2], curZip)#/57.29577951) * COS(latitude/57.29577951) *
    COS(longitude/57.29577951 - #ListGetAt(zips[3], curZip)#/57.29577951))))) <=
    #radius#
    <cfif curZip NEQ ListLen(zips[1])>
    UNION
    </cfif>
    </cfloop>
    </cfquery>

    artists_envy Guest

  2. Similar Questions and Discussions

    1. Error-Domain is not available
      I have 2 remote XP machines in a workgroup that I'm trying to join to a new Win2K3 domain. The machines are able to join domain, but when trying...
    2. accessing IP/domain-authenticated user's IP/domain string programmatically?
      When using IP or domain authentication, is it possible to access the IP address or domain name of the requestor, after authentication has occurred,...
    3. error on finding email domain
      Two ISPs are blocking email from a community service webiste and I need to alert users to not sign up using an address at one of these ISPs. My...
    4. How to permit Domain User in AD domain install software on his/her machine?
      Hello, I have AD domain and 100 users, 15 of them are developers. Developers need full control over their machines. They need to install...
    5. How do you figure out the LDAP://? ("Error authenticating. Error authenticating user. The specified domain either does not exist or could not be contacted")
      Hi, I am using the example "Authenticate against the Active Directory by Using Forms Authentication and Visual Basic .NET": ...
  3. #2

    Default Re: Domain error

    I do not know what you mean by domain error, but you may want to be
    careful in sending the username and password to a database that is
    presumable accessable to the entire world on the internet.

    Just a heads up that you may want to change them.


    artists_envy wrote:
    > I'm receiving a domain error while processing the following query. I am using
    > CFMX 6.1 and MS SQL 2005.
    >
    > Any help is greatly appreciated. -Andy
    >
    > <cfquery name="results" datasource="massageusa" username="massageusa"
    > password="ajm4283">
    > <cfloop from="1" to="#ListLen(zips[1])#" index="curZip">
    > SELECT ZipCode,
    > 3963 * (ACOS((SIN(#ListGetAt(zips[2], curZip)#/57.29577951) *
    > SIN(latitude/57.29577951)) +
    > (COS(#ListGetAt(zips[2], curZip)#/57.29577951) * COS(latitude/57.29577951) *
    > COS(longitude/57.29577951 - #ListGetAt(zips[3], curZip)#/57.29577951)))) AS
    > distance
    > FROM location
    > WHERE (3963 * (ACOS((SIN(#ListGetAt(zips[2], curZip)#/57.29577951) *
    > SIN(latitude/57.29577951)) +
    > (COS(#ListGetAt(zips[2], curZip)#/57.29577951) * COS(latitude/57.29577951) *
    > COS(longitude/57.29577951 - #ListGetAt(zips[3], curZip)#/57.29577951))))) <=
    > #radius#
    > <cfif curZip NEQ ListLen(zips[1])>
    > UNION
    > </cfif>
    > </cfloop>
    > </cfquery>
    >
    Ian Skinner 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