>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.comSET RANT ON - The Wombat BlogLife isn’t a morality contest and purity makes a poor shield. - J. Peter MulhernDisclaimer: 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.