SQL Server Blogs

Who is online?  124 guests and 1 members
home  »  blogs  »  blogs: May 2012

SQLServerGeeks.com Blogs

Blogs RSS Feed

Blogs : May 2012 postings

Satnam Singh

SQL Server - Using DML Triggers to Capture Multiple Events

11/15/2012 9:42:15 AM by Satnam Singh  -  Comments: 0  -  Views: [3753]

AS DBAs we often need to develop DML triggers to capture multiple entries which are either INSERTED, UPDATED or DELETED from a table. A few months back, I came across a situation where the Application Development Team asked me to write a logic to notify the DBA if any records were either INSERTED,UPDATED or DELETED from a particular table. The requirement was that the trigger should capture multiple entries instead of just one single entry. Based on the requirements from the team, I finally deci...

Read More

Ahmad Osama

SQL Server DTA: Finding Unused Indexes

7/16/2012 2:29:49 PM by Ahmad Osama  -  Comments: 3  -  Views: [2226]

This is another good feature of DTA. There are lot of different scripts available over internet to find unused indexes, however why not use the SQL Servers very own DTA to figure this out. It’s similar to tuning up any other workload only the tuning option to be selected is “Evaluate Utilization of Existing PDS only”. It doesn’t works along with Tuning option “Keep all existing PDS” and it should not be selected. Let’s see how it’s done. I will use...

Read More

SQLPodCasts SQLPodCasts

SQL Server PodCast with Mark Tabladillo

5/30/2012 9:59:07 AM by SQLPodCasts SQLPodCasts  -  Comments: 0  -  Views: [1455]

Hi SQLGeeks, Welcome to SQLServerGeeks.com PodCasts ! We bring you interviews and tech talks between SQL Server personalities. Once a while, one of our board member schedules a SQL Server interview and technical discussion with a leading SQL Server expert from the community. During the tech talk, the expert shares his technical knowledge and expertise with the listeners based on the subject of discussion. We are grateful to our guests for their valuable time. This is yet another way of learning ...

Read More

prince rastogi

SQL Server Copy Only Backup

5/29/2012 2:26:50 PM by prince rastogi  -  Comments: 0  -  Views: [2029]

Hi Friends, Using SQL Server “Copy Only Backup” option for ad hoc backups. Problem: We always setup a bulletproof backup strategy for our production server using Full, Differential and transaction Log backups. Which always Suppose on our production server the backup strategy is as follows: Full Backup: 1 AM (Sunday 1 AM) TLog Backup: after every one Hour 2 AM, 3 AM, 4 AM………….. Differential Backup: 1 AM (Monday 1 AM) TLog Backup: after every one Hour 2 AM, ...

Read More

Amit Bansal

SQL Server - Cost Threshold of Parallelism

12/4/2012 10:50:33 AM by Amit Bansal  -  Comments: 4  -  Views: [7574]

Hi Friends, What triggers me to write this blog today is that in one of my recent consulting engagements, my audience had blurred understanding of this server-level property and the concept of parallelism overall. Here is a simple explanation: Parallelism, in simple words, means that SQL Server can use 2 or more processors to execute your query. Which means, the optimizer produces a parallel plan and you can observe the parallel physical operator (yellow circle with black arrows) Processors here...

Read More

SQLPodCasts SQLPodCasts

SQL Server PodCast with Dr. Greg Low

5/29/2012 8:35:05 AM by SQLPodCasts SQLPodCasts  -  Comments: 0  -  Views: [1103]

Hi SQLGeeks, Welcome to SQLServerGeeks.com PodCasts ! We bring you interviews and tech talks between SQL Server personalities. Once a while, one of our board member schedules a SQL Server interview and technical discussion with a leading SQL Server expert from the community. During the tech talk, the expert shares his technical knowledge and expertise with the listeners based on the subject of discussion. We are grateful to our guests for their valuable time. This is yet another way of learning ...

Read More

Vishal Gajjar

SQL Server - Creating a Tail Log Backup when Data files are not available

5/27/2012 5:43:33 PM by Vishal Gajjar  -  Comments: 2  -  Views: [2078]

SQL Server allows a log backup to be created even when all data files are not available for the database. This is very useful in restoring the transactions that occurred right before disaster occurred. The BACKUP LOG command has an option NO_TRUNCATE which allows us to create a log backup when database is inaccessible. To quote BOL, Using NO_TRUNCATE specifies that the log not to be truncated and causes the Database Engine to attempt the backup regardless of the state of the database. To demonst...

Read More

Admin Admin

SQLServerGeeks.com bi-weekly webcast – 31 May 2012 at 3:00 p.m. IST

5/26/2012 6:44:56 AM by Admin Admin  -  Comments: 0  -  Views: [741]

