Solved

Moving/syncing data from Pervasive SQL to MS SQL

Posted on 2011-09-09
5
1,644 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
I'm now using the staging method in SSIS and it works great
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.

771 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

10 Experts available now in Live!

Get 1:1 Help Now