Quantcast
Channel: kristofdba – kristof dba
Browsing latest articles
Browse All 26 View Live

Image may be NSFW.
Clik here to view.

SQL Server 2012 SP2 and Master Data Services => MDS error 500

After installing SP2 on our highly secured master data services Acceptance environment MDS did not work anymore. We got an error 500. After some research it seemed that the rights on the web.config...

View Article



Image may be NSFW.
Clik here to view.

IIS / SQL / Kerberos (ssrs/ mds)

About SPN’s for SQL iis driven pages (ssrs/ mds). sooo… it seems that if you host multiple webpage drivven SQL technologies  (http/  ) on the same machine the initial handshake for kerberos tends to...

View Article

Image may be NSFW.
Clik here to view.

DB RECOVERY PENDING

If your db is in recovery pending, it is unable to recover (pending.. get it) . This means that there is a condition that prevents the sql engine to do the recovery because of issue X. Often this is...

View Article

Image may be NSFW.
Clik here to view.

Group by Multiple Columns

My colleague asked me how to select and group by 2 criteria where one of them is a date, the RANGE was 1 day. I came up with this one.. select CONVERT(char(10), timestamp,126), process, count(RecordID)...

View Article

Find jobs running at given time

Original Source: SQLMAG ! DECLARE @targetTime datetime = '2017-01-21 15:10:49'; -- SET @targetTime = 'xxx' -- for SQL Server 2008 and less -- convert to string, then int: DECLARE @filter int =...

View Article


Image may be NSFW.
Clik here to view.

Powershell: Handling OSISOFT pi UFL interface files

Since PI UFL (the last resort “load my data interface” for CSV files) is a burden to manage if you have ‘big’ inerface .INI file i created some script to troubleshoot issues. They can be used to work...

View Article

Osisoft: Debug (UFL/BUFFER)

THe UFL interface is tha last resort interface to pump data into the PI Data Archive.  AS with all things in it land, this can go wrong… Debugging: In the UFL interface’s INI file you can up the debug...

View Article

Get info on restored databases

With this query you’l get the last restore data for a database on your instance. Handy if you cant remember what database you restored wen. Or in my case accidentaly restored the wrong database… wITH...

View Article


Image may be NSFW.
Clik here to view.

Paas SQL – List rights on objects (tables, views)

So, as data technology is always progressing (or should i say ‘moving’, that leaves room for any direction ) .. I plan to write some more posts on queries i use less often but are still handy. The...

View Article


Image may be NSFW.
Clik here to view.

Get all Foreign Keys on a sql db

With this script, you can list all the foreign key relations on a SQL database. Could come in handy! If this returns ‘nothingatall’, you know the DB design needs some improvement SELECT obj.name AS...

View Article
Browsing latest articles
Browse All 26 View Live




Latest Images