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 ArticlePowershell: 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 ArticleOsisoft: 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 ArticleGet 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 ArticlePaas 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 ArticleGet 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