Welcome to dbFreaks.com!
FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log in/Register/PasswordLog in/Register/Password

Package & Deployment wizard: Update a database

 
   Database Help (Home) -> Visual Basic RSS
Related Topics:
update query - I have created an update query in my to change the date in the bound table to the sys date. However, the query will not accept '=Date' in the new value box. Does anyone know the correct function. The help gives it as 'Date' Ian

Can I Update entire record in SQL ? - Heya, I am working on making a SQL database an exact mirror of a local Access database. I check the .mdb database every few minutes for new entries, if there are new entries, I retrieve them and write them to an exact replica table in SQL. This all works

NEWBIE insert data rather than update in db - I have an app for tracking mileage on company vehicles. On the first form you select a combobox getting vehicle names from database) and enter the info. Then I need to export that data back to the database. The ? is how do I..

I need help with some VB or SQL programming for a database. - I need some VB or SQL coding to finish up an access database program. I am trying to choose selected records from an access table based on certain criteria. Example: 2 records needed out of 4 total records and the code should choose the 2 records with.

Shared Database Connection? - I want to use an oracle odbc on my windows server for an I am writing for client The result is I don't want to install the oracle client to get sql*net on every i am running my the program on. What should..
Next:  Visual Basic: Create a database when a user logs in for the first time  
Author Message
Thomas

External


Since: Feb 17, 2005
Posts: 2



(Msg. 1) Posted: Thu Feb 17, 2005 3:16 am
Post subject: Package & Deployment wizard: Update a database
Archived from groups: comp>lang>basic>visual>database (more info?)

Dear,

I have developed a standalone VB6.0 application which uses an access
database. I deployed this application with the "Package &
Deployment"-wizard from Visual Basic, and it works fine.

Due to some new requirements I had to add an extra column to one of
the tables in the database and write some extra code. The deployment
of the new code and keeping the data is not a problem: I just create a
new setup-package without including the database so only the .exe is
replaced. But how do I modify the table in the database??

Up till now I needed to manually modify the database. Is there a way
to do this through the setup? f.e. including an sql-script,... ?

The end goal is of course that the end-user can update his application
just by running the new setup-package provided by me!

Thanks in advance!
Thomas

 >> Stay informed about: Package & Deployment wizard: Update a database 
Back to top
Login to vote
Steve Gerrard1

External


Since: Aug 04, 2004
Posts: 9



