Monday, 29 January 2018

Are You Making These SQL Server Mistakes While Using Ad Hoc Reporting Tools?

SQL programming is an equally fun and challenging task. This is especially true for developers whose backgrounds are in traditional languages like C, C++, Java, and VB and who have become so accustomed to manual coding that they find it especially difficult to adopt a set-based mindset. Just the same, even seasoned data base administrators and SQL developers are not immune to the many pitfalls of the language. The key is mastering your fundamentals and being sensitive to common mistakes, even though they are often difficult to spot. Here are common SQL server mistakes that you should watch out for when using Ad Hoc Reporting Tools:

Asterisk in SELECT statements – It is critical to define and specify columns that you want to return in your queries. This standard is crucial for security and performance reasons. Take for instance the query SELECT * FROM Customer, this will return all customer values, including any and all sensitive data that you might be keeping in the same table. This will cause a great deal of trouble if you keep your customers’ social security number, password, or any other sensitive information within the table. Even when these values are encrypted, the hash value can still hep hackers. There will also be a huge performance issue if the table contains dozens of columns. Defining and specifying columns will not only limit the size of the query’s record set, but also the data available for hackers, thus preventing breaches.

Excessive looping with cursors – Looping structures are the bane of any SQL database performance. They permit looping through millions of records and running statements against each of these records, individually. While this may appear advantageous, it can actually destroy your performance, as they make programming inefficient. A good workaround would be to write the procedure in a way that avoids affecting database performance.

4 Ways You Can Grow Your Creativity Using SSRS Ad Hoc Report Builder

Report builder is a specially designed report creation tool by Microsoft that enables the development of simple to complex dashboards and reports based on data coming from a wide variety of sources, ranging from SQL Server, Orace, Azure, DB2, SAP, ODBC, XML, and Terradata databases. It uses the same Report Designer as development tools like SSRS (SQL Server Reporting Services) and SSDT (SQL Server Data Tools).

Here are ways that you can benefit from and develop your creativity using SSRS Ad Hoc Report Builder:

• One of the best things about SSRS Report Builder is that it is designed so that even non-technical staff can develop reports. Powerful visuals are also enabled through different supported report regions, including maps, gauges, charts, and indicators. An entire library of report items such as tables, charts, matrices, and images can likewise be created and reused by users. Reports can also be published for shared use or generated for personal use.

• Report parts and shared data sets can be pre-configured to give users access to raw data that need to be reported on, without having to learn about complex underlying database structures. This also gives them the ability to generate impressive-looking components to their reports without the need to understand how to customize and configure the same.

• Shared Report Parts can be made available through the SSRS server, so report writers can focus on the data and story being presented and gain access to relevant reports simply by plugging in the appropriate components that are already bound to the needed business data sets.

• Report writers can likewise take advantage of the compete design capabilities of the Report Builder, build custom data sets, and create and configure their own complex gauges, charts, maps, tables, lists, and matrices, if they so wish and if they are familiar with source data.