This is a migrated thread and some comments may be shown as answers.

OpenAccessSchemaTool

4 Answers 89 Views
Design Time (Visual Designer & Tools)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Pål
Top achievements
Rank 1
Pål asked on 04 Dec 2008, 04:04 PM
Hi.

Is it possible from code, by including a reference to "VSchema.exe", to Create a new instance of "OpenAccessSchemaTool" found in "VSchema.exe", set the properties and call "Execute()" instead of running it from a DOS Command window?

Regards

Paul

4 Answers, 1 is accepted

Sort by
0
Jan Blessenohl
Telerik team
answered on 04 Dec 2008, 04:23 PM
Hi Pål,

It is not allowed to ship the vschema tool. It requieres a license. What exactly do you want to do?

Regards,
Jan Blessenohl
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Jan Blessenohl
Telerik team
answered on 04 Dec 2008, 04:25 PM
Hello Pål,

Sorry, wrong answer, this was about venhance.

You can do that, but why?

Sincerely yours,
Jan Blessenohl
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Pål
Top achievements
Rank 1
answered on 04 Dec 2008, 05:46 PM
Hi Jan.

What I'm trying to do is embed some options (recreate/update/verify database) in my deployed applications to handle database schema synchronisation.

There are many reasons why this is valuable, but the latest that I found was doing Test driven development (Unit test).

Given a Test assembly, I can pass a "recreate" parameter in the config file (which will usually be set to "verify"). This will completely erase the database and rebuild it from scratch. This will give a test environment which will always have the same starting point and as the tests are executed, the database content always ends up the same.

The best soulution of course, would be if these tools ("OpenAccessSchemaTool") and its relations were copied into OpenAccess.dll, or a separate library, say, "OpenAccess.Tools.dll" or something... The reason for this is of course that some companies/clients may have a problem with us installing third-party executables on their machines. You know how demanding customers can be... ;-)

Is this something you would be able to do?

Regards

Pål
0
Jan Blessenohl
Telerik team
answered on 04 Dec 2008, 07:10 PM
Hi Pål,
You can do it, but I think just start the new process calling vschema.exe via command line is less code.

Best wishes,
Jan Blessenohl
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Design Time (Visual Designer & Tools)
Asked by
Pål
Top achievements
Rank 1
Answers by
Jan Blessenohl
Telerik team
Pål
Top achievements
Rank 1
Share this question
or