Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Which views are affected?
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Divers
Thread ID:
00984819
Message ID:
00984852
Vues:
38
This message has been marked as a message which has helped to the initial question of the thread.
>Hi everybody,
>
>Suppose, we change one of our tables and convert datetime fields to date fields. How would we know, which views are affected by this change? If we have lots of them (~70), is there some automatic way to identify the suspects?
>
>Thanks a lot in advance.
cTableName = [%MyTable%]
SET EXCLUSIVE OFF
lcDBC = [MyDBC.DBC]
SELECT ObjectType, ObjectName ;
	FROM (lcDBC) A ;
	WHERE A.ObjectType = 'View' ;
	  AND A.ObjectID IN ;
	  (SELECT ParentID FROM (lcDBC) B ;
	  	WHERE LOWER(Property) LIKE ?LOWER(cTableName)) ;
	INTO CURSOR crsAffectedViews
Mark McCasland
Midlothian, TX USA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform