Solved

Moving/syncing data from Pervasive SQL to MS SQL

Posted on 2011-09-09
5
1,669 Views
Last Modified: 2012-05-12
I'm starting with the development of a .NET application and find that a ODBC connection to Pervasive SQL is too slow specially when I run too many Iif statements. When I run the same queries in VS with MS SQL it performs much faster

What I'm doing is develop the .NET app together with MS SQL now

Now I need a tool to sync data from PSQL to MS SQL potentially on a schedule.

I'm just learning MS SQL. Does MS SQL have a native feature for this to say sync tables or what other tools are out there for this?
0
Comment
Question by:Gerhardpet
5 Comments
 
LVL 17

Assisted Solution

by:dbaSQL
dbaSQL earned 250 total points
ID: 36510605
I am fairly sure you can use the sql server import wizard to migrate from pervasive to SQL Server.  I have also known several people to go to flat file first, and then to sql server, because of psql datatypes.  

Take a look at the SSIS import wizard.  You can put it together here, and then schedule it to re-run, as needed.
0
 
LVL 28

Accepted Solution

by:
Bill Bach earned 250 total points
ID: 36510782
I, too, recommend doing a full pull of all of the data records that you need via SSIS, as this is cheap, easy, and fairly quick to run.  However, if you have a *really* large data set and need another option to only replicate changes, then the GSSync tool may be helpful:
    http://www.goldstarsoftware.com/gssync.asp
However, note that this is NOT a stand-alone solution.  For very large databases, it requires additional metadata that the Pervasive database doesn't track itself.  This means that you either need to manually manage metadata through GSSync (which can be slow) or add Pervasive DataExchange to the mix for tracking metadata, and this increases the admin requirements even further.

Again, I stand by dbaSQL's recommendation of a full pull as the BEST solution.
0
 
LVL 9

Expert Comment

by:DrewKjell
ID: 36511884
You can also create a Linked Server in MS SQL to the Pervasive SQL tool to facilitate the pulling down of data.  You can write a script and schedule it using SQL task scheduler.

http://msdn.microsoft.com/en-us/library/ff772782.aspx

Drew
0
 
LVL 1

Author Comment

by:Gerhardpet
ID: 36512115
I think I just spoke to you on the phone Bill...connecting the dots...

Thank you for your advice and I will be in touch!
0
 
LVL 1

Author Comment

by:Gerhardpet
ID: 37110408
I'm now using the staging method in SSIS and it works great
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
Via a live example, show how to shrink a transaction log file down to a reasonable size.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now