AdobeStock_455007340

Try to Never Hardcode Query Attributes

Home » Try to Never Hardcode Query Attributes

The less hardcoded your application is, the easier it’ll be to reuse, maintain, and deploy. For example, never specify an actual ODBC datasource name in the DATASOURCE attribute – instead define a variable (perhaps in APPLICATION.CFM) which contains the datasource name, and pass that variable to all tags instead. (Applies to: ColdFusion All)

Leave a Reply