Dear SQL Geek, Hope you are doing well. Continuing the success, here is the next bi - weekly webcast, absolutely free for the SQL Server community. It is your opportunity to hear a specialist and this time it is Abhay Chaudhary presenting on “Transactional Replication”. On Thursday, 31 May 2012 at 3:00 pm IST, Abhay Chaudhary will present an intriguing webcast on - Transactional Replication. Understanding Transactional Replication: we are beginning with a level 200 Webcast on Transac...

Read More

suhas kudekar

SQL+MDX in one Apartment (Hybrid Query).

5/25/2012 9:21:04 AM by suhas kudekar  -  Comments: 4  -  Views: [2299]

While replying on the MSDN Forums Most of the time people ask on how to write SQL+MDX both in single place means. 1- Certain data like aggregated data from MDX Query. 2- Select that data from SQL Query and get these data in table to show on reports. I already answer couple of the question on forums but then think it’s better to write blog on above topics. Some for the forum post I Included here for reference. 1- SSRS combining MDX and T-SQL . 2- Need help on MDX query to retrieve data from...

Read More

prince rastogi

SQL Server - SQL Server Batch Separator GO

11/15/2012 9:43:47 AM by prince rastogi  -  Comments: 1  -  Views: [3263]

Hi Friends, Here I am going to explain the SQL Server Batch Separator. Batch: Batch is a group of one or more TSQL statements submitted to SQL server for the execution. 1- To separate batches we use batch separator "GO" for example : use sales go select * from xtsales2012 2- you can also use GO to define how much times you want to execute your batch. Syntax: GO [count] where count is a positive integer. for example : print 'sqlservergeeks' GO 5 3- GO is a utility command. So utilities never send...

Read More

suhas kudekar

SQL Server - BIDS No More Exist in SQL Server 2012.

11/15/2012 9:43:51 AM by suhas kudekar  -  Comments: 0  -  Views: [5870]

Once you will installed SQL Server 2012 you could not find the BIDS to develop SSAS/SSIS/SSRS application. BIDS will replace with SSDT i.e. SQL Server Data Tools. Comparison of SQL Server 2012 Vs SQL Server 2008 R2. You can get more idea on below Screen shot how SQL Server 2012 looks compare with SQL Server 2008 R2 components. SQL Server 2012 Components SQL Server Data Tools SQL Server Management Studio Analysis SErvices Configuration Tools Data Quality Services Documentation & Community Int...

Read More

Amit Bansal

SQL Server - Hyper-V Integration Services

12/4/2012 10:50:47 AM by Amit Bansal  -  Comments: 0  -  Views: [2094]

Hi Friends, As you might aware of (with regards to my last blog) that I was setting a Windows Server 2003 cluster on Hyper V, I want to pen down some more notes here. My last blog was about sysprep-ing a Windows Server 2003 image which can be found here http://www.sqlservergeeks.com/blogs/AmitBansal/sql-server-bi/538/sql-server-sysprep-windows-server-2003-r2-sp2-hyper-v-image When I started the Windows Server 2003 Hyper V image for the first time, I found issues with the resolution, mouse captur...

Read More

suhas kudekar

SQL Server - VertiPaq Engine Renamed as xVelocity in SQL Server 2012.

11/15/2012 9:43:57 AM by suhas kudekar  -  Comments: 0  -  Views: [1712]

VertiPaq engine is currently only available to PowerPivot for Excel in SQL Server 2008 R2. After the amazing success of PowerPivot for Excel in the previous release of SQL Server 2008 R2 this engine moved to the server side with the same InMemory BI and compression and it’s called the VertiPaq Engine or the Analysis Services Tabular Mode. Data retrieval and calculations happen at a much faster rate as its entire database is in-memory.Vertipaq enables Excel to process hundreds of millions o...

Read More

Ahmad Osama

SQL SERVER DTA: Reducing production server test load.

5/23/2012 7:00:01 PM by Ahmad Osama  -  Comments: 4  -  Views: [2237]

This feature creates a copy of a database to be tuned on a specified test server and runs the tuning process on that test server. The recommendations suggested can then be applied to production server as appropriate. Only database and object structure is copied including statistics. It doesn’t copies data. Thus, it saves performance issues on production server because of tuning process and it can also be used for copying complete database structure on to test servers if need be. This featu...

Read More

Amit Bansal

SQL Server - Sysprep Windows Server 2003 R2 SP2 Hyper V image

12/4/2012 10:51:02 AM by Amit Bansal  -  Comments: 0  -  Views: [2300]

Hi Friends, Sometime back, I had blogged about sysprep-ing a Windows Server 2008 R2 image. I was setting up a Windows Server 2008 cluster between multiple Hyper-V images. You can find that blog here: http://www.sqlservergeeks.com/blogs/AmitBansal/sql-server-bi/425/sql-server-failover-cluster-sysprep-your-cloned-images This time I am setting up a Windows Server 2003 cluster between multiple Hyper V images and had to sysprep a Windows Server 2003 image. So here are some tips about that: By default...

Read More

prince rastogi

SQL Server - Dedicated Administrator Connection (DAC) in SQL Server

