- Check whether the DLL is deployed successfully in GAC (Global Assembly Cache)
- If not make sure that the DLLs are available in the following locations
- D:\Program Files\Microsoft SQL Server\100\DTS\Binn (depending on the version of SSIS)
- D:\Program Files (x86\Microsoft SQL Server\100\DTS\Binn (depending on the version of SSIS)
- Also make sure that the DLL is compiled for the right platform (32-bit or 64-bit or both)
Sharing knowledge does not lessen your store, often it gets you more.
Success doesn't happen overnight and patience is key to living your dream life.
Success is a journey not a destination
Monday, February 17, 2014
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.FileNotFoundException: Could not load file or assembly 'xxxxxx.dll, Version=1.0.0.0, Culture=neutral, PublicKeyToken=7e7edcc6a6871fc7' or one of its dependencies. The system cannot find the file specified
Sunday, February 16, 2014
SSIS FTP Step gives an error "The Password Was Not Allowed" and doesn't connect to the FTP Server
- Right click on your FTP connection manager, select properties and type the FTP Password.
- Save the package with EncryptSensitiveWithPassword property and provide a password and save the package and execute.
SQL Azure Reporting Services
Windows Azure SQL Reporting is a cloud-based reporting service for the Windows Azure Platform built on SQL Server Reporting Services technologies.
SQL Reporting service is available to current subscribers, but should not be used for new software development projects. The service will be discontinued on October 31, 2014.
An alternative to SQL Reporting is to use one or more instances of SQL Server Reporting Services (SSRS) running on Windows Azure Virtual Machines (VM).
A known issue of SQL Reporting is that report execution is slower than SSRS running on premises. In contrast, performance of SSRS on a VM is similar to the performance you might expect from an on-premises SSRS instance.
Transition from SQL Reporting to SQL VM provides the following advantages:
- Extensible report server for customized reporting
- Scheduled report execution and delivery
- Integration with hybrid solutions
- Faster Performance
Wednesday, February 12, 2014
SQL SERVER CLR Integration
SQLCLR allows integration of .NET Framework CLR components in SQL SERVER. .NET CLR Assemblies reside and run from database rather than file system. SQL SERVER need to check only once during deployment. This boosts performance and reliability.
SQLCLR allows to write stored procedures, functions, triggers, user defined types and aggregates using variety of .NET Framework languages like C#, VB.NET etc.
When to use SQLCLR?
Don't use SQLCLR for querying data from SQL SERVER. It is better to use T-SQL for that. Instead use SQLCLR when you can't perform some tasks using native SQL functions like GZip Compression/Decompression, PGP Encryption/Decryption, complex string manipulations etc.
How to enable SQLCLR?
exec sp_configure 'clr enabled', 1; GO RECONFIGURE GO
Cross Database Ownership Chaining in SQL SERVER
Consider a scenario where you have a view object in a database named "Database A" tries to access a table from "Database A" as well as a table from "Database B". In this scenario to run the view the user must also be a user in Database B along with Database A. If these databases are tightly linked, cross database ownership chaining can be used where user can access the table from Database B only through the view from Database A but doesn't have explicit permissions to query the table in Database B.
Steps to enable Cross Database Ownership Chaining
Set both Database A and Database B in the chaining as trustworthy.
ALTER DATABASE Database1 SET TRUSTWORTHY ON;
ALTER DATABASE Database2 SET TRUSTWORTHY ON;
Make sure that both Tables inside the Database A and Database B belong to the same owner.
Enable Cross Database Ownership Chaining. This can be done on whole instance level or specific databases.
For instance level
Exec sp_configure 'cross db ownership chaining', 1;
RECONFIGURE;
For database level
ALTER DATABASE Database1 SET DB_CHAINING ON;
ALTER DATABASE Database2 SET DB_CHAINING ON;