Creating Encryption Key Backup for SSRS 2008R2

Creating Encryption Key Backup for SSRS 2008R2

– r for taking backup of key

-f for file location

-i is the instance name of the Reporting Services

C:\Windows\system32>rskeymgmt -e -f m:\rsdbkey.snk -p Abc1234567 -i PAYAPPSGRP02

 
Are you sure you want to extract the key from the report server? Yes (Y)/ No (N)
: Y

SECURE THE FILE IN A SAFE LOCATION

The command completed successfully

Advertisements

Create Indexed Views in SQL Server; SQL Equivalent of Oracle Materialized Views.

SQL Server supports creating indexes on a view. It is the same concept as Materialized Views in Oracle. The main difference in the syntax in normal views and indexed views is the clause “with schemabinding”

CREATE VIEW [dbo].[ViewName] with schemabinding
AS
SELECT id, activityID, userID, value, date
FROM dbo.TableName
WHERE (field = ‘activityID’)
Now you go ahead and create the index on the view you just created.
CREATE UNIQUE CLUSTERED INDEX [IDX_ActivityStatusID] ON [dbo].[ViewName]
(
[activityID] ASC,
[id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO

Create Indexed Views SQL Server 2005 and 2008

SQL Server supports creating indexes on a view. It is the same concept as Materialized Views in Oracle. The main difference in the syntax in normal views and indexed views is the clausa “with schemabinding”


CREATE VIEW [dbo].[HistoryTable] with schemabinding
AS
SELECT id, activityID, userID, value, date
FROM dbo.ActivityHistory

Now go ahead amd create the index on the view you just created.

CREATE UNIQUE CLUSTERED INDEX [IDX_ActivityStatusID] ON [dbo].[HistoryTable]
(
 [activityID] ASC,
 [id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO