Pagina 2 di 2 primaprima 1 2
Visualizzazione dei risultati da 11 a 15 su 15
  1. #11
    Ecco ha funzionato! Hai ragione che bisogna creare il database, perchè in sql2000 non necessitava di creare primo database e poi fare restore.
    Allora per ACAI è tutto risolto

    però un'altra cosa è che ho fatto la stessa cosa come ho fatto il database ACAI, volevo fare restore per dipendente.baK e mi ha risposto.

    codice:
    Restore failed for Server 'NomeComputer\SQLEXPRESS'.  (Microsoft.SqlServer.Express.Smo)
    
    ------------------------------
    For help, click: http://go.microsoft.com/fwlink?ProdN...r&LinkId=20476
    
    ------------------------------
    Program Location:
    
       at Microsoft.SqlServer.Management.Smo.Restore.SqlRestore(Server srv)
       at Microsoft.SqlServer.Management.SqlManagerUI.SqlRestoreDatabaseOptions.RunRestore()
    
    ===================================
    
    System.Data.SqlClient.SqlError: Ricerca del file "C:\Programmi\Microsoft SQL Server\MSSQL\data\dipendente_1.mdf" nella directory non riuscita. Errore del sistema operativo: 3(Impossibile trovare il percorso specificato.).
      (Microsoft.SqlServer.Express.Smo)
    
    ------------------------------
    For help, click: http://go.microsoft.com/fwlink?ProdN...0&LinkId=20476
    
    ------------------------------
    Program Location:
    
       at Microsoft.SqlServer.Management.Smo.ExecutionManager.ExecuteNonQueryWithMessage(StringCollection queries, ServerMessageEventHandler dbccMessageHandler, Boolean errorsAsMessages)
       at Microsoft.SqlServer.Management.Smo.BackupRestoreBase.ExecuteSql(Server server, StringCollection queries)
       at Microsoft.SqlServer.Management.Smo.Restore.SqlRestore(Server srv)
    Mi pareva che fosse simile a quello dell'ACAI, invece no.....
    Grazie
    ..:: GSFLASH ::..
    HTTP://WWW.GSFLASH.IT
    MCTS - ACP - OCP - ECDL
    Ubuntu 7.10/OpenSuse 10.3/Vista Premium/MacOSX Leopard
    My authentic japanese name is 薗田Sonoda (garden field) 大河 Taiga (big river)

  2. #12
    Utente di HTML.it L'avatar di comas17
    Registrato dal
    Apr 2002
    Messaggi
    6,522
    Probabilmente è simile ma la cosa "strana" è che il file cercato si chiama "dipendente_1.mdf" e questo è un po' strano perchè generalmente i database si chiamano xxx_data.mdf e xxx_log.ldf (scelta di default proposta da SQL Server)

    Crea il database impostando tu manualmente il nome corretto che vuoi

  3. #13
    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.....
    ..:: GSFLASH ::..
    HTTP://WWW.GSFLASH.IT
    MCTS - ACP - OCP - ECDL
    Ubuntu 7.10/OpenSuse 10.3/Vista Premium/MacOSX Leopard
    My authentic japanese name is 薗田Sonoda (garden field) 大河 Taiga (big river)

  4. #14
    pronto? nessuno risponde?
    ..:: GSFLASH ::..
    HTTP://WWW.GSFLASH.IT
    MCTS - ACP - OCP - ECDL
    Ubuntu 7.10/OpenSuse 10.3/Vista Premium/MacOSX Leopard
    My authentic japanese name is 薗田Sonoda (garden field) 大河 Taiga (big river)

  5. #15
    nessuno risponde?
    ..:: GSFLASH ::..
    HTTP://WWW.GSFLASH.IT
    MCTS - ACP - OCP - ECDL
    Ubuntu 7.10/OpenSuse 10.3/Vista Premium/MacOSX Leopard
    My authentic japanese name is 薗田Sonoda (garden field) 大河 Taiga (big river)

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2026 vBulletin Solutions, Inc. All rights reserved.