Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Converting an SQL 7 script to 6.5
Message
De
05/06/2002 12:42:00
 
 
À
05/06/2002 11:04:54
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
00664960
Message ID:
00665032
Vues:
19
>Hello Group,
>
>I am trying to convert a script I created in SQL Server 7.0 to run on SQL Server 6.5. The scripts create stored procedures and views. This part of the script and the error messages have me confused. I created the scripts by using the Create SQL Scripts in SQL Server 7.0.
>
>if exists (select * from sysobjects where id = object_id('dbo.jw1_distinct_suniq_Career') and type = 'P')
>
>drop view dbo.jw1_distinct_suniq_Career
>
>GO
>

It is very possible that the internal changes between the two platforms mean that the test for the existance of the view is failing, and that it never gets dropped.

You might try just running the existance query
select * from sysobjects where id = object_id('dbo.jw1_distinct_suniq_Career') and type = 'P'
by itself first, to see what you get back.
Dan LeClair
www.cyberwombat.com
SET RANT ON - The Wombat Blog

Life isn’t a morality contest and purity makes a poor shield. - J. Peter Mulhern
Disclaimer: The comments made here are only my OPINIONS on various aspects of VFP, SQL Server, VS.NET, systems development, or life in general, and my OPINIONS should not be construed to be the authoritative word on any subject. No warranties or degrees of veracity are expressed or implied. Void where prohibited. Side effects may included dizziness, spontaneous combustion, or unexplainable cravings for dark beer. Wash with like colors only, serve immediately for best flavor.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform