If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Accessing mySQL from .NET

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-05-04, 16:01
indyanguy indyanguy is offline
Registered User
 
Join Date: Jan 2004
Posts: 38
Accessing mySQL from .NET

Hello all,

We are planning to migrate an application written in Perl + mySQL to .NET + MS-SQL Server. The test machine now has SQL Server running. During the development phase in .NET, we would want to access the mySQL database which is being updated at real time, from the Windows box. This is how I think it has to be done:

1. Use DTS to migrate data from mySQL. Does DTS take care of migrating schema and the difference in data types between the mySQL and MS-SQL? Is there any 3rd party software out there that takes care of the migration without any manual labor?

2. Synchronize the data between 2 DBs by creating some kind of a batch job? If so, whats the best way of doing this?

Instead, is it easier to access the live mySQL database on the Linux box from the .NET code and move the DB only after development in the new environment is completed?

Any help/ideas is greatly appreciated.

TIA
Reply With Quote
  #2 (permalink)  
Old 01-05-04, 21:48
sundialsvcs sundialsvcs is offline
Registered User
 
Join Date: Oct 2003
Posts: 706
Red face

Change the word "migrate" to "re-write." Make darn sure that the economic justification is really there before you begin, because that Microsoft salesman ain't gonna be nowhere nearby when you write the code.

Microsoft has architected the entire dot-net system (of course) to sell Microsoft server licenses, but that does not mean that you have to use their database. And maybe your first step should be to change only one part of the system at a time. No, maybe the first step should be to enumerate all the ultimately-compelling reasons why the system absolutely cannot be left the way it is; why all of the development effort that went into it must now be scrapped. "Warm fuzzy feelings" left by a skilled FUD-artist don't count.

Ahem... just checking.

There are various "data pump" programs out there which will handle ordinary data-type conversions but you will probably have to translate the schema (DML) manually. You'll do it twice: once to populate the database with a set of test-data; the second to go live with it.

This is such a fundamental change that I'll once again stress: the Microsoft salesman who may have persuaded your boss-of-boss to do this, won't be anywhere around after the license agreement has been sold. But your business (yours, not his...) will rely upon that system all the while. Eyes wide open, friend... eyes wide open.
__________________
ChimneySweep(R): fast, automatic
table repair at a click of the
mouse! http://www.sundialservices.com
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On