DBATOOLS.IO….A DBA timesaver/luxury

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

SSIS: The Script Task “xxxx” uses version 15.0 script that is not supported in this release of Integration Services

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:

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)

Continue reading SSIS: The Script Task “xxxx” uses version 15.0 script that is not supported in this release of Integration Services

OpenRowset Msg 15281, Level 16

On some servers when you try to load an Excel file using OpenRowset, you will get this delightful error:

Msg 15281, Level 16, State 1, Line 1
SQL Server blocked access to STATEMENT ‘OpenRowset/OpenDatasource’ of component ‘Ad Hoc Distributed Queries’ because this component is turned off as part of the security configuration for this server. A system administrator
can enable the use of ‘Ad Hoc Distributed Queries’ by using sp_configure. For more information about enabling ‘Ad Hoc Distributed Queries’, search for ‘Ad Hoc Distributed Queries’ in SQL Server Books Online.

Continue reading OpenRowset Msg 15281, Level 16

Modify SSRS Subscription Retries

When a SSRS subscription fails to run successfully, it will automatically retry 3 times with 15 minutes between runs. This is a good default, but sometimes you want to change those settings. Below I will show you how.

Continue reading Modify SSRS Subscription Retries

Unable to enlist in the transaction using a Linked Server. Msg 7391, Level 16, State 2

Here is problem you may encounter using a Linked Server connecting to an Oracle Database. I was trying to create a table in SQL Server with data from an Oracle database using a Linked Server and I received this error: Unable to enlist in the transaction Msg 7391, Level 16, State 2

Continue reading Unable to enlist in the transaction using a Linked Server. Msg 7391, Level 16, State 2

Msg 4701, Level 16 trying to truncate table through Linked Server

I was trying to truncate a table on a remote server using a Linked Server and received the following error:

Msg 4701, Level 16, State 1, Line 6
Cannot find the object "bill" because it does not exist or you do not have permissions.

Read on to see how I solved this issue.

Continue reading Msg 4701, Level 16 trying to truncate table through Linked Server

Msg 7399, Level 16, State 1 Linked Server. Access Denied

I setup a linked server on a new database server and was trying to run a query that runs against an Oracle database and I got the following error:

Msg 7399, Level 16, State 1, Line 1
The OLE DB provider “OraOLEDB.Oracle” for linked server “ccbtst” reported an error. Access denied.
Msg 7350, Level 16, State 2, Line 1
Cannot get the column information from OLE DB provider “OraOLEDB.Oracle” for linked server “ccbtst”.

Continue reading Msg 7399, Level 16, State 1 Linked Server. Access Denied