Copy link to clipboard
Copied
Anyone use this feature on coldfusion administrator yet? I tried to follow the following link Database-related enhancements in ColdFusion 10 - ColdFusion, English documentation - Adobe Learning ...
but I have no luck getting it to work with Microsoft Sql Server 2008 R2
Copy link to clipboard
Copied
You call it "this feature", but it's about a number of enhancements. Could you show us the code that you used.
Copy link to clipboard
Copied
<cfscript>
clientInfo = structNew();
clientInfo.AccountingInfo = "MyAccount_cfquery";
clientInfo.Action = "cfstoredproc_cfquery";
clientInfo.ApplicationName = "testApp_cfquery";
clientInfo.ClientHostName = "Testserver_cfquery";
clientInfo.ClientID = "testID_cfquery";
clientInfo.ClientUser = "cfadmin_cfquery";
clientInfo.ProgramID = 1234;
clientInfo.Module = "test_query";
</cfscript>
<cfquery name="qName" datasource="#regdatasource#" clientInfo="#clientInfo#">
Select * from employees
</cfquery>
Copy link to clipboard
Copied
What happens when you run it? What are you expecting to happen??
Copy link to clipboard
Copied
It run fine without an error but the application name field is not being filled in sql server
Copy link to clipboard
Copied
Do you see the applicationname attribute when you run this code:
<cfscript>
clientInfo = structNew();
clientInfo.AccountingInfo = "MyAccount_cfquery";
clientInfo.Action = "cfstoredproc_cfquery";
clientInfo.ApplicationName = "testApp_cfquery";
clientInfo.ClientHostName = "Testserver_cfquery";
clientInfo.ClientID = "testID_cfquery";
clientInfo.ClientUser = "cfadmin_cfquery";
clientInfo.ProgramID = 1234;
clientInfo.Module = "test_query";
</cfscript>
<cfquery name="qName" datasource="#regdatasource#" clientInfo="#clientInfo#">
Select * from employees
</cfquery>
<cfquery fetchclientinfo="true" result="res" datasource="#regdatasource#">
Select * from employees
</cfquery>
<cfdump var="#res#">
Copy link to clipboard
Copied
struct | |||||||||||||
CACHED | false | ||||||||||||
CLIENTINFO |
| ||||||||||||
COLUMNLIST | ***** | ||||||||||||
EXECUTIONTIME | 1580 | ||||||||||||
RECORDCOUNT | 462 | ||||||||||||
SQL | Select * from employees |
result of the dump
Copy link to clipboard
Copied