Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Help with setting up DSN without CF Admin

Explorer ,
Dec 14, 2009 Dec 14, 2009

Is it possible to set up a DSN without access to the CF Administration panel? Can I write this into a .cfc or is there some code I can run in a .cfm that will achieve this for me? I'm having trouble getting my host to set up the DSN I'm using and would like to know if there is any other way to achieve this.

I have all my DSN parameters (I{ address, username, Passw, etc...), and it's working just fine on my local version of the site but I set it up through Administration.

Thanks in advance.

TOPICS
Database access
722
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Valorous Hero , Dec 14, 2009 Dec 14, 2009

Nothing that doesn't requre support from your ISP.

There is an administrator API that you can progamatically add DSN and other Administrator settings.  But this API would need to be opened to you by your ISP and they maybe unwilling to do so.  But it never hurts to ask.

Translate
Valorous Hero ,
Dec 14, 2009 Dec 14, 2009

Nothing that doesn't requre support from your ISP.

There is an administrator API that you can progamatically add DSN and other Administrator settings.  But this API would need to be opened to you by your ISP and they maybe unwilling to do so.  But it never hurts to ask.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Dec 14, 2009 Dec 14, 2009

So, can I connect to my DB with a DSN-less connection in CF8?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Dec 14, 2009 Dec 14, 2009

I'm afraid not, that feature has been deprecated.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Dec 14, 2009 Dec 14, 2009
LATEST

Rats.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources