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

Mail + Datasource Verification

Participant ,
Aug 02, 2006 Aug 02, 2006

Copy link to clipboard

Copied

Is there a way to verify mail and some datasources before submitting a page ? Any help will be app.
TOPICS
Advanced techniques

Views

235

Translate

Translate

Report

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
LEGEND ,
Aug 04, 2006 Aug 04, 2006

Copy link to clipboard

Copied

emmim44 wrote:
> Is there a way to verify mail and some datasources before submitting a page ? Any help will be app.

Simplest way would probably just be to put your calls in a try/catch
block to see if any errors occur. Is your concern that the mail server
and database connections are failing?

Matt

--
Matt Woodward
mpwoodward@gmail.com
Adobe Community Expert - ColdFusion

Votes

Translate

Translate

Report

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
LEGEND ,
Aug 04, 2006 Aug 04, 2006

Copy link to clipboard

Copied

LATEST
We use a lot of different db's (oracle, redbrick, mssql, sybase) and wrote a custom tag that checks the availability of a datasource. We send it a datasource name and get back a true/false variable called dbok.

The actual tag tries to run short queries, such as "select 1 from dual", in the case of an oracle db. It then looks at error codes in the cfcatch part. I forget the rest of the details, but I used it today.

Votes

Translate

Translate

Report

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
Documentation