Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


Experience from using ADO.NET and VAR keys?

Experience from using ADO.NET and VAR keys?

Experience from using ADO.NET and VAR keys?

Dear listers,

As I have described in an earlier post to the forum (http://www.tek-tips.com/viewthread.cfm?qid=1587716&page=1) I connect to my Mimer SQL database using a VAR key issued by Mimer.

This VAR key requires that I regenerate the connection string every time I need to open the DB connection, since a time limited VAC number needs to included in the connection string.

In my application, I have created Datasets, DataTables and DataTableAdapters using Visual Studio's dataset designer.

To avoid the "Authorization failure Invalid attempt to connect" exception mentioned in the recent post, I have been forced to explicitly update the DataTableAdpater connection strings before calling the designed DataTableAdapter methods Fill(), Update() etc.

This is not what I want. One of my intentions with using the dataset designer is to  be able to ignore the DB connection details. Now I am in a situation where I have to manually make sure that the connection string is always up-to-date before the dataset and its adapters access the database.

Does anyone in this forum have any experience of using a time limited VAR connection together with ADO.NET? In that case, have you been able to workaround the requirement to continuously update the connection string?

Thanks in advance,
Anders Gustafsson

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close