Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP GUID(16) to SQL UID
Message
De
05/06/2007 09:30:56
 
 
À
Tous
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Import/Export
Titre:
VFP GUID(16) to SQL UID
Divers
Thread ID:
01230551
Message ID:
01230551
Vues:
107
I have a number of large conversion projects which will involve a one-time migration of VFP data to SQL Server 2005.

All of these projects involve PKs and FKs that are C(16) binary GUIDs. I believe the algorithm ( which we use in VFE ) was originally written by Rick Strahl.

My concern is upsizing these fields to SQL Uniqueidentifiers as part of a one-time conversion. ( future access of this data from VFP will involve GUID(36) which works fine with UIDs. )

Obviously, I can first construct GUID(36) from the GUID(16) in a consistant way and then convert that. ( the VFP upsizer, of course, will be useless, since even in the new and improved version I don't believe converting a C(36) much less a C(16) to UID is going to be an option )

I would like to use SSIS to move the data using VFPOLEDB in one move from the original tables without changing their structure. ( I have routines for replacing blank dates with nulls etc ) I also have Strataframe's DDT for deploying the SQL Data structures, so the pull will be into a SQL Database the already exists and has the tables to receive the data.

I seem to remember when working with DTS a couple years ago I was quite surprised to be able to get DTS to see the GUID(16) as a binary and convert it to UID but as I am very ignorant of the inner workings of both DTS and SSIS I don't seem to be able to reproduce that.

So, the question : Has anyone done this ( Rick ? ) or does anyone know of a CAST() that would get the GUID(16) into UID in one go ( and perhaps give me some hints about how to incorporate that knowledge into an SSIS package )

Guidance very much appreciated.


Charles Hankey

Though a good deal is too strange to be believed, nothing is too strange to have happened.
- Thomas Hardy

Half the harm that is done in this world is due to people who want to feel important. They don't mean to do harm-- but the harm does not interest them. Or they do not see it, or they justify it because they are absorbed in the endless struggle to think well of themselves.

-- T. S. Eliot
Democracy is two wolves and a sheep voting on what to have for lunch.
Liberty is a well-armed sheep contesting the vote.
- Ben Franklin

Pardon him, Theodotus. He is a barbarian, and thinks that the customs of his tribe and island are the laws of nature.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform