I'm in the process of implementing a setup where, in my dbadmin, I set up one account 
just for reads and another just for writes (and a third for admin stuff like alter or 
create, but thats another story).  My question is this:  In CF, is it better to:

1. Use a single data source and specify the username and password on a query-by-query 
basis, picking the user needed depending on the operation at hand or

2. Use two data sources, both of which point to the same db.  One dsn has the read 
user hardwired in and (and is also restricted in CF Admin accordingly), with the 
second set up to use the write user with similar restrictions.

The second seems more secure (no pwds in cf templates) and the better way to go, 
despite its higher admin overhead.

Comments/advice on the above would be appreciated.

-------------------------------------------
 Matt Robertson,     [EMAIL PROTECTED]
 MSB Designs, Inc. http://mysecretbase.com
-------------------------------------------
 
             
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to