Exporting data from an ancient application using SQL server v2000

My client has an old proprietary medical charting application whose data is stored in SQL server 2000 tables.  This application is so old it will only run on a Windows 2000  operating system.  

The application is called MD Dictate .  My task is to export data from this ancient application.  The data is to be imported into a much more modern charting application.  The application has no reporting procedures.  No way to print out data except for one patient at a time.  

I am reasonably familiar with Enterprise Manager.  I am NOT an expert.  When I invoke Enterprise Manager, I can see the databases and tables  for MD Dictate .   It seems all the data I need is in one database.  

The challenge:  I have to export data from various tables and write the data to a csv file.    There is no documentation on what tables contain what and how the keys are configured.  The name, address, phone, etc are in table 1 , chart number  is in table 2, other information are in other tables.  Most likely there are associative tables.   So, somehow I have to determine the keys to each table so I can construct Tsql statements to successfully export the desired data.  My thought was to create a denormalzed table whose fields would be the same as the csv file, then loop through each patient, obtain all the relevant data for that patient, and write it to the denormalized table.

MySQL workbench has a tool which supposedly will reverse engineer a database and, I guess, will display the relationships between the tables.  May be there is some similar tool for SQL server?

What inexpensive tool might help me reverse engineer a SQL server database ?
Perhaps my method is not the best.  What ideas would you suggest?
donpickAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

arnoldCommented:
My suggestion would be to backup the database and then restore it on SQL 2005 even express.

You could use th bcp utility to export the data.

The more modern application where does it store the data?

Do you need to compare/match schema of the new db to the old db to facilitate the proper import of data from old to new?

Redgate has a db schema comparison toolset included that will deal with transition.

Is the new comes from the same vendor as the older version?

Once you restore the backup on SQL 2005, you could use other tools to assemble/export data preserving relationship references, etc....
0
plusone3055Commented:
would backup the database restore to at least 2008 or above. You can use the database diagram tools to see the relationships between tables and the keys in SQL server Management Studio.  From there you can start creating relationships between the old db tables and the new Db tables
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
arnoldCommented:
IMHO, some DB structure will not transition directly from 2000 to 2008 without an intermediary step through a 2005 SQL version.
The intermediate could be a simple restore and immidiately backup .....
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

donpickAuthor Commented:
arnold:  May be I don't understand but how is dumping the data to bcp files going to help me?  My understanding is bcp files are a form of text file.  How is that going to help me understand how the foreign keys relate to each other in the various tables?  

Hello plusone3055: Sounds interesting.  I know absolutely nothing about SQL 2008.  I have no budget to buy licenses for a one time project.  What free version of SQL 2008 might be useful to do what you suggest?
0
arnoldCommented:
But Giles, can be in the form of CSV. Of a query

You have to know the relationships before hand.

You can also use query with joins to assemble the data and then save the results CSV.

.....
0
Dave BaldwinFixer of ProblemsCommented:
SQL Server® 2008 Express http://www.microsoft.com/en-us/download/details.aspx?id=1695 is a 32-bit version.

SQL Server 2005 Express http://www.microsoft.com/en-us/download/details.aspx?id=21844 is also still available.
0
PortletPaulfreelancerCommented:
I would like to know what is wanted at "the end state" ; this isn't stated

All we know is this: "The data is to be imported into a much more modern charting application."

Do we assume it (the charting app) supports MSSQL 2008?
Is MSSQL 2008 what you want to use?

I suggest you clarify what the desired "end state" is please.

Having said that, going from MSSQL 2000 > 2005 > 2008 (or later) sounds a reasonable approach to me, and once you get the data into a more recent version of MSSQL you should be able to see or reverse engineer the table relationships once it is in that platform.

If you prefer to use another dbms it would be good to know what.
0
donpickAuthor Commented:
Mr Maxwell:  I'm sorry I did not clarify:  The data will be uploaded to a web based charting system. I don't know what database they use.  I don't really care.  My task is to export the data to a csv file.  That is the end state.

I finally just decided to do a brute force investigation.  I opened each of the 75 tables one by one and looked at the first 1000 rows.  I discovered the data I needed is in just one table.  Thank goodness!

Mr. Baldwin:  Thank you for the links.  They may be useful later.

Thank you all for your help.  i pay for this service so I appreciate your prompt answers during a long holiday.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.