Virtual Box | Modificare VM Mavericks per funzionamento su PC
cd C:\\Program Files\\Oracle\\VirtualBox VBoxManage.exe modifyvm –cpuidset 00000001 00306a9 00020800 80000201 178bfbff
Blog
Sviluppo software, cloud, backend e tutto ciò che trovo interessante.
cd C:\\Program Files\\Oracle\\VirtualBox VBoxManage.exe modifyvm –cpuidset 00000001 00306a9 00020800 80000201 178bfbff
Per abilitare il sessionState in modalità SQLServer, accedere alla cartella C:\\Windows\\Microsoft.NET\\Framework\\ e lanciare il seguente...
Aprire un prompt dei comandi con diritti di amministratore e lanciare il seguente comando: powercfg -h off
USE MASTER GO ALTER DATABASE DatabaseName MODIFY FILE (NAME = ‘LogicalName\_Data’, NEWNAME=’NEWLogicalName\_Data’) GO ALTER DATABASE...
Dim obj As new Object obj = Activator.CreateInstance(Type.GetType(“percorso.nomeclasse”))
ALTER DATABASE ‘NomeDatabase’ SET SINGLE\_USER WITH ROLLBACK IMMEDIATE; ALTER DATABASE ‘NomeDatabase’ SET MULTI\_USER WITH ROLLBACK...
Protected Function Crc32(ByVal FileName As String) As String Dim \_fileStream As New IO.FileStream(FileName, IO.FileMode.Open,...
EXEC sp\_configure ‘show advanced options’, 1 GO RECONFIGURE GO EXEC sp\_configure ‘xp\_cmdshell’, 1 GO RECONFIGURE GO DECLARE @Command...
SELECT co.Column\_Name AS ‘Name’ ,co.Data\_Type AS ‘Type’ ,ISNULL(co.Character\_Maximum\_Length, 0) AS ‘Lenght’ ,CASE WHEN...
SELECT Name, CASE WHEN Type = ‘U’ THEN ‘Table’ ELSE ‘View’ END AS ‘Type’, Create\_Date, Modify\_Date FROM SYS.OBJECTS WHERE TYPE IN (N’U’,...
Lo script seguente restituisce un valore di tipo datetime relativo all’ultima domenica del mese: DECLARE @Data DATETIME = ‘Data calcolo’...
Editare il web.config ed aggiungere alla direttiva Pages la voce maintainScrollPositionOnPostBack=”true”
Questo script visualizza l’elenco delle tabelle di un database visualizzando il relativo peso in megabyte: DECLARE @t TABLE ( Name...
EXEC sp\_HelpText ‘nome\_stored\_procedure’
Questo comando crea un file grande 50 megabyte: fsutil file createnew test.txt 52428800
Il seguente codice permette di aggiungere, in una tabella, un nuovo campo solo se questi non esiste già: IF NOT EXISTS( SELECT \* FROM...
Da String a MemoryStream Dim \_string As String = “Stringa da convertire” Dim \_bytes As Byte() =...
For \_i As Integer = 0 To \_dataSet.Tables(0).Rows.Count – 1 For \_j As Integer = 0 To \_dataSet.Tables(0).Columns.Count – 1...
SELECT o.Name AS ‘StoredProcedure’ FROM SysObjects AS o INNER JOIN SysComments AS c ON o.ID = c.ID WHERE c.\[Text\] LIKE ‘%testo da...
In appSettings del web.config aggiungere la seguente voce: