Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Question of Alter Table Command
Message
 
 
À
13/09/2001 04:18:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00555814
Message ID:
00555827
Vues:
14
Hi!

Take a look to SQLEXEC() command. Write commands for SQL Server in the Query analizer, copy them and paste into the VFP program making them as a single string, then use SQLEXEC(nHandle,strBatchCommands) command. Beware, such commands list should not include "GO" and question marks ("?"). Go is used by query analizer only to separate batches of commands. "?" is a special symbol in SQLEXEC() in VFP that used for parameters (data) passing to the SQL Server. This way you can prepare the string with a lot of T-SQL commands and run them all at once.

>Dear all,
>
>Can I use a single SQL command to alter the type of column on SQL Server? I know that I can use ALTER TABLE ALTER COLUMN to change the type of column, but it just only change one column at a time. Thank you for your help and advice..
>
>Best Regards,
>
>Justy Chow
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform