Solved

Using CF 9 in Application.cfc

Posted on 2011-03-22
3
483 Views
Last Modified: 2012-08-14
Hi, Everyone has noted that there is a new feature in CF 9 like i can set the value of

this.datasource = "mydsn";

but if i need to pass the username and password also, do i need to pass it as a structure, if yes. then how we do it!

Please do let me know

Thanks
0
Comment
  • 2
3 Comments
 
LVL 11

Accepted Solution

by:
Brijesh Chauhan earned 125 total points
ID: 35196336
this.datasource={name="mydsn", username="user", password="passwd"}
0
 
LVL 11

Expert Comment

by:Brijesh Chauhan
ID: 35196443
0
 
LVL 15

Author Comment

by:Gurpreet Singh Randhawa
ID: 35196771
Hey Thanks Brijesh, Wonder how i Skepped this Info from livedocs, Thanks for it, I have bookmarked it
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article  is about submitting  form through  ColdFusion.Ajax.submitForm to the action page and send a response back in JSON format which later can be decoded using ColdFusion.JSON.decode. By this way you can avoid the usual page refresh for subm…
CFGRID Custom Functionality Series -  Part 1 Hi Guys, I was once asked how it is possible to to add a hyperlink in the cfgrid and open the window to show the data. Now this is quite simple, I have to use the EXT JS library for this and I achiev…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now