在Vsual Studio =>服務器資源管理器中,我創建了一個新的SQL Server數據庫(dbo),並右鍵單擊「發佈到提供程序」選項。 它生成一個包含sql命令的sql擴展文件(SELECT,UPDATE)。* .sql文件包含的內容
我想知道這個文件包含什麼。
它是整個數據庫嗎?
以後可以將此文件導入到SQL Server Management Studio嗎?
它是否存儲在數據庫(關係,默認值,規則)的一切?
我已經寫了一些文字從文件
/****** Object: ForeignKey [FK__aspnet_Me__Appli__21B6055D] Script Date: 06/30/2013 12:01:32 ******/
IF EXISTS (SELECT * FROM sys.foreign_keys WHERE object_id = OBJECT_ID(N'[dbo]. [FK__aspnet_Me__Appli__21B6055D]') AND parent_object_id = OBJECT_ID(N'[dbo]. [aspnet_Membership]'))
ALTER TABLE [dbo].[aspnet_Membership] DROP CONSTRAINT [FK__aspnet_Me__Appli__21B6055D]
GO
/****** Object: ForeignKey [FK__aspnet_Me__UserI__22AA2996] Script Date: 06/30/2013 12:01:32 ******/
IF EXISTS (SELECT * FROM sys.foreign_keys WHERE object_id = OBJECT_ID(N'[dbo]. [FK__aspnet_Me__UserI__22AA2996]') AND parent_object_id = OBJECT_ID(N'[dbo]. [aspnet_Membership]'))
ALTER TABLE [dbo].[aspnet_Membership] DROP CONSTRAINT [FK__aspnet_Me__UserI__22AA2996]
GO
/***