(Msg. 2) Posted: Thu Feb 17, 2005 8:50 am
Post subject: Re: Package & Deployment wizard: Update a database [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Thomas" <thomas.vangeel.TakeThisOut@belgacom.net> wrote in message
news:1a35b56f.0502170216.5aa8a7aa@posting.google.com...
| Dear,
|
| I have developed a standalone VB6.0 application which uses an access
| database. I deployed this application with the "Package &
| Deployment"-wizard from Visual Basic, and it works fine.
|
| Due to some new requirements I had to add an extra column to one of
| the tables in the database and write some extra code. The deployment
| of the new code and keeping the data is not a problem: I just create a
| new setup-package without including the database so only the .exe is
| replaced. But how do I modify the table in the database??
|
| Up till now I needed to manually modify the database. Is there a way
| to do this through the setup? f.e. including an sql-script,... ?
|
| The end goal is of course that the end-user can update his application
| just by running the new setup-package provided by me!
|
| Thanks in advance!
| Thomas

I don't think there is a way to do that directly in the setup. I think
you can get the setup to run a separate small VB program, though.

Whether it is a separate program run from the setup, or a command in the
main program, the simplest way I have found to change the database
structure is to run a VB procedure that creates a new empty database in
the new format, then copies the data from the old database into the new
one. The exact sequence needed depends on the structure of your data.
The other choice is to use a VB procedure to add the new field
definition to the existing database.

 >> Stay informed about: Package &amp; Deployment wizard: Update a database 
Back to top
Login to vote
Thomas

External


Since: Feb 17, 2005
Posts: 2



(Msg. 3) Posted: Mon Feb 21, 2005 1:22 pm
Post subject: Re: Package & Deployment wizard: Update a database [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thanks Steve,

I also thought of that solution, but where do I specify in the setup
to run that separate program? And could I instantly remove it again,
so that the customer doesn't notice it?

Thomas.

"Steve Gerrard" <mynamehere.RemoveThis@comcast.net> wrote in message news:<-O6dnSH4id2rIInfRVn-1A.RemoveThis@comcast.com>...
 > "Thomas" <thomas.vangeel.RemoveThis@belgacom.net> wrote in message
 > news:1a35b56f.0502170216.5aa8a7aa@posting.google.com...
 > | Dear,
 > |
 > | I have developed a standalone VB6.0 application which uses an access
 > | database. I deployed this application with the "Package &
 > | Deployment"-wizard from Visual Basic, and it works fine.
 > |
 > | Due to some new requirements I had to add an extra column to one of
 > | the tables in the database and write some extra code. The deployment
 > | of the new code and keeping the data is not a problem: I just create a
 > | new setup-package without including the database so only the .exe is
 > | replaced. But how do I modify the table in the database??
 > |
 > | Up till now I needed to manually modify the database. Is there a way
 > | to do this through the setup? f.e. including an sql-script,... ?
 > |
 > | The end goal is of course that the end-user can update his application
 > | just by running the new setup-package provided by me!
 > |
 > | Thanks in advance!
 > | Thomas
 >
 > I don't think there is a way to do that directly in the setup. I think
 > you can get the setup to run a separate small VB program, though.
 >
 > Whether it is a separate program run from the setup, or a command in the
 > main program, the simplest way I have found to change the database
 > structure is to run a VB procedure that creates a new empty database in
 > the new format, then copies the data from the old database into the new
 > one. The exact sequence needed depends on the structure of your data.
 > The other choice is to use a VB procedure to add the new field
 > definition to the existing database.<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Package &amp; Deployment wizard: Update a database 
Back to top
Login to vote
Steve Gerrard1

External


Since: Aug 04, 2004
Posts: 9



(Msg. 4) Posted: Mon Feb 21, 2005 7:15 pm
Post subject: Re: Package & Deployment wizard: Update a database [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I must have been thinking of a different setup program, probably the one
from the developer kit for MS Office. You could modify the setup1.exe
program itself, since the source code is part of the VB install, but
that is a bit more elaborate.

Why not just put the update code in the program itself? You can probably
write something to detect the old database, and offer to upgrade to the
new format, or do it silently when the program starts up. Users are used
to seeing this sort of thing these days, I doubt they will mind.


"Thomas" <thomas.vangeel RemoveThis @belgacom.net> wrote in message
news:1a35b56f.0502211222.da6cfae@posting.google.com...
| Thanks Steve,
|
| I also thought of that solution, but where do I specify in the setup
| to run that separate program? And could I instantly remove it again,
| so that the customer doesn't notice it?
|
| Thomas.
|
| "Steve Gerrard" <mynamehere RemoveThis @comcast.net> wrote in message
news:<-O6dnSH4id2rIInfRVn-1A RemoveThis @comcast.com>...
| >
| > I don't think there is a way to do that directly in the setup. I
think
| > you can get the setup to run a separate small VB program, though.
| >
| > Whether it is a separate program run from the setup, or a command in
the
| > main program, the simplest way I have found to change the database
| > structure is to run a VB procedure that creates a new empty database
in
| > the new format, then copies the data from the old database into the
new
| > one. The exact sequence needed depends on the structure of your
data.
| > The other choice is to use a VB procedure to add the new field
| > definition to the existing database.
 >> Stay informed about: Package &amp; Deployment wizard: Update a database 
Back to top
Login to vote
Display posts from previous:   
   Database Help (Home) -> Visual Basic All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]