Quantcast
Channel: » SQL Server
Browsing latest articles
Browse All 10 View Live

Image may be NSFW.
Clik here to view.

Backup/Restore av SQL-databas

Jag har nog svarat femtielva gånger på varför användarna inte följer med när man flyttar en SQL-databas från en server till en annan Så här är det. - Användarna finns i databasen MSDB - Rättigheterna...

View Article


Uppdatera GroomDays i SCDW

För att minska ner storleken på SystemCenterReporting-databasen kan man dra ner på antalet dagar man sparar data. Genom att köra det här SQL-scriptet så drar man ner till 7 dagar. USE...

View Article


Bygga om index i en SQL-DB

Så här bygger man om alla index i en SQL-databas. DECLARE @TableName varchar(255) DECLARE TableCursor CURSOR FOR SELECT table_name FROM information_schema.TABLES WHERE table_type = ‘base TABLE’ OPEN...

View Article

SQL-Script: logTrunkering

Ett litet SQL-script som trunkerar överväxta log-filer. Script: logTrunkering.sql

View Article

Image may be NSFW.
Clik here to view.

Backup av SQL-databaser

Att ta backup på SQL-databaser & loggar är lite lagomt tråkigt. Gör man det med maintenance-plan’s så får man en miljard (nåja… ett ganska rejält gäng iaf) filer. Kör man det genom någon annan...

View Article


List MOM2005 agents with IP-adress

A small SQL-script to list all agents on a MOM2005 installation. USE OnePoint SELECT Computer.Name AS ComputerName, ComputerAttribute.[Value] AS IP FROM ComputerAttribute INNER JOIN Computer ON...

View Article

Update ConfigMgr Site Description

I did an install of a secondary site and accidently put in the wrong description… Anyway, easy to fix with some SQL commands. If you use this you can see the current sitenames and descriptions (change...

View Article

SQL in Powershell without cmdlets

I am currently playing around with ConfigMgr 2012 cmdlets… and they only run in X86 (*doh*). Anyway, I need to query a database with information about some collections and other stuff I need to...

View Article


Image may be NSFW.
Clik here to view.

Update ConfigMgr packages with Hotfix-information

When you install a hotfix and/or a cumulative update in ConfigMgr you can select the option to let the installer create some packages. But, those packages are missing some info… For instance...

View Article


ConfigMgr Package Status Reports

Found a nice idea for a report on Eswar Koneti’s blog. That query combined with some info from a blogpost by Jörgen Nilsson will give you two reports to dig into status of packages. Status of...

View Article
Browsing latest articles
Browse All 10 View Live