Using CF 9 in Application.cfc

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
LVL 16
Gurpreet Singh RandhawaWeb DeveloperAsked:
Who is Participating?
 
Brijesh ChauhanStaff IT EngineerCommented:
this.datasource={name="mydsn", username="user", password="passwd"}
0
 
Brijesh ChauhanStaff IT EngineerCommented:
0
 
Gurpreet Singh RandhawaWeb DeveloperAuthor Commented:
Hey Thanks Brijesh, Wonder how i Skepped this Info from livedocs, Thanks for it, I have bookmarked it
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.