11/15/2012 9:44:00 AM by prince rastogi  -  Comments: 2  -  Views: [5181]

Hi friends, Here i just want to inform you the power of Dedicated Administrator Connection (DAC) in SQL Server: SQL Server provides a special type of connection only for administrators when standard connections to your sql server instance are not possible. This DAC connection can be made through sqlcmd utility as well as SQL Server management studio. There are many restrictions also with DAC. Some of them are listed below: 1-The connection is only allowed from a client running on the server. 2-O...

Read More

Amit Bansal

SQL Server Analysis Services - Setting the Default Measure for the cube

12/4/2012 10:51:20 AM by Amit Bansal  -  Comments: 0  -  Views: [3510]

Hi Friends, This is indeed so basic and simple and I got surprised when I observed during one of my assignments that the customer has not set a default measure for the cube; they just did not know about this option. Since when you browse the cube, a default measure is picked up automatically and that suits the requirement of the client :) But what if you want a different measure to pop up by default? This is where you set the default measure for the cube: As per the documentation the Analysis Se...

Read More

Admin Admin

SQLServerGeeks.com bi-weekly webcast – 16 May 2012 at 11:30 a.m. IST

5/14/2012 5:27:36 AM by Admin Admin  -  Comments: 0  -  Views: [790]

Dear SQL Geek, Hope you are doing well. Continuing the success, here is the next bi - weekly webcast, absolutely free for the SQL Server community. It is your opportunity to hear a specialist and this time it is Sarabpreet Singh presenting on “Log Shipping”. On Wednesday, 16 May 2012 at 11:30 am IST, Sarabpreet Singh will present an intriguing webcast on - Log Shipping. You think Log Shipping is an old and not-so-worth solution to implement? Join this session and you'll change your o...

Read More

Amit Bansal

SQL Server 2012 - Determining the size of a Columnstore index

12/4/2012 10:51:38 AM by Amit Bansal  -  Comments: 0  -  Views: [3455]

Hi Friends, By this time, many of you already know about columnstore indexes, a column store architecture that groups and stores data for each column on separate pages and then joins all the columns to return data, as required. Note that you can have only one columnstore index per table and as per Microsoft guidelines, you may want to put many columns in that one index. I am a little scared of putting ‘many’ columns in that one index :) – thus keeping an eye on the size of your...

Read More

Amit Bansal

SQL Server - My experience as a SPEAKER - SQLBits 10 March 2012

12/4/2012 10:52:00 AM by Amit Bansal  -  Comments: 0  -  Views: [3414]

Hi Friends, Speaking at SQL Server conferences is something that I cherish a lot, even more when it is outside my home country, India. It is indeed a privilege to interact with global audience and share knowledge. It is an unmatched and unforgettable experience. And this time, it was a pleasure speaking at SQLBits in London in March 2012. I delivered a session on Indexes which was well appreciated by the audience. Even more contenting is when you receive follow up emails after your session, cong...

Read More

Ahmad Osama

SQL Server : Clustered Index Physically Orders a Table Revisited

5/8/2012 12:49:37 PM by Ahmad Osama  -  Comments: 13  -  Views: [6204]

Hi Friends, Continuing on from my last blog post “SQL Server: Clustered Index Physically Orders a table”, this post demystifies the myth “Clustered index physically a table”. The order of the rows in a page is managed by Row offset table and not by the clustered index. Row offset table defines the scope of a row in page i.e. it tells the start of a particular row in a page. Here is an abstract about row offset table from books online. ( http://msdn.microsoft.com/en-us/lib...

Read More

Amit Bansal

SQL Server - Installing SQL Server 32 bit on 64 bit Operating System

12/4/2012 10:52:15 AM by Amit Bansal  -  Comments: 4  -  Views: [5255]

Hi Friends, Today I got a question on “can you install SQL Server 32 bit on 64 bit OS?” Answer: Yes, you can ! During setup, click on the Options link and select the architecture (64 bit or 31 bit). By default on a 64 bit OS, x64 bit will be selected. You need to change it to x86. If you liked this post, do like us on FaceBook at http://www.FaceBook.com/SQLServerGeeks Have a SQL Server question? Join the fastest growing SQL Server facebook group at: http://www.facebook.com/groups/458...

Read More

Amit Bansal

SQL Server - Analysis Services IgnoreUnrelatedDimensions property in Dimensions Usage Tab

12/4/2012 10:52:35 AM by Amit Bansal  -  Comments: 0  -  Views: [2726]

Hi Friends, Look at this scenario: When I try to slice Reseller Sales measure group by Geography dimension, I get the following output: Rightly so, because the Geography dimension is not related to the Reseller Measure group, it just shows the grand total for all the members. This can be confirmed from the Dimensions Usage tab. But don’t you think that the output could show null or blank instead of showing incorrect or inaccurate results? No worries; there is a property called IgnoreUrelat...

Read More

Page 1 of 1 (23 items)

Email Subscriptions

   Get the Most Recent Blogs in your inbox