(Madhivanan) In this post Dynamic PIVOT in SQL Server 2005, I have shown a way to dynamically generate the column values with names. I used to get mails frequently from people on how to pass parameters when executing the procedure.
Tag: sql server
New Date and Time Functions in SQL Server 2012
(Ashish Kumar Mehta) SQL Server 2012, code named Denali, has new date and time functions such as DATEFROMPARTS, TIMEFROMPARTS, DATETIMEFROMPARTS, DATETIME2FROMPARTS, SMALLDATETIMEFROMPARTS, DATETIMEOFFSETFROMPARTS, EOMONTH that can be used to Get Date and Time Values from their parts. In this tip we
Re-configure Replication after restoring publication database from Backup – Replication Scenario
(Sakthivel Chidambaram) Sharing one of the interesting scenario I worked today.
March Madness – SQL Azure – sys.databases
(Thomas LaRock) Yesterday we talked about the user information you can get from SQL Azure. Today we are going to focus on the details you can gather about the databases for your SQL Azure instance. You can run the following code to view details about the databases for your SQL Azure server instance:
SQL SERVER – Finding Shortest Distance between Two Shapes using Spatial Data Classes – Ramsetu or Adam’s Bridge
(Pinal Dave) Recently I was reading excellent blog post by Lenni Lobel on Spatial Database. He has written very interesting function ShortestLineTo in Spatial Data Classes. I really loved this new feature of the finding shortest distance between two shapes in SQL Server.
SQL Server Database corruption–Part VI: Regular Corruption Checks
(Michael K. Campbell) Previously we looked at how to set up alerts for cases where SQL Server encounters issues with the storage subsystem. Setting those up is a key component to staying alerted to when problems happen – but another great mechanism for detecting corruption early is to set up regular
Use wildcards characters in SQL queries
(Samrat153) Most SQL users know the importance and power of the basic usage of wildcards. Using wildcards allows us to do pattern matches.
Creating a Map Report in SSRS – SQL Server 2008 R2
(Arshad Ali) SQL Server 2008 R2 brought several new features into the SSRS (SQL Server Reporting Services) arena. In the data visualization category, we now have three additional ways to display and visualize/analyze data in the reports:
SQL Server Log Shipping to a Different Domain or Workgroup
(Dan Quinones) Sometimes the requirement arises to provide a copy of your database to an off-site location, such as a disaster recovery datacenter. Log Shipping is one of the most popular, proven technologies used to create a copy of your databases on a remote server.
No Significant Fragmentation? Look Closer…
(Luciano Moreira) If you are relying on using ‘best-practice’ percentage-based thresholds when you are creating an index maintenance plan for a SQL Server that checks the fragmentation in your pages, you may miss occasional ‘edge’ conditions on larger tables that will cause severe degradation in