ho creato manualmente il db in questo modo:
codice:
CREATE DATABASE [dipendente] ON PRIMARY
( NAME = N'dipendente', FILENAME = N'c:\Programmi\Microsoft SQL Server\MSSQL.1\MSSQL\DATA\dipendente_1.mdf' , SIZE = 3072KB , FILEGROWTH = 1024KB )
LOG ON
( NAME = N'dipendente_log', FILENAME = N'c:\Programmi\Microsoft SQL Server\MSSQL.1\MSSQL\DATA\dipendente_1_log.ldf' , SIZE = 1024KB , FILEGROWTH = 10%)
GO
EXEC dbo.sp_dbcmptlevel @dbname=N'dipendente', @new_cmptlevel=90
GO
ALTER DATABASE [dipendente] SET ANSI_NULL_DEFAULT OFF
GO
ALTER DATABASE [dipendente] SET ANSI_NULLS OFF
GO
ALTER DATABASE [dipendente] SET ANSI_PADDING OFF
GO
ALTER DATABASE [dipendente] SET ANSI_WARNINGS OFF
GO
ALTER DATABASE [dipendente] SET ARITHABORT OFF
GO
ALTER DATABASE [dipendente] SET AUTO_CLOSE OFF
GO
ALTER DATABASE [dipendente] SET AUTO_CREATE_STATISTICS ON
GO
ALTER DATABASE [dipendente] SET AUTO_SHRINK OFF
GO
ALTER DATABASE [dipendente] SET AUTO_UPDATE_STATISTICS ON
GO
ALTER DATABASE [dipendente] SET CURSOR_CLOSE_ON_COMMIT OFF
GO
ALTER DATABASE [dipendente] SET CURSOR_DEFAULT GLOBAL
GO
ALTER DATABASE [dipendente] SET CONCAT_NULL_YIELDS_NULL OFF
GO
ALTER DATABASE [dipendente] SET NUMERIC_ROUNDABORT OFF
GO
ALTER DATABASE [dipendente] SET QUOTED_IDENTIFIER OFF
GO
ALTER DATABASE [dipendente] SET RECURSIVE_TRIGGERS OFF
GO
ALTER DATABASE [dipendente] SET AUTO_UPDATE_STATISTICS_ASYNC OFF
GO
ALTER DATABASE [dipendente] SET DATE_CORRELATION_OPTIMIZATION OFF
GO
ALTER DATABASE [dipendente] SET PARAMETERIZATION SIMPLE
GO
ALTER DATABASE [dipendente] SET READ_WRITE
GO
ALTER DATABASE [dipendente] SET RECOVERY SIMPLE
GO
ALTER DATABASE [dipendente] SET MULTI_USER
GO
ALTER DATABASE [dipendente] SET PAGE_VERIFY CHECKSUM
GO
USE [dipendente]
GO
IF NOT EXISTS (SELECT name FROM sys.filegroups WHERE is_default=1 AND name = N'PRIMARY') ALTER DATABASE [dipendente] MODIFY FILEGROUP [PRIMARY] DEFAULT
GO
e ho fatto il restore, e restituisce lo stesso errore, ma non trova dipendente_1.mdf, strano!! proprio ho creato manualmente.....