Welcome Guest Search | Active Topics | Log In | Register

Which is the best way to migrate a VistaDB database to MS-SQL server 2008? Options
Yiannis
#1 Posted : Tuesday, November 10, 2009 2:46:06 PM
Rank: Member

Groups: Member

Joined: 9/9/2007
Posts: 29
Points: 39
Location: Alexandroupolis, Greece
Which is the best way to migrate a VistaDB database to MS-SQL server 2008?
I tried the script generated by the data builder script editor, but when I try to execute it on MS-SQL server I am getting these errors:

Code:

Msg 156, Level 15, State 1, Line 22
Incorrect syntax near the keyword 'IDENTITY'.
Msg 102, Level 15, State 1, Line 62
Incorrect syntax near 'ENCRYPTED'.
Msg 102, Level 15, State 1, Line 2152
Incorrect syntax near 'ENCRYPTED'.
Msg 102, Level 15, State 1, Line 2478
Incorrect syntax near 'ENCRYPTED'.
Msg 102, Level 15, State 1, Line 2503
Incorrect syntax near 'ENCRYPTED'.
Msg 102, Level 15, State 1, Line 2524
Incorrect syntax near 'ENCRYPTED'.
Msg 102, Level 15, State 1, Line 2774
Incorrect syntax near 'ENCRYPTED'.
Msg 102, Level 15, State 1, Line 2837
Incorrect syntax near 'ENCRYPTED'.
Msg 102, Level 15, State 1, Line 2858
Incorrect syntax near 'ENCRYPTED'.
Msg 156, Level 15, State 1, Line 2898
Incorrect syntax near the keyword 'IDENTITY'.
Msg 102, Level 15, State 1, Line 2979
Incorrect syntax near 'ENCRYPTED'.
Msg 102, Level 15, State 1, Line 3005
Incorrect syntax near 'ENCRYPTED'.
Msg 102, Level 15, State 1, Line 3026
Incorrect syntax near 'ENCRYPTED'.
Msg 102, Level 15, State 1, Line 3131
Incorrect syntax near 'ENCRYPTED'.
Msg 102, Level 15, State 1, Line 3147
Incorrect syntax near 'ENCRYPTED'.
Yiannis
#2 Posted : Tuesday, November 10, 2009 6:53:51 PM
Rank: Member

Groups: Member

Joined: 9/9/2007
Posts: 29
Points: 39
Location: Alexandroupolis, Greece
I also tried the Sql server import and export wizard, but when I press the "Next" button I get this error:

Code:

TITLE: SQL Server Import and Export Wizard
------------------------------

The operation could not be completed.

------------------------------
ADDITIONAL INFORMATION:

You must have a valid license to use VistaDB.  Ensure you have a licenses.licx file in your project at compile time.
Error 117 (Provider v. 4.0.9.1): Cannot open database:  C:\Program Files\vistadb_4_database\Database.vdb4
(VistaDB.4)

------------------------------

You must have a valid license to use VistaDB.  Ensure you have a licenses.licx file in your project at compile time. (VistaDB.4)

------------------------------
BUTTONS:

OK
------------------------------


I checked my license in license manager and it says that "Your Professional License is Valid"
Yiannis attached the following image(s):
vistadb4_sql_server_error.jpg (84kb) downloaded 53 time(s).
js_vistadb
#3 Posted : Monday, November 23, 2009 1:06:49 AM
Rank: VistaDB Staff

Groups: Administration, VistaDB Staff

Joined: 8/13/2006
Posts: 3,403
Points: 3,994
Location: Mount Dora, Florida
You posted this in the 3.x forums, but you appear to running 4.x.

See these blog posts:

Using SSIS to migrate VistaDB databases

Using SQL Server Import / Export Wizard
(this one includes the instructions how to get SQL Server to load your design time license)


The scripts generated in 3.x are not SQL Server compatible, and that is one reason why they are not in 4.x at this time. We are working on making them more compatible. But usually within a few minutes you can fix the scripts yourself. Take the identity clauses out, change the syntax, etc.

SSIS is time intensive. It took me 3 hours to migrate a VistaDB database of about 15 tables to SQL Server using their package system. It took me about 20 minutes of editing the script files by hand from 3.x.


Jason Short

Yiannis
#4 Posted : Tuesday, November 24, 2009 7:29:24 PM
Rank: Member

Groups: Member

Joined: 9/9/2007
Posts: 29
Points: 39
Location: Alexandroupolis, Greece
In my first post, this was the result of the script generated from Databuilder with vistadb 3.

In my second post I tried with the VistaDB 4 engine using SQL Server Import and Export Wizard.


Jason, I would like to tell you some thoughts about the server version of VistaDB.

I would prefer to use only VistaDB as an embedded and as a server database. Even if in the future the conversion from VistaDB to MS-SQL Server would be automated, in my case, using MS-SQL Server as a backend would make things more complicated because I must be sure that the application works in both databases. This might be the source of many bugs, because I am executing SQL statements in the database layer and will increase complexity. I should also test the scripts to modify the table field properties if they run on both databases correctly.

You are offering a tool to migrate a MS-SQL database to VistaDB. I understand that some people use it and it is nice to exist. The most common situation in real word scenarios is a client to buy a single user application (with embedded VistaDB) and then would like to upsize to a multiuser solution. None ever asked me to go from a multiuser version to the single user version.

Things would be much easier if we could have a server version of VistaDB. That way I would be sure that everything that works in the embedded version would work in the server version and vice versa.

