How to Truncate only the Selected Tables from Database
We recently had a request for a script which should take the list of Table names as a parameter and all the givin tables should be truncated.We came up with a stored procedure. Here we go.--EXEC...
View ArticleStored procedure to Truncate Tables from Database
The procedure will continue on error and give the summary at the endIFEXISTS(SELECT 1 FROMSYS.SYSOBJECTSWHERENAME='USP_Truncate_Tabs'ANDTYPE='P')BEGINDROPPROC USP_Truncate_TabsENDGOCREATEPROC...
View ArticleNew features added to SQL Server Denali CTP3
Time to Denali - SQL 2012Operating System Support & PrerequisitesüWindows 7 & Windows Server 2008 R2 üWindows Server 2008 R2 Server Core üWindows Vista & Windows Server 2008üWindows XP...
View ArticleExport to Excel from SQL Server database.
Export to Excel from SQL Server database.We can use Import / Export WizardBCPOPENROWSETBelow stored procedure will make the task easy.USEMASTER/*** Make sure that the below are enabled on your server...
View ArticleHow to Monitor Replication - Automate Replication Monitoring
Script to Automate The Replication MonitoringUsually we need to monitor replication periodically through out the day. I have designed a solution to monitor replication form T-SQL. It'll send a mail to...
View ArticleRealtime Example for SSIS Transformations
Introduction: List of 28 Transformations are as followsS NoTransformationReal Time Examples1AggregateSumming / Averaging a total of the products purchased by a customer online to produce the final...
View ArticleSQL Server Installation error !
I have got a request to install SQL Server 2005 Standard Edition with SP4. While installing database services it suddenly failed by throwing a pop - up. The error message :"The SQL Server service...
View ArticleFree ebook: Introducing Microsoft SQL Server 2012
Friends, the final and complete version of Introducing Microsoft SQL Server 2012, by Ross Mistry (@RossMistry) and Stacia Misner (@StaciaMisner), is now ready as a free download! You can download the...
View ArticleHow to Configure SSRS 2008 R2 - SQL Server Reporting Services
After Installing SQL ServerMSSQL Service account should have full rights on all data and log drivesExclude Data, Log, Tempdb, any Backup file paths, and the SQL Server Binaries folders from AntiVirus...
View ArticleSSIS Error: Derived Column Failed because Truncation Occurred.
SSIS Error: Derived Column Failed because Truncation Occurred.Error Message:The "component "Derived Column" (20)" failed because truncation occurred, and the truncation row disposition on "output...
View ArticlePassing variables at Runtime - SSIS / Dynamic execution of SSIS packages
Passing variables at Runtime – SSISRequirement:We have got a request to design a package which needs to be take care of the below functionality. 1. Every day we get data from a client. There are a...
View ArticleSQL Server database mirroring with script - Database mirroring with screenshots
Database Mirroring In Mssql Server 2005 Contents✓ Part1 – Theory✓ Part2 – Implementing Using T - Sql ✓ Part3 – Implementing Using Ssms✓ Part4 – Automatic Failover✓ Part5 – Manual Failover✓...
View ArticleDownload Microsoft Windows Server 2012
Now Windows Server 2012 is available To download 2012 Click hereDownload Free eBookKey Features Added in 2012
View ArticleCase Sensitive Query Search - SQL Server - Using collation in queries
Case Sensitive Query Search - SQL ServerI have got a request to write a select query to get data by matching a column with case sensitive and I should not suppose to use any conversion function.Then I...
View ArticleBy By Hotmail Welcome to Outlook.com - Feel Outlook Online
Introducing Outlook.com - Modern Email for the Next Billion MailboxesHow to Upgrade to Outlook.com from Hotmail
View ArticleRegister for Windows 8 Event for IT professionals
It gives us great pleasure to invite you to exclusive events forIT professionals, where Microsoft Experts would take youthrough the latest Technologies of Microsoft including Windows 8 & Internet...
View ArticleCumulative update package 4 for SQL Server 2012 is available
How to obtain Cumulative Update 4 for SQL Server 2012A supported cumulative update package is now available from Microsoft. However, it is intended to correct only the problems that are described in...
View ArticleHow to encrypt data using T-sql / Encrypt data using password in SQL Server
I recently got a request to obfuscate data at Dev environment. Most of the times these kind of requests come in environments where dealing with sensitive data. We usually do dev refresh from prod on...
View Article