Einstellungen -> System - info handy zurücksetzten
meine Sys/Db admin & Developper Notitzen - wer Rechtschreibfehler findet darf sie behalten ... my Sys/Db Admin and developper notes - I don't care about typos
Tuesday, December 27, 2016
Tuesday, December 20, 2016
ef migrate to specific version per code c#
add this method to your context:
/// <summary>migrates actual Database to given Migration Version
/// </summary>
/// <param name="toMigration">"0" ... Version 0 (remove all), "" is newest Version</param>
public void Migrate(string toMigration)
{
var configuration = new Configuration
{
TargetDatabase = new DbConnectionInfo(Database.Connection.ConnectionString, "System.Data.SqlClient")
};
var migrator = new DbMigrator(configuration);
migrator.Update(toMigration);
}
/// <summary>migrates actual Database to given Migration Version
/// </summary>
/// <param name="toMigration">"0" ... Version 0 (remove all), "" is newest Version</param>
public void Migrate(string toMigration)
{
var configuration = new Configuration
{
TargetDatabase = new DbConnectionInfo(Database.Connection.ConnectionString, "System.Data.SqlClient")
};
var migrator = new DbMigrator(configuration);
migrator.Update(toMigration);
}
Wednesday, December 14, 2016
TSQL BACKUP OPTIONS
//COPY_ONLY ... doesn't interrupt TransactionLogBackupCycle
//STATS ... percent after status is updated
//NOINIT+SKIP: doesnt't delete old Backups in same file
//TAPE OPTIONS:
//NOUNLOAD/NOREWIND: doesn't unload / rewind the tape after backup
//NOFORMAT (=DEFAULT): doesn't delete old Backups in same file
//STATS ... percent after status is updated
//NOINIT+SKIP: doesnt't delete old Backups in same file
//TAPE OPTIONS:
//NOUNLOAD/NOREWIND: doesn't unload / rewind the tape after backup
//NOFORMAT (=DEFAULT): doesn't delete old Backups in same file
Subscribe to:
Posts (Atom)