Should I Specify Username and Password for every Query?
I've been using Coldfusion since version 5 and during that time I've always chosen to not include username and password when setting up my datasource in CFAdmin. Instead I include it in all of my queries:
<cfquery datasource="MyDataSource" username="MyUsername" password="MyPassword">
I'm starting to use CF9 and I'm wanting to use the "new query" script method in my components, but I don't want to have to include the username and password every time:
<cfscript>
local.myquery = new query();
local.myquery.setDatasource('MyDataSource');
local.myquery.setUsername('MyUsername');
local.myquery.setPassword('MyPassword');
.....
</cfscript>
I'm wondering if there are any security concerns with defining the Username and Password in my datasource in CFAdmin? I'm also wondering if YOU pre-define them or not?
