> 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?

What version of CF are you using? The DBTYPE and PROVIDERDSN attributes of
CFQUERY are no longer supported in CFMX 6+. To use MS SQL Server with CFMX,
you should configure your database listener for TCP/IP, your database server
itself for mixed-mode authentication, and create a native SQL login for your
CF application to use.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234152
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=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to