Sql Server

Liberare spazio su Microsoft SQL Server (log Transazioni)

Quando si crea un nuovo database, il modello di recovery che viene impostato di default è “FULL”: con questa modalità, per quel database verrà usato un log delle transazioni. Il log delle transazioni è un archivio che contiene tutte le operazioni fatte sul database. per questo motivo avremo sempre un file NomeDatabase.MDF e un altro […]

Posted in: Sql Server

Codici di Errore di SqlServer

Questi sono POSSIBILI Codici di ERRORE di SQLServer sul LOGIN : 2 e 5 – Invalid userid 6 – Attempt to use a Windows login name with SQL Authentication 7 – Login disabled and password mismatch 8 – Password mismatch 9 – Invalid password 11 e 12 – Valid login but server access failure 13 […]

Posted in: Sql Server

The database principal owns a schema in the database, and cannot be dropped.

E’ possibile, in fase di cancellazione di un utente, imbattersi in questo errore: Drop failed for User ‘xxxxxx’. (Microsoft.SqlServer.Smo) An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo) The database principal owns a schema in the database, and cannot be dropped. (Microsoft SQL Server, Error: 15138) questo succede perchè l’utente è ancora MEMBRO […]

Posted in: Sql Server
Il set di backup include il backup di un database diverso dal database ‘xx’ esistente

Il set di backup include il backup di un database diverso dal database ‘xx’ esistente

E’ possibile, in fase di ripristino ricevere questo errore : System.Data.SqlClient.SqlError: Il set di backup include il backup di un database diverso dal database ‘xxx’ esistente. (Microsoft.SqlServer.Smo) questo capita perchè il Db è diverso, ma per aggirarlo è sufficiente andare in OPZIONI e utilizzare la funzione SOVRASCRIVI DATABASE ESISTENTE

Posted in: Sql Server
Ripristinare un Database SQL Server da BACKUP

Ripristinare un Database SQL Server da BACKUP

Per ripristinare un database SQL server, con Sql Studio, da un file BAK è necessario avere almeno 1 modo per far arrivare il file sul server. Meglio se con un sistema FTP. A quel punto possiamo utilizzare il software come mostrato in figura per caricare il file BAK (Attenzione – i percorsi della figura sono […]

Posted in: Sql Server

Backup in SQL Server versione Express

Con questo comando, lanciato dalla consolle SQL di Studio Express si può effettuare il Backup di un database SQL Server su Express Edition: BACKUP DATABASE [VIM-VCDB] TO DISK = N’C:VIM-VCDB.bak’ WITH NOFORMAT, INIT, NAME = N’VIM-VCDB’,SKIP, NOREWIND, NOUNLOAD, STATS = 10 Con questo comando è possibile schedulare l’esecuzione dei backup in SQL Server versione Express […]

Posted in: Sql Server
By 7 Febbraio 2012 Read More →

Conoscere la Versione di SQL Server Installata

In Sql Server Studio, è sufficiente eseguire questa query: SELECT @@version, SERVERPROPERTY(‘productversion’), SERVERPROPERTY (‘productlevel’), SERVERPROPERTY (‘edition’) o anche SELECT SERVERPROPERTY(‘productversion’), SERVERPROPERTY (‘productlevel’), SERVERPROPERTY (‘edition’) si otterrà una risposta come questa: Microsoft SQL Server 2005 – 9.00.1399.06 (Intel X86) Oct 14 2005 00:33:37 Copyright (c) 1988-2005 Microsoft Corporation Enterprise Edition on Windows NT 5.0 (Build 2195: […]

Posted in: Sql Server
shared on wplocker.com