Hello sir,
when ever I try to run the script in their control panel then it always gets me error. I have run the same script on the local host and it is working fine so I am sure that it is technically valid.
But in their control panel it always get me error.
here is the excerpt of the script
Code:
ÿþ/****** Object: ForeignKey [FK__aspnet_Me__Appli__145C0A3F] Script Date: 03/30/2010 22:33:38 ******/
IF EXISTS (SELECT * FROM sys.foreign_keys WHERE object_id = OBJECT_ID(N'[dbo].[FK__aspnet_Me__Appli__145C0A3F]') AND parent_object_id = OBJECT_ID(N'[dbo].[aspnet_Membership]'))
ALTER TABLE [dbo].[aspnet_Membership] DROP CONSTRAINT [FK__aspnet_Me__Appli__145C0A3F]
GO
rest of the file goes here....
whenever I upload script file directly in control panel then a symbol
ÿþ is added in the starting of file. Even after removing the symbol manually and executing again it reports error as
The following error occured while executing the query:
Server: Msg 2812, Level 16, State 1, Line 3
Invalid object name 'sys.foreign_keys'.
Please help me regarding this because without database it would not be possible to have a site.
thank you sir.