Empty Space
  • Home
  • Resume
  • Posts
  • Personal
  • Code
Sign in Subscribe
code

Force clean database log files MS SQL

  • Robin Michael

Robin Michael

05 Apr 2017

The interactive tools are not working, but this script will clear a stubborn log file that won't release.

Link here

http://stackoverflow.com/questions/56628/how-do-you-clear-the-sql-server-transaction-log

Assumption: You are in simple mode

USE TheDatabase;
GO

CHECKPOINT;
GO

CHECKPOINT; -- run twice to ensure file wrap-around
GO

DBCC SHRINKFILE(TheDatabase_Logical_Name, 5); -- unit is set in MBs
GO;

Sign up for more like this.

Enter your email
Subscribe

Hashing and parsing - blake2b

Verification step for application that states this Send a GET request to https://api.close.com/buildwithus/ Follow the instructions provided in the response. Enter your Verification ID in the space provided here. Using the GET request to that url you get the following for example { "traits": [ "
27 Apr 2025 1 min read

Compute Blood Types

Doing another painful irrelevant code question about inheritance and blood types and came up with this Given /** * @param parent1 The phenotype of the first parent (A, B, AB or O) * @param parent2 The phenotype of the second parent (A, B, AB or O) * @param child The phenotype of the child
26 Apr 2025 2 min read

Find a path: Depth first search

Got stuck on a question about computing possible moves across a one dimensional array. Given A game representing an array of integers. Here is an example game board, which is kept short for simplicity index | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | value | 3 | 2 | 0 | 1 | 3
24 Apr 2025 2 min read
Empty Space © 2025
Powered by Ghost