Do you have your datasource set up in the coldfusion administrator, on the
server?

If so

<cfquery name="myQuery" datasource="LC_KCALA">
   SELECT LC_FEATURE_PATH
   FROM LC_FEATURE
   WHERE IS_ACTIVE = 1
   AND AVAILABLE =1
</cfquery>

should suffice.


On 3/3/06, Jim Louis <[EMAIL PROTECTED]> wrote:
>
> Hello
>
> I am using MS SQL for the first time and I am trying to get the query
> right
>
> This is what I have
>
> <CFSET request.lcDatasource = "LC_KCALA">
> <CFSET request.Username = "*****">
> <CFSET request.Password = "****">
> <CFSET REQUEST.dbLoc = "10.0.0.1">
>
> <cfquery name="qryActiveFeatures" datasource="#request.lcDatasource#"
> username="#request.Username#" password="#request.Password#" dbtype="OLEDB"
> providerdsn="#REQUEST.dbLoc#">
> SELECT LC_FEATURE_PATH FROM LC_FEATURE WHERE IS_ACTIVE = 1 AND AVAILABLE =
> 1
> </cfquery>
>
> What am I missing?
>
> Jim Louis
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234158
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to