'>

fichier de Backup d'une base de donneen en SQLServer

voila un groupe de requête de restauration d'une base de donnée déjà créer  dans sql server 2005:

USE [master]
GO
/****** Objet :  Database [gestion_cmd]    Date de génération du script : 09/13/2013 17:22:32 ******/
CREATE DATABASE [gestion_cmd] ON  PRIMARY
( NAME = N'gestion_cmd', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA\gestion_cmd.mdf' , SIZE = 3072KB , MAXSIZE = UNLIMITED, FILEGROWTH = 1024KB )
 LOG ON
( NAME = N'gestion_cmd_log', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA\gestion_cmd_log.ldf' , SIZE = 1024KB , MAXSIZE = 2048GB , FILEGROWTH = 10%)
 COLLATE French_CI_AS
GO
EXEC dbo.sp_dbcmptlevel @dbname=N'gestion_cmd', @new_cmptlevel=90
GO
IF (1 = FULLTEXTSERVICEPROPERTY('IsFullTextInstalled'))
begin
EXEC [gestion_cmd].[dbo].[sp_fulltext_database] @action = 'enable'
end
GO
ALTER DATABASE [gestion_cmd] SET ANSI_NULL_DEFAULT OFF
GO
ALTER DATABASE [gestion_cmd] SET ANSI_NULLS OFF
GO
ALTER DATABASE [gestion_cmd] SET ANSI_PADDING OFF
GO
ALTER DATABASE [gestion_cmd] SET ANSI_WARNINGS OFF
GO
ALTER DATABASE [gestion_cmd] SET ARITHABORT OFF
GO
ALTER DATABASE [gestion_cmd] SET AUTO_CLOSE OFF
GO
ALTER DATABASE [gestion_cmd] SET AUTO_CREATE_STATISTICS ON
GO
ALTER DATABASE [gestion_cmd] SET AUTO_SHRINK OFF
GO
ALTER DATABASE [gestion_cmd] SET AUTO_UPDATE_STATISTICS ON
GO
ALTER DATABASE [gestion_cmd] SET CURSOR_CLOSE_ON_COMMIT OFF
GO
ALTER DATABASE [gestion_cmd] SET CURSOR_DEFAULT  GLOBAL
GO
ALTER DATABASE [gestion_cmd] SET CONCAT_NULL_YIELDS_NULL OFF
GO
ALTER DATABASE [gestion_cmd] SET NUMERIC_ROUNDABORT OFF
GO
ALTER DATABASE [gestion_cmd] SET QUOTED_IDENTIFIER OFF
GO
ALTER DATABASE [gestion_cmd] SET RECURSIVE_TRIGGERS OFF
GO
ALTER DATABASE [gestion_cmd] SET  ENABLE_BROKER
GO
ALTER DATABASE [gestion_cmd] SET AUTO_UPDATE_STATISTICS_ASYNC OFF
GO
ALTER DATABASE [gestion_cmd] SET DATE_CORRELATION_OPTIMIZATION OFF
GO
ALTER DATABASE [gestion_cmd] SET TRUSTWORTHY OFF
GO
ALTER DATABASE [gestion_cmd] SET ALLOW_SNAPSHOT_ISOLATION OFF
GO
ALTER DATABASE [gestion_cmd] SET PARAMETERIZATION SIMPLE
GO
ALTER DATABASE [gestion_cmd] SET  READ_WRITE
GO
ALTER DATABASE [gestion_cmd] SET RECOVERY SIMPLE
GO
ALTER DATABASE [gestion_cmd] SET  MULTI_USER
GO
ALTER DATABASE [gestion_cmd] SET PAGE_VERIFY CHECKSUM 
GO
ALTER DATABASE [gestion_cmd] SET DB_CHAINING OFF 
Publié par Drupal Study