This is probably a very bassic question, I have seraced and not found an answer.
I have a sql 2005 database on my hosting server and I am able to connect and query it like this:
<cfstoredproc procedure="TO_GetOrderCounts"datasource="ConTest"username="UserName"password="password">
<cfprocparam type = "Out" CFSQLType = "CF_SQL_INT" variable = "ConfirmedOrders">
<cfprocresult name="result" resultset="1">
</cfstoredproc>
I am sure I am doing this incorrectly passing the username and password with each query or storedproc, does this create a seperate database login for each connection ?
where and how should I define a datasource to use? Would the application.cfm page be the appropriate place to do this as each user logs in ? and what code / connection string should I use ?
Thanks in advance!
Robert
I have a sql 2005 database on my hosting server and I am able to connect and query it like this:
<cfstoredproc procedure="TO_GetOrderCounts"datasource="ConTest"username="UserName"password="password">
<cfprocparam type = "Out" CFSQLType = "CF_SQL_INT" variable = "ConfirmedOrders">
<cfprocresult name="result" resultset="1">
</cfstoredproc>
I am sure I am doing this incorrectly passing the username and password with each query or storedproc, does this create a seperate database login for each connection ?
where and how should I define a datasource to use? Would the application.cfm page be the appropriate place to do this as each user logs in ? and what code / connection string should I use ?
Thanks in advance!
Robert