Ads
20 March 2012
SQL Server 2008 SP2
•SQL Server 2008 SP2: http://go.microsoft.com/fwlink/?LinkId=196550
•SQL Server 2008 SP2 Express: http://go.microsoft.com/fwlink/?LinkId=196551
•SQL Server 2008 SP2 Feature Packs: http://go.microsoft.com/fwlink/?LinkId=202815
•SQL Server 2008 SP1 CU’s Released: http://support.microsoft.com/kb/970365
•Knowledge Base Article For Microsoft SQL Server 2008 SP2: http://support.microsoft.com/kb/2285068
•SQL Server 2008 SP2 Express: http://go.microsoft.com/fwlink/?LinkId=196551
•SQL Server 2008 SP2 Feature Packs: http://go.microsoft.com/fwlink/?LinkId=202815
•SQL Server 2008 SP1 CU’s Released: http://support.microsoft.com/kb/970365
•Knowledge Base Article For Microsoft SQL Server 2008 SP2: http://support.microsoft.com/kb/2285068
01 March 2012
New T-SQL Features in SQL Server 2012
SQL Server 2012 has several major enhancements including a new look for SSMS. SSMS is now similar to Visual Studio with greatly improved Intellisense support. The main new TSQL features in SQL Server 2012 are:
WITH RESULT SETS
OFFSET AND FETCH
THROW in Error handling
SEQUENCE
WITH RESULT SETS
OFFSET AND FETCH
THROW in Error handling
SEQUENCE
22 February 2012
DB RECOVERY - PAGE LEVEL
STEP 1 - Check Database For corruption
We can check database integrity by using DBCC CHECKDB command, to see weather there is corruption in database of not.
Looking at error message, we can clearly identify that there is corruption on page 223 as we can see this message. Object ID 2105058535, index ID 2, partition ID 72057594038910976, alloc unit ID 72057594039828480 (type In-row data): Page (1:223) could not be processed.
STEP 2 – Restore faulty page from a GOOD Backup – PAGE Level Database Restore
Now we need to restore faulty pages from a SQL Server backup, that means restore only faulty pages. This is a new feature in SQL Server 2008, where we can restore only some corrupted pages from a good database backup.
For example you have a 100 Gb database and only 1 page is corrupted than we can save recovery time by restoring a single page instead of a 100 GB database.
SQL Command to perform a page level restore
use master
go
RESTORE DATABASE DBA PAGE = '1:223' FROM DISK = 'C:\temp\DBA_before_curruption.bak';
goSTEP 3 – Backup and Restore Current TRANSACTION LOG Backup
If you read the restore informational messages, which we received in last step states that there is difference between the LSN number.
Processed 1 pages for database ‘DBA’, file ‘DBA’ on file 1.
The roll forward start point is now at log sequence number (LSN) 43000000055600001. Additional roll forward past LSN 43000000058400001 is required to complete the restore sequence.
RESTORE DATABASE … FILE=
To correct this LSN number, we need to backup the current log and restore in a current database, using the following syntax.
use DBA
BACKUP LOG DBA TO DISK = 'C:\DBA_log.bak' WITH INIT;
GO
use master
GO
RESTORE LOG DBA FROM DISK = 'C:\DBA_log.bak';This is going to be pretty quick as only page level transactions will be rolled back or rolled forward, you can see that in message where backup log size was in MB’s but restore was kind of ZERO only.
Processed 5 pages for database ‘DBA’, file ‘DBA_log’ on file 1.
BACKUP LOG successfully processed 5 pages in 0.020 seconds (1.684 MB/sec).
Processed 0 pages for database ‘DBA’, file ‘DBA’ on file 1.
RESTORE LOG successfully processed 0 pages in 0.006 seconds (0.000 MB/sec).
STEP 4 – Verify corruption has been resolved and data is consistent
Re-execute DBCC CHECKDB to ensure and verify that corruption has been removed and database is health now.
OPTION 2 – The corruption example, which I took was of Index and I want to make you understand how page level restore works, if you are looking for a solution to a exact problem, which I demonstrated, can be resolved by rebuilding a non clustered index, as can afford to rebuild index which doesn’t;t result any data loss.
DB RECOVERY - PAGE LEVEL
21 February 2012
Unable to refresh data for a data connection in the workbook. Try again or contact your system administrator. The following connections failed to refresh: PowerPivot Data
http://msdn.microsoft.com/en-us/library/ff487856.aspx
http://www.cjvandyk.com/blog/Articles/How%20do%20I%20-%20Install%20PowerPivot%20into%20an%20EXISTING%20SharePoint%202010%20farm.aspx
NOTE :- This feature is not available on SQL Server Standard Edition.
http://www.microsoft.com/sqlserver/en/us/product-info/compare.aspx
http://www.cjvandyk.com/blog/Articles/How%20do%20I%20-%20Install%20PowerPivot%20into%20an%20EXISTING%20SharePoint%202010%20farm.aspx
NOTE :- This feature is not available on SQL Server Standard Edition.
http://www.microsoft.com/sqlserver/en/us/product-info/compare.aspx
Subscribe to:
Posts (Atom)
-
Find More On : - http://www.sqlserver-training.com/250-sql-queries-interview-question-answers/-#5+ SQL Queries Interview Questions ...
-
ERROR: report server remote procedure call (RPC) end point. Verify that the Report Server Windows service is running, and then retry the o...
-
http://technet.microsoft.com/en-us/library/cc731002(WS.10).aspx#BKMK_requirements How accounts are created through wizards in ...