Entries by Pankaj Kumar

Working with Clustered Index in MS SQL Server

Clustered indexes sort and store the data rows in the table based on their key values. There can only be one clustered index per table, because the data rows themselves can only be sorted in one order. Creating a Table in Clustered Index To better explain how SQL Server creates clustered indexes, lets create a new table by executing the following command. When you first create a new table, there is no index created by default, and a heap is created. Now, Adding a few records in this table:- After inserting the data in the Employee table , we can view the contents of the table by executing the following command. The output should be as follows: Empid 4 6 Clustering alters the data block into a certain distinct order to match the index, resulting in the row data being stored in order. Therefore, only one clustered index can be created on a given database table. A clustered index can greatly increase overall speed of retrieval, but usually only where the data is accessed sequentially in the same or reverse order of the clustered index, or when a range of items is selected. Some points to remember when using clustered indexes: The reordering of the index occurs every time the index changes (ie: on Update, Insert, Delete). They affect the physical order of data so there can only one clustered index. They reorder the way records in the table are physically stored. When you create a clustered index, try to create it as a UNIQUE clustered index, not a non-unique clustered index. The reason for this is that while SQL Server will allow you to create a non-unique clustered index, SQL Server will make it unique for you by adding a 4-byte “uniqueifer” to the index key to guarantee uniqueness. This increases the size of the key and reduces performance.

The post Working with Clustered Index in MS SQL Server appeared first on OptimusBI.

Working with Clustered Index in MS SQL Server

Clustered indexes sort and store the data rows in the table based on their key values. There can only be one clustered index per table, because the data rows themselves can only be sorted in one order. Creating a Table in Clustered Index To better explain how SQL Server creates clustered indexes, lets create a new […]

How to create subscription for SSRS reports

Report subscriptions in SQL Reporting Services enable you to configure the automatic delivery of specified reports by e-mail or to a file share at scheduled intervals. You can also configure other types of report subscriptions, such as data-driven subscriptions from the Web interface included with Microsoft SQL Server Reporting Services. NOTE: Data-driven subscription functionality is not available in all editions (i.e Standard or Express edition). There are also limitations on the kinds of data sources that you can use to retrieve subscription data at run time. Objective: Here we are going to subscribe a report which has already been deployed on the Report Server. Report server is present on our SharePoint 2010 site. Prerequisites: SQL Server 2008 R2 (Enterprise Edition) Reporting Server Share Point 2010 SSRS Report (developed using Report builder 3.0, for which we have to create a subscription) Instructions: You can subscribe to an SSRS Report using email or Windows File Share, we are going to look the subscription of the SSRS report using email.   On the report server, navigate to your SharePoint site URL eg: http://sharepoint-ser/Reports.aspx where you will see a list of reports. In the options list that that appears when you mouse over on the desired report, select Manage Subscription. On the new page , select Add Subscription. On the New Subscription page in the Delivery Extension dropdown, select E-mail. Windows File Share: expoerts the report to a network drive Email: sends to your email address in Delivery Options SharePoint Library:  exports the report to a location on your SharePoint Portal. In the Delivery Options area, fill out the desired settings. To: destination email address of the report Subject: title of the email Comment: free text field you can use to customize the email message. Include a link to the report:  check this to include a direct link to the report. In the Report Content area, select the desired settings. Use the check box to show report inside message Use the dropdown to add the report as an attachment and select a format. In the Delivery Events area, click Configureto set the desired report subscription scheduling settings. In the Schedule Reports dialog, set the desired settings and click OK. In the Parameters dialog, enter the desired settings and click OK. You have successfully created the subscription for the SSRS report. Your Subscription will already trigger at the specified schedule. If you want to learn more about how OptimusBI can help you with SSRS or any other BI project, contact OptimusBI, or visit our BI case studies.

The post How to create subscription for SSRS reports appeared first on OptimusBI.

How to create subscriptions for SSRS reports

Report subscriptions in SQL Reporting Services enable you to configure the automatic delivery of specified reports by e-mail or to a file share at scheduled intervals. You can also configure other types of report subscriptions, such as data-driven subscriptions from the Web interface included with Microsoft SQL Server Reporting Services. NOTE: Data-driven subscription functionality is […]