Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Practical way convert generated gendbc codes to sql script
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Practical way convert generated gendbc codes to sql script
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01430179
Message ID:
01430179
Vues:
123
Hi All,
i need practical solution to convert generated gendbc codes to SQL Script like Create TO codes

eg :
* GenDBC Generated VFP Codes
CREATE TABLE 'STOK.DBF' NAME 'STOK' (SKODU C(16) NOT NULL, ;
                   SADI C(25) NOT NULL, ;
                   BIRIM C(3) NOT NULL, ;
                   MYGUID C(38) default newid() NOT NULL)

*  Part of Managment Studio  ' Create TO ' Codes
CREATE TABLE [dbo].[STOK] (
				[SKODU] [nchar] (16) NOT NULL, 
                   [SADI] [nchar] (25) NULL, 
                   [BIRIM] [nchar] (3) NULL, 
                   [myguid] [uniqueidentifier] ROWGUIDCOL  NOT NULL
                   )

ALTER TABLE [dbo].[STOK] ADD  CONSTRAINT [DF_stok_myguid]  DEFAULT (newid()) FOR [myguid]
any suggestions would be very appreciated

TIA
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform