A quick way to get a random sampling of data from a table is to use the TableSample clause. Below I am going to show you some different ways to run queries using this clause.Continue reading SQL Server: TableSample clause
Often when writing sql statements, you need to create a running total of a column. This is very easily done using the OVER clause.Continue reading T-SQL: Create a running total
A client of mine setup backups on their server and the jobs are running successfully, but the backups are not showing up in the backup location. Finding the location of any backup commands can be found using a simple sql statement.Continue reading Sql Server: Find the location your backups are going to.
Most DBA’s now have to take care of multiple database platforms and they all have their own set of commands. One of my Oracle databases would not startup due to an invalid parameter in the SPFILE. Read on how I was able to get the database back up and running.Continue reading Oracle: Database will not startup due to invalid parameter
Often you will get a “csv” file from someone to load into your Sql Server database. There are many ways to do this including: SSIS, using the import tool from SSMS, etc. Now there is another way using Import-DbaCsv from dbatools.Continue reading Using dbatools to import csv data to your database: Import-DbaCsv
If you want to check how much free space you have on your Sql Server, you can just Remote Desktop in and check right? Yes, but I will show you an easier way using dbatools and a way to check multiple servers at once!Continue reading Using dbatools to check server disk space: Get-DbaDiskSpace
In a previous post DBATOOLS.IO….A DBA timesaver/luxury, I showed you how to install and ran through a quick demo of a very useful tool called dbatools. It has over 500 very useful DBA commands and today I am going to show you one I use often that restores your last backup.
Continue reading Using dbatools to check your most recent backup
The next few posts I am going to write about are about the awesome tool called DBATOOLS. It is an open source tool, created by Chrissy LeMaire and the SQL Server community and can be found here: https://dbatools.io/
POWERSHELL? Do not be afraid, I will show you how easy it is to install and some useful commands I use daily that are truly timesavers across my SQL Server universe.Continue reading DBATOOLS.IO….A DBA timesaver/luxury
Occasionally you will kick off a backup in the middle of the day and you want to track the progress so you know when it will finish.Continue reading SQL Server track Backup Database progress
What is this error message and how do you fix it? I had a script task in one of my SSIS packages and when I deployed it and tried to run it I received this message:
Continue reading SSIS: The Script Task “xxxx” uses version 15.0 script that is not supported in this release of Integration Services
Load multiple Excel Tabs:Error: There was an exception while loading Script Task from XML: System.Exception:
The Script Task "ST_9a61fb4231de4386a89bc7783e2f024b" uses version 15.0 script that is not supported in this release of Integration Services.
To run the package, use the Script Task to create a new VSTA script. In most cases, scripts are converted automatically to use a
supported version, when you open a SQL Server Integration Services package in %SQL_PRODUCT_SHORT_NAME% Integration Services.
at Microsoft.SqlServer.Dts.Tasks.ScriptTask.ScriptTask.LoadFromXML(XmlElement elemProj, IDTSInfoEvents events)