If you are in the design phase of VistaDB Server I would like to suggest a feature found in Firebird database engine: Use the same database file for both embedded and server version of VistaDB. No need to convert anything. Only a change to the Connectionstring required:

Firebird Server Connectionstring:
Quote:
User=SYSDBA;Password=masterkey;Database=SampleDatabase.fdb;DataSource=localhost;ServerType=0;


Firebird Embedded Connectionstring:
Quote:
User=SYSDBA;Password=masterkey;Database=SampleDatabase.fdb;
ServerType=1;


From:
http://firebirdsql.org/firebirdtutorial/connection-string-parameters.html
http://www.connectionstrings.com/firebird

This feature simplifies backup, maintenance, compatibility and solves the upscale and downscale problem just by copying the same database file.

Is the project CornerStone the server version of vistadb? Can we have any estimate dates (+/- 1 year) for the vistadb server?
js_vistadb
#5 Posted : Tuesday, November 24, 2009 8:46:13 PM
Rank: VistaDB Staff

Groups: Administration, VistaDB Staff

Joined: 8/13/2006
Posts: 3,403
Points: 3,994
Location: Mount Dora, Florida
Quote:
You are offering a tool to migrate a MS-SQL database to VistaDB. I understand that some people use it and it is nice to exist.


You can get just about anything into SQL Server from another database. Then you can get it into VistaDB as well. So if a company has any existing database and can get it to SQL Server then they can get it to us without having to code something.


Quote:
The most common situation in real word scenarios is a client to buy a single user application (with embedded VistaDB) and then would like to upsize to a multiuser solution. None ever asked me to go from a multiuser version to the single user version.


Actually our most common user scenario is that they have a server database and are asking users to deploy SQL Express to their desktop. Users do not want to do this, so they need a way to make a desktop version of their database.

The second most common is a company that has a server database and now wants to make a desktop version for very small companies, or single users. They have no way to address this market right now, and want a minimum version to install to desktop and have same datatypes, etc. The want a way to use the same database code (or as close as possible), but the desktop product is a new SKU for them, so they are going to have to test it anyway.

Quote:
Things would be much easier if we could have a server version of VistaDB. That way I would be sure that everything that works in the embedded version would work in the server version and vice versa.


If I could snap my fingers and make it happen then it would already be here. Just saying Server means a LOT to a lot of people. Not simple local service to hold open desktop database (as Firebird and VistaDB 2.x were). But a server.

VistaDB 2.x server had the same feature. Ability to only change connection string. The reality of this means you always have to include the client server and desktop engines in the same provider. This is a lot of overhead for a desktop provider, but it is able to be done.

I don't know if we will have that simple of an ability or not. It is certainly a goal of ours, but I don't like to talk about features specifics because someone will be pointing to this post 5 years from now trying to quote me on it.

The problem with doing this is that a server really needs background writer threads, and lots of other performance changes. Doing that in a single file is problematic. You usually need something like the SQL Server log file to avoid corruption of the primary file in the event of a failure. That does not mean you would not be able to "backup" a server database to a normal database file... But I do not know if keeping a single file is practical for a real server.

Quote:
Is the project CornerStone the server version of vistadb? Can we have any estimate dates (+/- 1 year) for the vistadb server?


Cornerstone is something much bigger than that, but I am not ready to discuss it yet.

I am not publishing timeframes, sorry. The cost to build a server is HUGE. By the time we finish the cost will be over $1 million USD. You can't sell that type of system at $300 per developer royalty free. We would never recoup our costs.

I am not sure that trying to compete with SQL Server on a full blown server is the right place for us to be. There is just WAY too high an expectation for people when you mention SQL Server in the same sentence as your product. Firebird and other LAN servers are not in the same league and you don't expect it. But if you said Firebird was SQL Server compatible suddenly people will start wanting to run OLAP on it and it can't handle that type of load.

There are lots of ways to build your own service that acts as a local server for your application. A general purpose server is a big deal. Building a service that encapsulates your DAL and talks over a LAN is quite easy these days. You could also use things like ADO.NET Data Services to build a custom server for your app against a VistaDB database in a few weeks. ADO.NET Data Services does require Entity Framework, but you can take the same concepts to any local area service for a custom application. The requirements are not the same as a general purpose server.

I have been working on a blog post with the various models for applications around VistaDB. It includes graphs showing the basic design and complexity of implementation. The blog post is not done yet though... Maybe over the holiday I will get some more time to write.

Jason Short

Yiannis
#6 Posted : Tuesday, November 24, 2009 9:42:40 PM
Rank: Member

Groups: Member

Joined: 9/9/2007
Posts: 29
Points: 39
Location: Alexandroupolis, Greece
Quote:

If I could snap my fingers and make it happen then it would already be here. Just saying Server means a LOT to a lot of people. Not simple local service to hold open desktop database (as Firebird and VistaDB 2.x were). But a server.

VistaDB 2.x server had the same feature. Ability to only change connection string. The reality of this means you always have to include the client server and desktop engines in the same provider. This is a lot of overhead for a desktop provider, but it is able to be done.

I don't know if we will have that simple of an ability or not. It is certainly a goal of ours, but I don't like to talk about features specifics because someone will be pointing to this post 5 years from now trying to quote me on it.

Sorry for not making this clear. I was not meaning a server version like MS-SQL Server, but a server version that could handle around 10 concurrent users with a performance, close to that of running VistaDB embedded in a single user application.
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAFPro Theme Created by Jaben Cargman (Tiny Gecko)
Powered by YAF 1.9.3 | YAF © 2003-2009, Yet Another Forum.NET
This page was generated in 0.103 seconds.