tags:

views:

153

answers:

2

I have an application that when it first starts i need it to run a database query.

I have all the database queries however forms are all loaded by this method.

dim myfrm as new Form2 myfrm.show.

The thing is if this app has crashed etc i need to make sure its the first initial start of this program

Does anyone have any ideas?

A: 

Put a App table with a version column, maybe step if you want more granularity. If table doesn't exist, your are at your first version and than go on... After all your query, put a version in the table. That way, you will be able to check if those query have been run.

Hapkido
A: 

Thats a very interesting idea Ill try it and post what i run in to.

I was hoping there was a vb.net specific keyword etc or function to call But this could be just as effective