Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 519
  • Last Modified:

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
0
Gurpreet Singh Randhawa
Asked:
Gurpreet Singh Randhawa
  • 2
1 Solution
 
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.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now