Ask a Question related to Coldfusion Database Access, Design and Development.
-
artists_envy #1
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
-
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... -
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,... -
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... -
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... -
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": ... -
Ian Skinner #2
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



Reply With Quote

