« September 2009 | Main | January 2010 »
October 30, 2009
Business Intelligence Seminar Series
Do more with what you already have. Leverage the products you already own and the data your systems produce to gain operational efficiencies and improve your company's business intelligence capabilities!Baltimore
Tuesday, Nov. 3 (9:00 a.m. †11:30 a.m. EST)
Hyatt Place
4730 Painters Mill Road
Owings Mills, MD 21117
Register
Reston, VA
Wednesday, Nov. 18 (9:00 a.m. †11:30 a.m. EST)
Microsoft Corporation
12012 Sunset Hills Rd.
Reston, VA 20190
Register
Washington, D.C.
Tuesday, Dec. 1 (9:00 a.m. †11:30 a.m. EST)
Microsoft Corporation
5404 Wisconsin Ave.
Chevy Chase, MD 20815
Register
Philadelphia
Wednesday, Dec. 2 (9:00 a.m. †11:30 a.m. EST)
Philadelphia Marriott West
111 Crawford Avenue
West Conshohocken, PA 19428
Register
Posted by Steve Mann at 3:41 PM | Comments (0)
Hosting SQL Server on VMWare
One of our clients was investigating the logistics of running SQL Server on VMWare. In discussions with Microsoft, the response includedfour (4) important links. I personally have seen various SQL Server performance issues when virtualizing especially in a SharePoint environment and I would never trust that configuration. There have been many enhancements with SQL Server 2005 and now SQL Server 2008 in order to consolidate servers and take advantage of reducing hardware needs and license costs. A good SQL Server 2008 consolidation white paper can be found here.Here is the info from the Microsoft technician:
If you are running ESX V3.5 the latest hotfixes from VMware to disable write-caching are included in update3 and update 4.
1. The Microsoft Virtual Server support policy
2. The VMware knowledge base article that you can contact VMware about for hosting SQL Server
3. This article that explains the issueanddiscussesthe problem domain
4. Here is an presentation from VMWare about how to disable the disk write issue.
Posted by Steve Mann at 1:08 PM | Comments (0)
Hosting SQL Server on VMWare
One of our clients was investigating the logistics of running SQL Server on VMWare. In discussions with Microsoft, the response includedfour (4) important links. I personally have seen various SQL Server performance issues when virtualizing especially in a SharePoint environment and I would never trust that configuration. There have been many enhancements with SQL Server 2005 and now SQL Server 2008 in order to consolidate servers and take advantage of reducing hardware needs and license costs. A good SQL Server 2008 consolidation white paper can be found here.Here is the info from the Microsoft technician:
If you are running ESX V3.5 the latest hotfixes from VMware to disable write-caching are included in update3 and update 4.
1. The Microsoft Virtual Server support policy
2. The VMware knowledge base article that you can contact VMware about for hosting SQL Server
3. This article that explains the issueanddiscussesthe problem domain
4. Here is an presentation from VMWare about how to disable the disk write issue.
Posted by Steve Mann at 1:08 PM | Comments (0)
Hosting SQL Server on VMWare
One of our clients was investigating the logistics of running SQL Server on VMWare. In discussions with Microsoft, the response includedfour (4) important links. I personally have seen various SQL Server performance issues when virtualizing especially in a SharePoint environment and I would never trust that configuration. There have been many enhancements with SQL Server 2005 and now SQL Server 2008 in order to consolidate servers and take advantage of reducing hardware needs and license costs. A good SQL Server 2008 consolidation white paper can be found here.Here is the info from the Microsoft technician:
If you are running ESX V3.5 the latest hotfixes from VMware to disable write-caching are included in update3 and update 4.
1. The Microsoft Virtual Server support policy
2. The VMware knowledge base article that you can contact VMware about for hosting SQL Server
3. This article that explains the issueanddiscussesthe problem domain
4. Here is an presentation from VMWare about how to disable the disk write issue.
Posted by Steve Mann at 1:08 PM | Comments (0)
Hosting SQL Server on VMWare
One of our clients was investigating the logistics of running SQL Server on VMWare. In discussions with Microsoft, the response includedfour (4) important links. I personally have seen various SQL Server performance issues when virtualizing especially in a SharePoint environment and I would never trust that configuration. There have been many enhancements with SQL Server 2005 and now SQL Server 2008 in order to consolidate servers and take advantage of reducing hardware needs and license costs. A good SQL Server 2008 consolidation white paper can be found here.Here is the info from the Microsoft technician:
If you are running ESX V3.5 the latest hotfixes from VMware to disable write-caching are included in update3 and update 4.
1. The Microsoft Virtual Server support policy
2. The VMware knowledge base article that you can contact VMware about for hosting SQL Server
3. This article that explains the issueanddiscussesthe problem domain
4. Here is an presentation from VMWare about how to disable the disk write issue.
Posted by Steve Mann at 1:08 PM | Comments (0)
Hosting SQL Server on VMWare
One of our clients was investigating the logistics of running SQL Server on VMWare. In discussions with Microsoft, the response includedfour (4) important links. I personally have seen various SQL Server performance issues when virtualizing especially in a SharePoint environment and I would never trust that configuration. There have been many enhancements with SQL Server 2005 and now SQL Server 2008 in order to consolidate servers and take advantage of reducing hardware needs and license costs. A good SQL Server 2008 consolidation white paper can be found here.Here is the info from the Microsoft technician:
If you are running ESX V3.5 the latest hotfixes from VMware to disable write-caching are included in update3 and update 4.
1. The Microsoft Virtual Server support policy
2. The VMware knowledge base article that you can contact VMware about for hosting SQL Server
3. This article that explains the issueanddiscussesthe problem domain
4. Here is an presentation from VMWare about how to disable the disk write issue.
Posted by Steve Mann at 1:08 PM | Comments (0)
Hosting SQL Server on VMWare
One of our clients was investigating the logistics of running SQL Server on VMWare. In discussions with Microsoft, the response includedfour (4) important links. I personally have seen various SQL Server performance issues when virtualizing especially in a SharePoint environment and I would never trust that configuration. There have been many enhancements with SQL Server 2005 and now SQL Server 2008 in order to consolidate servers and take advantage of reducing hardware needs and license costs. A good SQL Server 2008 consolidation white paper can be found here.Here is the info from the Microsoft technician:
If you are running ESX V3.5 the latest hotfixes from VMware to disable write-caching are included in update3 and update 4.
1. The Microsoft Virtual Server support policy
2. The VMware knowledge base article that you can contact VMware about for hosting SQL Server
3. This article that explains the issueanddiscussesthe problem domain
4. Here is an presentation from VMWare about how to disable the disk write issue.
Posted by Steve Mann at 1:08 PM | Comments (0)
Hosting SQL Server on VMWare
One of our clients was investigating the logistics of running SQL Server on VMWare. In discussions with Microsoft, the response includedfour (4) important links. I personally have seen various SQL Server performance issues when virtualizing especially in a SharePoint environment and I would never trust that configuration. There have been many enhancements with SQL Server 2005 and now SQL Server 2008 in order to consolidate servers and take advantage of reducing hardware needs and license costs. A good SQL Server 2008 consolidation white paper can be found here.Here is the info from the Microsoft technician:
If you are running ESX V3.5 the latest hotfixes from VMware to disable write-caching are included in update3 and update 4.
1. The Microsoft Virtual Server support policy
2. The VMware knowledge base article that you can contact VMware about for hosting SQL Server
3. This article that explains the issueanddiscussesthe problem domain
4. Here is an presentation from VMWare about how to disable the disk write issue.
Posted by Steve Mann at 1:08 PM | Comments (0)
Hosting SQL Server on VMWare
One of our clients was investigating the logistics of running SQL Server on VMWare. In discussions with Microsoft, the response includedfour (4) important links. I personally have seen various SQL Server performance issues when virtualizing especially in a SharePoint environment and I would never trust that configuration. There have been many enhancements with SQL Server 2005 and now SQL Server 2008 in order to consolidate servers and take advantage of reducing hardware needs and license costs. A good SQL Server 2008 consolidation white paper can be found here.Here is the info from the Microsoft technician:
If you are running ESX V3.5 the latest hotfixes from VMware to disable write-caching are included in update3 and update 4.
1. The Microsoft Virtual Server support policy
2. The VMware knowledge base article that you can contact VMware about for hosting SQL Server
3. This article that explains the issueanddiscussesthe problem domain
4. Here is an presentation from VMWare about how to disable the disk write issue.
Posted by Steve Mann at 1:08 PM | Comments (0)
Hosting SQL Server on VMWare
One of our clients was investigating the logistics of running SQL Server on VMWare. In discussions with Microsoft, the response includedfour (4) important links. I personally have seen various SQL Server performance issues when virtualizing especially in a SharePoint environment and I would never trust that configuration. There have been many enhancements with SQL Server 2005 and now SQL Server 2008 in order to consolidate servers and take advantage of reducing hardware needs and license costs. A good SQL Server 2008 consolidation white paper can be found here.Here is the info from the Microsoft technician:
If you are running ESX V3.5 the latest hotfixes from VMware to disable write-caching are included in update3 and update 4.
1. The Microsoft Virtual Server support policy
2. The VMware knowledge base article that you can contact VMware about for hosting SQL Server
3. This article that explains the issueanddiscussesthe problem domain
4. Here is an presentation from VMWare about how to disable the disk write issue.
Posted by Steve Mann at 1:08 PM | Comments (0)
Hosting SQL Server on VMWare
One of our clients was investigating the logistics of running SQL Server on VMWare. In discussions with Microsoft, the response includedfour (4) important links. I personally have seen various SQL Server performance issues when virtualizing especially in a SharePoint environment and I would never trust that configuration. There have been many enhancements with SQL Server 2005 and now SQL Server 2008 in order to consolidate servers and take advantage of reducing hardware needs and license costs. A good SQL Server 2008 consolidation white paper can be found here.Here is the info from the Microsoft technician:
If you are running ESX V3.5 the latest hotfixes from VMware to disable write-caching are included in update3 and update 4.
1. The Microsoft Virtual Server support policy
2. The VMware knowledge base article that you can contact VMware about for hosting SQL Server
3. This article that explains the issueanddiscussesthe problem domain
4. Here is an presentation from VMWare about how to disable the disk write issue.
Posted by Steve Mann at 1:08 PM | Comments (0)
Hosting SQL Server on VMWare
One of our clients was investigating the logistics of running SQL Server on VMWare. In discussions with Microsoft, the response includedfour (4) important links. I personally have seen various SQL Server performance issues when virtualizing especially in a SharePoint environment and I would never trust that configuration. There have been many enhancements with SQL Server 2005 and now SQL Server 2008 in order to consolidate servers and take advantage of reducing hardware needs and license costs. A good SQL Server 2008 consolidation white paper can be found here.Here is the info from the Microsoft technician:
If you are running ESX V3.5 the latest hotfixes from VMware to disable write-caching are included in update3 and update 4.
1. The Microsoft Virtual Server support policy
2. The VMware knowledge base article that you can contact VMware about for hosting SQL Server
3. This article that explains the issueanddiscussesthe problem domain
4. Here is an presentation from VMWare about how to disable the disk write issue.
Posted by Steve Mann at 1:08 PM | Comments (0)
Hosting SQL Server on VMWare
One of our clients was investigating the logistics of running SQL Server on VMWare. In discussions with Microsoft, the response includedfour (4) important links. I personally have seen various SQL Server performance issues when virtualizing especially in a SharePoint environment and I would never trust that configuration. There have been many enhancements with SQL Server 2005 and now SQL Server 2008 in order to consolidate servers and take advantage of reducing hardware needs and license costs. A good SQL Server 2008 consolidation white paper can be found here.Here is the info from the Microsoft technician:
If you are running ESX V3.5 the latest hotfixes from VMware to disable write-caching are included in update3 and update 4.
1. The Microsoft Virtual Server support policy
2. The VMware knowledge base article that you can contact VMware about for hosting SQL Server
3. This article that explains the issueanddiscussesthe problem domain
4. Here is an presentation from VMWare about how to disable the disk write issue.
Posted by Steve Mann at 1:08 PM | Comments (0)
Hosting SQL Server on VMWare
One of our clients was investigating the logistics of running SQL Server on VMWare. In discussions with Microsoft, the response includedfour (4) important links. I personally have seen various SQL Server performance issues when virtualizing especially in a SharePoint environment and I would never trust that configuration. There have been many enhancements with SQL Server 2005 and now SQL Server 2008 in order to consolidate servers and take advantage of reducing hardware needs and license costs. A good SQL Server 2008 consolidation white paper can be found here.Here is the info from the Microsoft technician:
If you are running ESX V3.5 the latest hotfixes from VMware to disable write-caching are included in update3 and update 4.
1. The Microsoft Virtual Server support policy
2. The VMware knowledge base article that you can contact VMware about for hosting SQL Server
3. This article that explains the issueanddiscussesthe problem domain
4. Here is an presentation from VMWare about how to disable the disk write issue.
Posted by Steve Mann at 1:08 PM | Comments (0)
Hosting SQL Server on VMWare
One of our clients was investigating the logistics of running SQL Server on VMWare. In discussions with Microsoft, the response includedfour (4) important links. I personally have seen various SQL Server performance issues when virtualizing especially in a SharePoint environment and I would never trust that configuration. There have been many enhancements with SQL Server 2005 and now SQL Server 2008 in order to consolidate servers and take advantage of reducing hardware needs and license costs. A good SQL Server 2008 consolidation white paper can be found here.Here is the info from the Microsoft technician:
If you are running ESX V3.5 the latest hotfixes from VMware to disable write-caching are included in update3 and update 4.
1. The Microsoft Virtual Server support policy
2. The VMware knowledge base article that you can contact VMware about for hosting SQL Server
3. This article that explains the issueanddiscussesthe problem domain
4. Here is an presentation from VMWare about how to disable the disk write issue.
Posted by Steve Mann at 1:08 PM | Comments (0)
Hosting SQL Server on VMWare
One of our clients was investigating the logistics of running SQL Server on VMWare. In discussions with Microsoft, the response includedfour (4) important links. I personally have seen various SQL Server performance issues when virtualizing especially in a SharePoint environment and I would never trust that configuration. There have been many enhancements with SQL Server 2005 and now SQL Server 2008 in order to consolidate servers and take advantage of reducing hardware needs and license costs. A good SQL Server 2008 consolidation white paper can be found here.Here is the info from the Microsoft technician:
If you are running ESX V3.5 the latest hotfixes from VMware to disable write-caching are included in update3 and update 4.
1. The Microsoft Virtual Server support policy
2. The VMware knowledge base article that you can contact VMware about for hosting SQL Server
3. This article that explains the issueanddiscussesthe problem domain
4. Here is an presentation from VMWare about how to disable the disk write issue.
Posted by Steve Mann at 1:08 PM | Comments (0)
Hosting SQL Server on VMWare
One of our clients was investigating the logistics of running SQL Server on VMWare. In discussions with Microsoft, the response includedfour (4) important links. I personally have seen various SQL Server performance issues when virtualizing especially in a SharePoint environment and I would never trust that configuration. There have been many enhancements with SQL Server 2005 and now SQL Server 2008 in order to consolidate servers and take advantage of reducing hardware needs and license costs. A good SQL Server 2008 consolidation white paper can be found here.Here is the info from the Microsoft technician:
If you are running ESX V3.5 the latest hotfixes from VMware to disable write-caching are included in update3 and update 4.
1. The Microsoft Virtual Server support policy
2. The VMware knowledge base article that you can contact VMware about for hosting SQL Server
3. This article that explains the issueanddiscussesthe problem domain
4. Here is an presentation from VMWare about how to disable the disk write issue.
Posted by Steve Mann at 1:08 PM | Comments (0)
Hosting SQL Server on VMWare
One of our clients was investigating the logistics of running SQL Server on VMWare. In discussions with Microsoft, the response includedfour (4) important links. I personally have seen various SQL Server performance issues when virtualizing especially in a SharePoint environment and I would never trust that configuration. There have been many enhancements with SQL Server 2005 and now SQL Server 2008 in order to consolidate servers and take advantage of reducing hardware needs and license costs. A good SQL Server 2008 consolidation white paper can be found here.Here is the info from the Microsoft technician:
If you are running ESX V3.5 the latest hotfixes from VMware to disable write-caching are included in update3 and update 4.
1. The Microsoft Virtual Server support policy
2. The VMware knowledge base article that you can contact VMware about for hosting SQL Server
3. This article that explains the issueanddiscussesthe problem domain
4. Here is an presentation from VMWare about how to disable the disk write issue.
Posted by Steve Mann at 1:08 PM | Comments (0)
Hosting SQL Server on VMWare
One of our clients was investigating the logistics of running SQL Server on VMWare. In discussions with Microsoft, the response includedfour (4) important links. I personally have seen various SQL Server performance issues when virtualizing especially in a SharePoint environment and I would never trust that configuration. There have been many enhancements with SQL Server 2005 and now SQL Server 2008 in order to consolidate servers and take advantage of reducing hardware needs and license costs. A good SQL Server 2008 consolidation white paper can be found here.Here is the info from the Microsoft technician:
If you are running ESX V3.5 the latest hotfixes from VMware to disable write-caching are included in update3 and update 4.
1. The Microsoft Virtual Server support policy
2. The VMware knowledge base article that you can contact VMware about for hosting SQL Server
3. This article that explains the issueanddiscussesthe problem domain
4. Here is an presentation from VMWare about how to disable the disk write issue.
Posted by Steve Mann at 1:08 PM | Comments (0)
Hosting SQL Server on VMWare
One of our clients was investigating the logistics of running SQL Server on VMWare. In discussions with Microsoft, the response includedfour (4) important links. I personally have seen various SQL Server performance issues when virtualizing especially in a SharePoint environment and I would never trust that configuration. There have been many enhancements with SQL Server 2005 and now SQL Server 2008 in order to consolidate servers and take advantage of reducing hardware needs and license costs. A good SQL Server 2008 consolidation white paper can be found here.Here is the info from the Microsoft technician:
If you are running ESX V3.5 the latest hotfixes from VMware to disable write-caching are included in update3 and update 4.
1. The Microsoft Virtual Server support policy
2. The VMware knowledge base article that you can contact VMware about for hosting SQL Server
3. This article that explains the issueanddiscussesthe problem domain
4. Here is an presentation from VMWare about how to disable the disk write issue.
Posted by Steve Mann at 1:08 PM | Comments (0)
Hosting SQL Server on VMWare
One of our clients was investigating the logistics of running SQL Server on VMWare. In discussions with Microsoft, the response includedfour (4) important links. I personally have seen various SQL Server performance issues when virtualizing especially in a SharePoint environment and I would never trust that configuration. There have been many enhancements with SQL Server 2005 and now SQL Server 2008 in order to consolidate servers and take advantage of reducing hardware needs and license costs. A good SQL Server 2008 consolidation white paper can be found here.Here is the info from the Microsoft technician:
If you are running ESX V3.5 the latest hotfixes from VMware to disable write-caching are included in update3 and update 4.
1. The Microsoft Virtual Server support policy
2. The VMware knowledge base article that you can contact VMware about for hosting SQL Server
3. This article that explains the issueanddiscussesthe problem domain
4. Here is an presentation from VMWare about how to disable the disk write issue.
Posted by Steve Mann at 1:08 PM | Comments (0)
Hosting SQL Server on VMWare
One of our clients was investigating the logistics of running SQL Server on VMWare. In discussions with Microsoft, the response includedfour (4) important links. I personally have seen various SQL Server performance issues when virtualizing especially in a SharePoint environment and I would never trust that configuration. There have been many enhancements with SQL Server 2005 and now SQL Server 2008 in order to consolidate servers and take advantage of reducing hardware needs and license costs. A good SQL Server 2008 consolidation white paper can be found here.Here is the info from the Microsoft technician:
If you are running ESX V3.5 the latest hotfixes from VMware to disable write-caching are included in update3 and update 4.
1. The Microsoft Virtual Server support policy
2. The VMware knowledge base article that you can contact VMware about for hosting SQL Server
3. This article that explains the issueanddiscussesthe problem domain
4. Here is an presentation from VMWare about how to disable the disk write issue.
Posted by Steve Mann at 1:08 PM | Comments (0)
Hosting SQL Server on VMWare
One of our clients was investigating the logistics of running SQL Server on VMWare. In discussions with Microsoft, the response includedfour (4) important links. I personally have seen various SQL Server performance issues when virtualizing especially in a SharePoint environment and I would never trust that configuration. There have been many enhancements with SQL Server 2005 and now SQL Server 2008 in order to consolidate servers and take advantage of reducing hardware needs and license costs. A good SQL Server 2008 consolidation white paper can be found here.Here is the info from the Microsoft technician:
If you are running ESX V3.5 the latest hotfixes from VMware to disable write-caching are included in update3 and update 4.
1. The Microsoft Virtual Server support policy
2. The VMware knowledge base article that you can contact VMware about for hosting SQL Server
3. This article that explains the issueanddiscussesthe problem domain
4. Here is an presentation from VMWare about how to disable the disk write issue.
Posted by Steve Mann at 1:08 PM | Comments (0)
Hosting SQL Server on VMWare
One of our clients was investigating the logistics of running SQL Server on VMWare. In discussions with Microsoft, the response includedfour (4) important links. I personally have seen various SQL Server performance issues when virtualizing especially in a SharePoint environment and I would never trust that configuration. There have been many enhancements with SQL Server 2005 and now SQL Server 2008 in order to consolidate servers and take advantage of reducing hardware needs and license costs. A good SQL Server 2008 consolidation white paper can be found here.Here is the info from the Microsoft technician:
If you are running ESX V3.5 the latest hotfixes from VMware to disable write-caching are included in update3 and update 4.
1. The Microsoft Virtual Server support policy
2. The VMware knowledge base article that you can contact VMware about for hosting SQL Server
3. This article that explains the issueanddiscussesthe problem domain
4. Here is an presentation from VMWare about how to disable the disk write issue.
Posted by Steve Mann at 1:08 PM | Comments (0)
Hosting SQL Server on VMWare
One of our clients was investigating the logistics of running SQL Server on VMWare. In discussions with Microsoft, the response includedfour (4) important links. I personally have seen various SQL Server performance issues when virtualizing especially in a SharePoint environment and I would never trust that configuration. There have been many enhancements with SQL Server 2005 and now SQL Server 2008 in order to consolidate servers and take advantage of reducing hardware needs and license costs. A good SQL Server 2008 consolidation white paper can be found here.Here is the info from the Microsoft technician:
If you are running ESX V3.5 the latest hotfixes from VMware to disable write-caching are included in update3 and update 4.
1. The Microsoft Virtual Server support policy
2. The VMware knowledge base article that you can contact VMware about for hosting SQL Server
3. This article that explains the issueanddiscussesthe problem domain
4. Here is an presentation from VMWare about how to disable the disk write issue.
Posted by Steve Mann at 1:08 PM | Comments (0)
Hosting SQL Server on VMWare
One of our clients was investigating the logistics of running SQL Server on VMWare. In discussions with Microsoft, the response includedfour (4) important links. I personally have seen various SQL Server performance issues when virtualizing especially in a SharePoint environment and I would never trust that configuration. There have been many enhancements with SQL Server 2005 and now SQL Server 2008 in order to consolidate servers and take advantage of reducing hardware needs and license costs. A good SQL Server 2008 consolidation white paper can be found here.Here is the info from the Microsoft technician:
If you are running ESX V3.5 the latest hotfixes from VMware to disable write-caching are included in update3 and update 4.
1. The Microsoft Virtual Server support policy
2. The VMware knowledge base article that you can contact VMware about for hosting SQL Server
3. This article that explains the issueanddiscussesthe problem domain
4. Here is an presentation from VMWare about how to disable the disk write issue.
Posted by Steve Mann at 1:08 PM | Comments (0)
Hosting SQL Server on VMWare
One of our clients was investigating the logistics of running SQL Server on VMWare. In discussions with Microsoft, the response includedfour (4) important links. I personally have seen various SQL Server performance issues when virtualizing especially in a SharePoint environment and I would never trust that configuration. There have been many enhancements with SQL Server 2005 and now SQL Server 2008 in order to consolidate servers and take advantage of reducing hardware needs and license costs. A good SQL Server 2008 consolidation white paper can be found here.Here is the info from the Microsoft technician:
If you are running ESX V3.5 the latest hotfixes from VMware to disable write-caching are included in update3 and update 4.
1. The Microsoft Virtual Server support policy
2. The VMware knowledge base article that you can contact VMware about for hosting SQL Server
3. This article that explains the issueanddiscussesthe problem domain
4. Here is an presentation from VMWare about how to disable the disk write issue.
Posted by Steve Mann at 1:08 PM | Comments (0)
Hosting SQL Server on VMWare
One of our clients was investigating the logistics of running SQL Server on VMWare. In discussions with Microsoft, the response includedfour (4) important links. I personally have seen various SQL Server performance issues when virtualizing especially in a SharePoint environment and I would never trust that configuration. There have been many enhancements with SQL Server 2005 and now SQL Server 2008 in order to consolidate servers and take advantage of reducing hardware needs and license costs. A good SQL Server 2008 consolidation white paper can be found here.Here is the info from the Microsoft technician:
If you are running ESX V3.5 the latest hotfixes from VMware to disable write-caching are included in update3 and update 4.
1. The Microsoft Virtual Server support policy
2. The VMware knowledge base article that you can contact VMware about for hosting SQL Server
3. This article that explains the issueanddiscussesthe problem domain
4. Here is an presentation from VMWare about how to disable the disk write issue.
Posted by Steve Mann at 1:08 PM | Comments (0)
Hosting SQL Server on VMWare
One of our clients was investigating the logistics of running SQL Server on VMWare. In discussions with Microsoft, the response includedfour (4) important links. I personally have seen various SQL Server performance issues when virtualizing especially in a SharePoint environment and I would never trust that configuration. There have been many enhancements with SQL Server 2005 and now SQL Server 2008 in order to consolidate servers and take advantage of reducing hardware needs and license costs. A good SQL Server 2008 consolidation white paper can be found here.Here is the info from the Microsoft technician:
If you are running ESX V3.5 the latest hotfixes from VMware to disable write-caching are included in update3 and update 4.
1. The Microsoft Virtual Server support policy
2. The VMware knowledge base article that you can contact VMware about for hosting SQL Server
3. This article that explains the issueanddiscussesthe problem domain
4. Here is an presentation from VMWare about how to disable the disk write issue.
Posted by Steve Mann at 1:08 PM | Comments (0)
Hosting SQL Server on VMWare
One of our clients was investigating the logistics of running SQL Server on VMWare. In discussions with Microsoft, the response includedfour (4) important links. I personally have seen various SQL Server performance issues when virtualizing especially in a SharePoint environment and I would never trust that configuration. There have been many enhancements with SQL Server 2005 and now SQL Server 2008 in order to consolidate servers and take advantage of reducing hardware needs and license costs. A good SQL Server 2008 consolidation white paper can be found here.Here is the info from the Microsoft technician:
If you are running ESX V3.5 the latest hotfixes from VMware to disable write-caching are included in update3 and update 4.
1. The Microsoft Virtual Server support policy
2. The VMware knowledge base article that you can contact VMware about for hosting SQL Server
3. This article that explains the issueanddiscussesthe problem domain
4. Here is an presentation from VMWare about how to disable the disk write issue.
Posted by Steve Mann at 1:08 PM | Comments (0)
Hosting SQL Server on VMWare
One of our clients was investigating the logistics of running SQL Server on VMWare. In discussions with Microsoft, the response includedfour (4) important links. I personally have seen various SQL Server performance issues when virtualizing especially in a SharePoint environment and I would never trust that configuration. There have been many enhancements with SQL Server 2005 and now SQL Server 2008 in order to consolidate servers and take advantage of reducing hardware needs and license costs. A good SQL Server 2008 consolidation white paper can be found here.Here is the info from the Microsoft technician:
If you are running ESX V3.5 the latest hotfixes from VMware to disable write-caching are included in update3 and update 4.
1. The Microsoft Virtual Server support policy
2. The VMware knowledge base article that you can contact VMware about for hosting SQL Server
3. This article that explains the issueanddiscussesthe problem domain
4. Here is an presentation from VMWare about how to disable the disk write issue.
Posted by Steve Mann at 1:08 PM | Comments (0)
Hosting SQL Server on VMWare
One of our clients was investigating the logistics of running SQL Server on VMWare. In discussions with Microsoft, the response includedfour (4) important links. I personally have seen various SQL Server performance issues when virtualizing especially in a SharePoint environment and I would never trust that configuration. There have been many enhancements with SQL Server 2005 and now SQL Server 2008 in order to consolidate servers and take advantage of reducing hardware needs and license costs. A good SQL Server 2008 consolidation white paper can be found here.Here is the info from the Microsoft technician:
If you are running ESX V3.5 the latest hotfixes from VMware to disable write-caching are included in update3 and update 4.
1. The Microsoft Virtual Server support policy
2. The VMware knowledge base article that you can contact VMware about for hosting SQL Server
3. This article that explains the issueanddiscussesthe problem domain
4. Here is an presentation from VMWare about how to disable the disk write issue.
Posted by Steve Mann at 1:08 PM | Comments (0)
Hosting SQL Server on VMWare
One of our clients was investigating the logistics of running SQL Server on VMWare. In discussions with Microsoft, the response includedfour (4) important links. I personally have seen various SQL Server performance issues when virtualizing especially in a SharePoint environment and I would never trust that configuration. There have been many enhancements with SQL Server 2005 and now SQL Server 2008 in order to consolidate servers and take advantage of reducing hardware needs and license costs. A good SQL Server 2008 consolidation white paper can be found here.Here is the info from the Microsoft technician:
If you are running ESX V3.5 the latest hotfixes from VMware to disable write-caching are included in update3 and update 4.
1. The Microsoft Virtual Server support policy
2. The VMware knowledge base article that you can contact VMware about for hosting SQL Server
3. This article that explains the issueanddiscussesthe problem domain
4. Here is an presentation from VMWare about how to disable the disk write issue.
Posted by Steve Mann at 1:08 PM | Comments (0)
Hosting SQL Server on VMWare
One of our clients was investigating the logistics of running SQL Server on VMWare. In discussions with Microsoft, the response includedfour (4) important links. I personally have seen various SQL Server performance issues when virtualizing especially in a SharePoint environment and I would never trust that configuration. There have been many enhancements with SQL Server 2005 and now SQL Server 2008 in order to consolidate servers and take advantage of reducing hardware needs and license costs. A good SQL Server 2008 consolidation white paper can be found here.Here is the info from the Microsoft technician:
If you are running ESX V3.5 the latest hotfixes from VMware to disable write-caching are included in update3 and update 4.
1. The Microsoft Virtual Server support policy
2. The VMware knowledge base article that you can contact VMware about for hosting SQL Server
3. This article that explains the issueanddiscussesthe problem domain
4. Here is an presentation from VMWare about how to disable the disk write issue.
Posted by Steve Mann at 1:08 PM | Comments (0)
Hosting SQL Server on VMWare
One of our clients was investigating the logistics of running SQL Server on VMWare. In discussions with Microsoft, the response includedfour (4) important links. I personally have seen various SQL Server performance issues when virtualizing especially in a SharePoint environment and I would never trust that configuration. There have been many enhancements with SQL Server 2005 and now SQL Server 2008 in order to consolidate servers and take advantage of reducing hardware needs and license costs. A good SQL Server 2008 consolidation white paper can be found here.Here is the info from the Microsoft technician:
If you are running ESX V3.5 the latest hotfixes from VMware to disable write-caching are included in update3 and update 4.
1. The Microsoft Virtual Server support policy
2. The VMware knowledge base article that you can contact VMware about for hosting SQL Server
3. This article that explains the issueanddiscussesthe problem domain
4. Here is an presentation from VMWare about how to disable the disk write issue.
Posted by Steve Mann at 1:08 PM | Comments (0)
Hosting SQL Server on VMWare
One of our clients was investigating the logistics of running SQL Server on VMWare. In discussions with Microsoft, the response includedfour (4) important links. I personally have seen various SQL Server performance issues when virtualizing especially in a SharePoint environment and I would never trust that configuration. There have been many enhancements with SQL Server 2005 and now SQL Server 2008 in order to consolidate servers and take advantage of reducing hardware needs and license costs. A good SQL Server 2008 consolidation white paper can be found here.Here is the info from the Microsoft technician:
If you are running ESX V3.5 the latest hotfixes from VMware to disable write-caching are included in update3 and update 4.
1. The Microsoft Virtual Server support policy
2. The VMware knowledge base article that you can contact VMware about for hosting SQL Server
3. This article that explains the issueanddiscussesthe problem domain
4. Here is an presentation from VMWare about how to disable the disk write issue.
Posted by Steve Mann at 1:08 PM | Comments (0)
Hosting SQL Server on VMWare
One of our clients was investigating the logistics of running SQL Server on VMWare. In discussions with Microsoft, the response includedfour (4) important links. I personally have seen various SQL Server performance issues when virtualizing especially in a SharePoint environment and I would never trust that configuration. There have been many enhancements with SQL Server 2005 and now SQL Server 2008 in order to consolidate servers and take advantage of reducing hardware needs and license costs. A good SQL Server 2008 consolidation white paper can be found here.Here is the info from the Microsoft technician:
If you are running ESX V3.5 the latest hotfixes from VMware to disable write-caching are included in update3 and update 4.
1. The Microsoft Virtual Server support policy
2. The VMware knowledge base article that you can contact VMware about for hosting SQL Server
3. This article that explains the issueanddiscussesthe problem domain
4. Here is an presentation from VMWare about how to disable the disk write issue.
Posted by Steve Mann at 1:08 PM | Comments (0)
Hosting SQL Server on VMWare
One of our clients was investigating the logistics of running SQL Server on VMWare. In discussions with Microsoft, the response includedfour (4) important links. I personally have seen various SQL Server performance issues when virtualizing especially in a SharePoint environment and I would never trust that configuration. There have been many enhancements with SQL Server 2005 and now SQL Server 2008 in order to consolidate servers and take advantage of reducing hardware needs and license costs. A good SQL Server 2008 consolidation white paper can be found here.Here is the info from the Microsoft technician:
If you are running ESX V3.5 the latest hotfixes from VMware to disable write-caching are included in update3 and update 4.
1. The Microsoft Virtual Server support policy
2. The VMware knowledge base article that you can contact VMware about for hosting SQL Server
3. This article that explains the issueanddiscussesthe problem domain
4. Here is an presentation from VMWare about how to disable the disk write issue.
Posted by Steve Mann at 1:08 PM | Comments (0)
Hosting SQL Server on VMWare
One of our clients was investigating the logistics of running SQL Server on VMWare. In discussions with Microsoft, the response includedfour (4) important links. I personally have seen various SQL Server performance issues when virtualizing especially in a SharePoint environment and I would never trust that configuration. There have been many enhancements with SQL Server 2005 and now SQL Server 2008 in order to consolidate servers and take advantage of reducing hardware needs and license costs. A good SQL Server 2008 consolidation white paper can be found here.Here is the info from the Microsoft technician:
If you are running ESX V3.5 the latest hotfixes from VMware to disable write-caching are included in update3 and update 4.
1. The Microsoft Virtual Server support policy
2. The VMware knowledge base article that you can contact VMware about for hosting SQL Server
3. This article that explains the issueanddiscussesthe problem domain
4. Here is an presentation from VMWare about how to disable the disk write issue.
Posted by Steve Mann at 1:08 PM | Comments (0)
Hosting SQL Server on VMWare
One of our clients was investigating the logistics of running SQL Server on VMWare. In discussions with Microsoft, the response includedfour (4) important links. I personally have seen various SQL Server performance issues when virtualizing especially in a SharePoint environment and I would never trust that configuration. There have been many enhancements with SQL Server 2005 and now SQL Server 2008 in order to consolidate servers and take advantage of reducing hardware needs and license costs. A good SQL Server 2008 consolidation white paper can be found here.Here is the info from the Microsoft technician:
If you are running ESX V3.5 the latest hotfixes from VMware to disable write-caching are included in update3 and update 4.
1. The Microsoft Virtual Server support policy
2. The VMware knowledge base article that you can contact VMware about for hosting SQL Server
3. This article that explains the issueanddiscussesthe problem domain
4. Here is an presentation from VMWare about how to disable the disk write issue.
Posted by Steve Mann at 1:08 PM | Comments (0)
Hosting SQL Server on VMWare
One of our clients was investigating the logistics of running SQL Server on VMWare. In discussions with Microsoft, the response includedfour (4) important links. I personally have seen various SQL Server performance issues when virtualizing especially in a SharePoint environment and I would never trust that configuration. There have been many enhancements with SQL Server 2005 and now SQL Server 2008 in order to consolidate servers and take advantage of reducing hardware needs and license costs. A good SQL Server 2008 consolidation white paper can be found here.Here is the info from the Microsoft technician:
If you are running ESX V3.5 the latest hotfixes from VMware to disable write-caching are included in update3 and update 4.
1. The Microsoft Virtual Server support policy
2. The VMware knowledge base article that you can contact VMware about for hosting SQL Server
3. This article that explains the issueanddiscussesthe problem domain
4. Here is an presentation from VMWare about how to disable the disk write issue.
Posted by Steve Mann at 1:08 PM | Comments (0)
Hosting SQL Server on VMWare
One of our clients was investigating the logistics of running SQL Server on VMWare. In discussions with Microsoft, the response includedfour (4) important links. I personally have seen various SQL Server performance issues when virtualizing especially in a SharePoint environment and I would never trust that configuration. There have been many enhancements with SQL Server 2005 and now SQL Server 2008 in order to consolidate servers and take advantage of reducing hardware needs and license costs. A good SQL Server 2008 consolidation white paper can be found here.Here is the info from the Microsoft technician:
If you are running ESX V3.5 the latest hotfixes from VMware to disable write-caching are included in update3 and update 4.
1. The Microsoft Virtual Server support policy
2. The VMware knowledge base article that you can contact VMware about for hosting SQL Server
3. This article that explains the issueanddiscussesthe problem domain
4. Here is an presentation from VMWare about how to disable the disk write issue.
Posted by Steve Mann at 1:08 PM | Comments (0)
Hosting SQL Server on VMWare
One of our clients was investigating the logistics of running SQL Server on VMWare. In discussions with Microsoft, the response includedfour (4) important links. I personally have seen various SQL Server performance issues when virtualizing especially in a SharePoint environment and I would never trust that configuration. There have been many enhancements with SQL Server 2005 and now SQL Server 2008 in order to consolidate servers and take advantage of reducing hardware needs and license costs. A good SQL Server 2008 consolidation white paper can be found here.Here is the info from the Microsoft technician:
If you are running ESX V3.5 the latest hotfixes from VMware to disable write-caching are included in update3 and update 4.
1. The Microsoft Virtual Server support policy
2. The VMware knowledge base article that you can contact VMware about for hosting SQL Server
3. This article that explains the issueanddiscussesthe problem domain
4. Here is an presentation from VMWare about how to disable the disk write issue.
Posted by Steve Mann at 1:08 PM | Comments (0)
Hosting SQL Server on VMWare
One of our clients was investigating the logistics of running SQL Server on VMWare. In discussions with Microsoft, the response includedfour (4) important links. I personally have seen various SQL Server performance issues when virtualizing especially in a SharePoint environment and I would never trust that configuration. There have been many enhancements with SQL Server 2005 and now SQL Server 2008 in order to consolidate servers and take advantage of reducing hardware needs and license costs. A good SQL Server 2008 consolidation white paper can be found here.Here is the info from the Microsoft technician:
If you are running ESX V3.5 the latest hotfixes from VMware to disable write-caching are included in update3 and update 4.
1. The Microsoft Virtual Server support policy
2. The VMware knowledge base article that you can contact VMware about for hosting SQL Server
3. This article that explains the issueanddiscussesthe problem domain
4. Here is an presentation from VMWare about how to disable the disk write issue.
Posted by Steve Mann at 1:08 PM | Comments (0)
Hosting SQL Server on VMWare
One of our clients was investigating the logistics of running SQL Server on VMWare. In discussions with Microsoft, the response includedfour (4) important links. I personally have seen various SQL Server performance issues when virtualizing especially in a SharePoint environment and I would never trust that configuration. There have been many enhancements with SQL Server 2005 and now SQL Server 2008 in order to consolidate servers and take advantage of reducing hardware needs and license costs. A good SQL Server 2008 consolidation white paper can be found here.Here is the info from the Microsoft technician:
If you are running ESX V3.5 the latest hotfixes from VMware to disable write-caching are included in update3 and update 4.
1. The Microsoft Virtual Server support policy
2. The VMware knowledge base article that you can contact VMware about for hosting SQL Server
3. This article that explains the issueanddiscussesthe problem domain
4. Here is an presentation from VMWare about how to disable the disk write issue.
Posted by Steve Mann at 1:08 PM | Comments (0)
Hosting SQL Server on VMWare
One of our clients was investigating the logistics of running SQL Server on VMWare. In discussions with Microsoft, the response includedfour (4) important links. I personally have seen various SQL Server performance issues when virtualizing especially in a SharePoint environment and I would never trust that configuration. There have been many enhancements with SQL Server 2005 and now SQL Server 2008 in order to consolidate servers and take advantage of reducing hardware needs and license costs. A good SQL Server 2008 consolidation white paper can be found here.Here is the info from the Microsoft technician:
If you are running ESX V3.5 the latest hotfixes from VMware to disable write-caching are included in update3 and update 4.
1. The Microsoft Virtual Server support policy
2. The VMware knowledge base article that you can contact VMware about for hosting SQL Server
3. This article that explains the issueanddiscussesthe problem domain
4. Here is an presentation from VMWare about how to disable the disk write issue.
Posted by Steve Mann at 1:08 PM | Comments (0)
Hosting SQL Server on VMWare
One of our clients was investigating the logistics of running SQL Server on VMWare. In discussions with Microsoft, the response includedfour (4) important links. I personally have seen various SQL Server performance issues when virtualizing especially in a SharePoint environment and I would never trust that configuration. There have been many enhancements with SQL Server 2005 and now SQL Server 2008 in order to consolidate servers and take advantage of reducing hardware needs and license costs. A good SQL Server 2008 consolidation white paper can be found here.Here is the info from the Microsoft technician:
If you are running ESX V3.5 the latest hotfixes from VMware to disable write-caching are included in update3 and update 4.
1. The Microsoft Virtual Server support policy
2. The VMware knowledge base article that you can contact VMware about for hosting SQL Server
3. This article that explains the issueanddiscussesthe problem domain
4. Here is an presentation from VMWare about how to disable the disk write issue.
Posted by Steve Mann at 1:08 PM | Comments (0)
Hosting SQL Server on VMWare
One of our clients was investigating the logistics of running SQL Server on VMWare. In discussions with Microsoft, the response includedfour (4) important links. I personally have seen various SQL Server performance issues when virtualizing especially in a SharePoint environment and I would never trust that configuration. There have been many enhancements with SQL Server 2005 and now SQL Server 2008 in order to consolidate servers and take advantage of reducing hardware needs and license costs. A good SQL Server 2008 consolidation white paper can be found here.Here is the info from the Microsoft technician:
If you are running ESX V3.5 the latest hotfixes from VMware to disable write-caching are included in update3 and update 4.
1. The Microsoft Virtual Server support policy
2. The VMware knowledge base article that you can contact VMware about for hosting SQL Server
3. This article that explains the issueanddiscussesthe problem domain
4. Here is an presentation from VMWare about how to disable the disk write issue.
Posted by Steve Mann at 1:08 PM | Comments (0)
Hosting SQL Server on VMWare
One of our clients was investigating the logistics of running SQL Server on VMWare. In discussions with Microsoft, the response includedfour (4) important links. I personally have seen various SQL Server performance issues when virtualizing especially in a SharePoint environment and I would never trust that configuration. There have been many enhancements with SQL Server 2005 and now SQL Server 2008 in order to consolidate servers and take advantage of reducing hardware needs and license costs. A good SQL Server 2008 consolidation white paper can be found here.Here is the info from the Microsoft technician:
If you are running ESX V3.5 the latest hotfixes from VMware to disable write-caching are included in update3 and update 4.
1. The Microsoft Virtual Server support policy
2. The VMware knowledge base article that you can contact VMware about for hosting SQL Server
3. This article that explains the issueanddiscussesthe problem domain
4. Here is an presentation from VMWare about how to disable the disk write issue.
Posted by Steve Mann at 1:08 PM | Comments (0)
Hosting SQL Server on VMWare
One of our clients was investigating the logistics of running SQL Server on VMWare. In discussions with Microsoft, the response includedfour (4) important links. I personally have seen various SQL Server performance issues when virtualizing especially in a SharePoint environment and I would never trust that configuration. There have been many enhancements with SQL Server 2005 and now SQL Server 2008 in order to consolidate servers and take advantage of reducing hardware needs and license costs. A good SQL Server 2008 consolidation white paper can be found here.Here is the info from the Microsoft technician:
If you are running ESX V3.5 the latest hotfixes from VMware to disable write-caching are included in update3 and update 4.
1. The Microsoft Virtual Server support policy
2. The VMware knowledge base article that you can contact VMware about for hosting SQL Server
3. This article that explains the issueanddiscussesthe problem domain
4. Here is an presentation from VMWare about how to disable the disk write issue.
Posted by Steve Mann at 1:08 PM | Comments (0)
Hosting SQL Server on VMWare
One of our clients was investigating the logistics of running SQL Server on VMWare. In discussions with Microsoft, the response includedfour (4) important links. I personally have seen various SQL Server performance issues when virtualizing especially in a SharePoint environment and I would never trust that configuration. There have been many enhancements with SQL Server 2005 and now SQL Server 2008 in order to consolidate servers and take advantage of reducing hardware needs and license costs. A good SQL Server 2008 consolidation white paper can be found here.Here is the info from the Microsoft technician:
If you are running ESX V3.5 the latest hotfixes from VMware to disable write-caching are included in update3 and update 4.
1. The Microsoft Virtual Server support policy
2. The VMware knowledge base article that you can contact VMware about for hosting SQL Server
3. This article that explains the issueanddiscussesthe problem domain
4. Here is an presentation from VMWare about how to disable the disk write issue.
Posted by Steve Mann at 1:08 PM | Comments (0)
October 29, 2009
To MERGE or not to MERGE in SQL Server 2008
I was reviewing some demo material for the MERGE statement that Jim Pletscher put together. It was a standard scenario where we wanted to UPDATE, DELETE, or INSERT rows from a source table to a target table. A general overview of this is available here.Inserting is harmlessbut what if sometimes we don't want toupdate or deletesomething from our target table?
My first step was to add a new column to the target table. I named this column "DoNotTouch" and made it a bit defaulting to zero (0). I then set this value to one (1) on one of the target table rows.
So now how do we tell the MERGE statement to not touch anything where this bit is flipped on? You cannot use a WHERE clause in the MERGE statement. The answer is within the WHEN clause of the MERGE statement. All you need to do is add an additional condition to each WHEN for the update and delete operations:
(TargetTable is the name of the target table and SourceTable is the name of the source table)
WHEN MATCHED AND TargetTable.DoNotTouchlt;gt; 1 THEN
UPDATE SET TargetTable.FirstName = SourceTable.firstname,
TargetTable.LastName = SourceTable.lastname
WHEN NOT MATCHED BY SOURCE AND TargetTable.DoNotTouchlt;gt; 1 THEN
DELETE
So that worked! It did not touch the row where I set the DoNotTouch flag to one (1).
Posted by Steve Mann at 11:03 AM | Comments (0)
To MERGE or not to MERGE in SQL Server 2008
I was reviewing some demo material for the MERGE statement that Jim Pletscher put together. It was a standard scenario where we wanted to UPDATE, DELETE, or INSERT rows from a source table to a target table. A general overview of this is available here.Inserting is harmlessbut what if sometimes we don't want toupdate or deletesomething from our target table?
My first step was to add a new column to the target table. I named this column "DoNotTouch" and made it a bit defaulting to zero (0). I then set this value to one (1) on one of the target table rows.
So now how do we tell the MERGE statement to not touch anything where this bit is flipped on? You cannot use a WHERE clause in the MERGE statement. The answer is within the WHEN clause of the MERGE statement. All you need to do is add an additional condition to each WHEN for the update and delete operations:
(TargetTable is the name of the target table and SourceTable is the name of the source table)
WHEN MATCHED AND TargetTable.DoNotTouchlt;gt; 1 THEN
UPDATE SET TargetTable.FirstName = SourceTable.firstname,
TargetTable.LastName = SourceTable.lastname
WHEN NOT MATCHED BY SOURCE AND TargetTable.DoNotTouchlt;gt; 1 THEN
DELETE
So that worked! It did not touch the row where I set the DoNotTouch flag to one (1).
Posted by Steve Mann at 11:03 AM | Comments (0)
To MERGE or not to MERGE in SQL Server 2008
I was reviewing some demo material for the MERGE statement that Jim Pletscher put together. It was a standard scenario where we wanted to UPDATE, DELETE, or INSERT rows from a source table to a target table. A general overview of this is available here.Inserting is harmlessbut what if sometimes we don't want toupdate or deletesomething from our target table?
My first step was to add a new column to the target table. I named this column "DoNotTouch" and made it a bit defaulting to zero (0). I then set this value to one (1) on one of the target table rows.
So now how do we tell the MERGE statement to not touch anything where this bit is flipped on? You cannot use a WHERE clause in the MERGE statement. The answer is within the WHEN clause of the MERGE statement. All you need to do is add an additional condition to each WHEN for the update and delete operations:
(TargetTable is the name of the target table and SourceTable is the name of the source table)
WHEN MATCHED AND TargetTable.DoNotTouchlt;gt; 1 THEN
UPDATE SET TargetTable.FirstName = SourceTable.firstname,
TargetTable.LastName = SourceTable.lastname
WHEN NOT MATCHED BY SOURCE AND TargetTable.DoNotTouchlt;gt; 1 THEN
DELETE
So that worked! It did not touch the row where I set the DoNotTouch flag to one (1).
Posted by Steve Mann at 11:03 AM | Comments (0)
To MERGE or not to MERGE in SQL Server 2008
I was reviewing some demo material for the MERGE statement that Jim Pletscher put together. It was a standard scenario where we wanted to UPDATE, DELETE, or INSERT rows from a source table to a target table. A general overview of this is available here.Inserting is harmlessbut what if sometimes we don't want toupdate or deletesomething from our target table?
My first step was to add a new column to the target table. I named this column "DoNotTouch" and made it a bit defaulting to zero (0). I then set this value to one (1) on one of the target table rows.
So now how do we tell the MERGE statement to not touch anything where this bit is flipped on? You cannot use a WHERE clause in the MERGE statement. The answer is within the WHEN clause of the MERGE statement. All you need to do is add an additional condition to each WHEN for the update and delete operations:
(TargetTable is the name of the target table and SourceTable is the name of the source table)
WHEN MATCHED AND TargetTable.DoNotTouchlt;gt; 1 THEN
UPDATE SET TargetTable.FirstName = SourceTable.firstname,
TargetTable.LastName = SourceTable.lastname
WHEN NOT MATCHED BY SOURCE AND TargetTable.DoNotTouchlt;gt; 1 THEN
DELETE
So that worked! It did not touch the row where I set the DoNotTouch flag to one (1).
Posted by Steve Mann at 11:03 AM | Comments (0)
To MERGE or not to MERGE in SQL Server 2008
I was reviewing some demo material for the MERGE statement that Jim Pletscher put together. It was a standard scenario where we wanted to UPDATE, DELETE, or INSERT rows from a source table to a target table. A general overview of this is available here.Inserting is harmlessbut what if sometimes we don't want toupdate or deletesomething from our target table?
My first step was to add a new column to the target table. I named this column "DoNotTouch" and made it a bit defaulting to zero (0). I then set this value to one (1) on one of the target table rows.
So now how do we tell the MERGE statement to not touch anything where this bit is flipped on? You cannot use a WHERE clause in the MERGE statement. The answer is within the WHEN clause of the MERGE statement. All you need to do is add an additional condition to each WHEN for the update and delete operations:
(TargetTable is the name of the target table and SourceTable is the name of the source table)
WHEN MATCHED AND TargetTable.DoNotTouchlt;gt; 1 THEN
UPDATE SET TargetTable.FirstName = SourceTable.firstname,
TargetTable.LastName = SourceTable.lastname
WHEN NOT MATCHED BY SOURCE AND TargetTable.DoNotTouchlt;gt; 1 THEN
DELETE
So that worked! It did not touch the row where I set the DoNotTouch flag to one (1).
Posted by Steve Mann at 11:03 AM | Comments (0)
To MERGE or not to MERGE in SQL Server 2008
I was reviewing some demo material for the MERGE statement that Jim Pletscher put together. It was a standard scenario where we wanted to UPDATE, DELETE, or INSERT rows from a source table to a target table. A general overview of this is available here.Inserting is harmlessbut what if sometimes we don't want toupdate or deletesomething from our target table?
My first step was to add a new column to the target table. I named this column "DoNotTouch" and made it a bit defaulting to zero (0). I then set this value to one (1) on one of the target table rows.
So now how do we tell the MERGE statement to not touch anything where this bit is flipped on? You cannot use a WHERE clause in the MERGE statement. The answer is within the WHEN clause of the MERGE statement. All you need to do is add an additional condition to each WHEN for the update and delete operations:
(TargetTable is the name of the target table and SourceTable is the name of the source table)
WHEN MATCHED AND TargetTable.DoNotTouchlt;gt; 1 THEN
UPDATE SET TargetTable.FirstName = SourceTable.firstname,
TargetTable.LastName = SourceTable.lastname
WHEN NOT MATCHED BY SOURCE AND TargetTable.DoNotTouchlt;gt; 1 THEN
DELETE
So that worked! It did not touch the row where I set the DoNotTouch flag to one (1).
Posted by Steve Mann at 11:03 AM | Comments (0)
To MERGE or not to MERGE in SQL Server 2008
I was reviewing some demo material for the MERGE statement that Jim Pletscher put together. It was a standard scenario where we wanted to UPDATE, DELETE, or INSERT rows from a source table to a target table. A general overview of this is available here.Inserting is harmlessbut what if sometimes we don't want toupdate or deletesomething from our target table?
My first step was to add a new column to the target table. I named this column "DoNotTouch" and made it a bit defaulting to zero (0). I then set this value to one (1) on one of the target table rows.
So now how do we tell the MERGE statement to not touch anything where this bit is flipped on? You cannot use a WHERE clause in the MERGE statement. The answer is within the WHEN clause of the MERGE statement. All you need to do is add an additional condition to each WHEN for the update and delete operations:
(TargetTable is the name of the target table and SourceTable is the name of the source table)
WHEN MATCHED AND TargetTable.DoNotTouchlt;gt; 1 THEN
UPDATE SET TargetTable.FirstName = SourceTable.firstname,
TargetTable.LastName = SourceTable.lastname
WHEN NOT MATCHED BY SOURCE AND TargetTable.DoNotTouchlt;gt; 1 THEN
DELETE
So that worked! It did not touch the row where I set the DoNotTouch flag to one (1).
Posted by Steve Mann at 11:03 AM | Comments (0)
To MERGE or not to MERGE in SQL Server 2008
I was reviewing some demo material for the MERGE statement that Jim Pletscher put together. It was a standard scenario where we wanted to UPDATE, DELETE, or INSERT rows from a source table to a target table. A general overview of this is available here.Inserting is harmlessbut what if sometimes we don't want toupdate or deletesomething from our target table?
My first step was to add a new column to the target table. I named this column "DoNotTouch" and made it a bit defaulting to zero (0). I then set this value to one (1) on one of the target table rows.
So now how do we tell the MERGE statement to not touch anything where this bit is flipped on? You cannot use a WHERE clause in the MERGE statement. The answer is within the WHEN clause of the MERGE statement. All you need to do is add an additional condition to each WHEN for the update and delete operations:
(TargetTable is the name of the target table and SourceTable is the name of the source table)
WHEN MATCHED AND TargetTable.DoNotTouchlt;gt; 1 THEN
UPDATE SET TargetTable.FirstName = SourceTable.firstname,
TargetTable.LastName = SourceTable.lastname
WHEN NOT MATCHED BY SOURCE AND TargetTable.DoNotTouchlt;gt; 1 THEN
DELETE
So that worked! It did not touch the row where I set the DoNotTouch flag to one (1).
Posted by Steve Mann at 11:03 AM | Comments (0)
To MERGE or not to MERGE in SQL Server 2008
I was reviewing some demo material for the MERGE statement that Jim Pletscher put together. It was a standard scenario where we wanted to UPDATE, DELETE, or INSERT rows from a source table to a target table. A general overview of this is available here.Inserting is harmlessbut what if sometimes we don't want toupdate or deletesomething from our target table?
My first step was to add a new column to the target table. I named this column "DoNotTouch" and made it a bit defaulting to zero (0). I then set this value to one (1) on one of the target table rows.
So now how do we tell the MERGE statement to not touch anything where this bit is flipped on? You cannot use a WHERE clause in the MERGE statement. The answer is within the WHEN clause of the MERGE statement. All you need to do is add an additional condition to each WHEN for the update and delete operations:
(TargetTable is the name of the target table and SourceTable is the name of the source table)
WHEN MATCHED AND TargetTable.DoNotTouchlt;gt; 1 THEN
UPDATE SET TargetTable.FirstName = SourceTable.firstname,
TargetTable.LastName = SourceTable.lastname
WHEN NOT MATCHED BY SOURCE AND TargetTable.DoNotTouchlt;gt; 1 THEN
DELETE
So that worked! It did not touch the row where I set the DoNotTouch flag to one (1).
Posted by Steve Mann at 11:03 AM | Comments (0)
To MERGE or not to MERGE in SQL Server 2008
I was reviewing some demo material for the MERGE statement that Jim Pletscher put together. It was a standard scenario where we wanted to UPDATE, DELETE, or INSERT rows from a source table to a target table. A general overview of this is available here.Inserting is harmlessbut what if sometimes we don't want toupdate or deletesomething from our target table?
My first step was to add a new column to the target table. I named this column "DoNotTouch" and made it a bit defaulting to zero (0). I then set this value to one (1) on one of the target table rows.
So now how do we tell the MERGE statement to not touch anything where this bit is flipped on? You cannot use a WHERE clause in the MERGE statement. The answer is within the WHEN clause of the MERGE statement. All you need to do is add an additional condition to each WHEN for the update and delete operations:
(TargetTable is the name of the target table and SourceTable is the name of the source table)
WHEN MATCHED AND TargetTable.DoNotTouchlt;gt; 1 THEN
UPDATE SET TargetTable.FirstName = SourceTable.firstname,
TargetTable.LastName = SourceTable.lastname
WHEN NOT MATCHED BY SOURCE AND TargetTable.DoNotTouchlt;gt; 1 THEN
DELETE
So that worked! It did not touch the row where I set the DoNotTouch flag to one (1).
Posted by Steve Mann at 11:03 AM | Comments (0)
To MERGE or not to MERGE in SQL Server 2008
I was reviewing some demo material for the MERGE statement that Jim Pletscher put together. It was a standard scenario where we wanted to UPDATE, DELETE, or INSERT rows from a source table to a target table. A general overview of this is available here.Inserting is harmlessbut what if sometimes we don't want toupdate or deletesomething from our target table?
My first step was to add a new column to the target table. I named this column "DoNotTouch" and made it a bit defaulting to zero (0). I then set this value to one (1) on one of the target table rows.
So now how do we tell the MERGE statement to not touch anything where this bit is flipped on? You cannot use a WHERE clause in the MERGE statement. The answer is within the WHEN clause of the MERGE statement. All you need to do is add an additional condition to each WHEN for the update and delete operations:
(TargetTable is the name of the target table and SourceTable is the name of the source table)
WHEN MATCHED AND TargetTable.DoNotTouchlt;gt; 1 THEN
UPDATE SET TargetTable.FirstName = SourceTable.firstname,
TargetTable.LastName = SourceTable.lastname
WHEN NOT MATCHED BY SOURCE AND TargetTable.DoNotTouchlt;gt; 1 THEN
DELETE
So that worked! It did not touch the row where I set the DoNotTouch flag to one (1).
Posted by Steve Mann at 11:03 AM | Comments (0)
To MERGE or not to MERGE in SQL Server 2008
I was reviewing some demo material for the MERGE statement that Jim Pletscher put together. It was a standard scenario where we wanted to UPDATE, DELETE, or INSERT rows from a source table to a target table. A general overview of this is available here.Inserting is harmlessbut what if sometimes we don't want toupdate or deletesomething from our target table?
My first step was to add a new column to the target table. I named this column "DoNotTouch" and made it a bit defaulting to zero (0). I then set this value to one (1) on one of the target table rows.
So now how do we tell the MERGE statement to not touch anything where this bit is flipped on? You cannot use a WHERE clause in the MERGE statement. The answer is within the WHEN clause of the MERGE statement. All you need to do is add an additional condition to each WHEN for the update and delete operations:
(TargetTable is the name of the target table and SourceTable is the name of the source table)
WHEN MATCHED AND TargetTable.DoNotTouchlt;gt; 1 THEN
UPDATE SET TargetTable.FirstName = SourceTable.firstname,
TargetTable.LastName = SourceTable.lastname
WHEN NOT MATCHED BY SOURCE AND TargetTable.DoNotTouchlt;gt; 1 THEN
DELETE
So that worked! It did not touch the row where I set the DoNotTouch flag to one (1).
Posted by Steve Mann at 11:03 AM | Comments (0)
To MERGE or not to MERGE in SQL Server 2008
I was reviewing some demo material for the MERGE statement that Jim Pletscher put together. It was a standard scenario where we wanted to UPDATE, DELETE, or INSERT rows from a source table to a target table. A general overview of this is available here.Inserting is harmlessbut what if sometimes we don't want toupdate or deletesomething from our target table?
My first step was to add a new column to the target table. I named this column "DoNotTouch" and made it a bit defaulting to zero (0). I then set this value to one (1) on one of the target table rows.
So now how do we tell the MERGE statement to not touch anything where this bit is flipped on? You cannot use a WHERE clause in the MERGE statement. The answer is within the WHEN clause of the MERGE statement. All you need to do is add an additional condition to each WHEN for the update and delete operations:
(TargetTable is the name of the target table and SourceTable is the name of the source table)
WHEN MATCHED AND TargetTable.DoNotTouchlt;gt; 1 THEN
UPDATE SET TargetTable.FirstName = SourceTable.firstname,
TargetTable.LastName = SourceTable.lastname
WHEN NOT MATCHED BY SOURCE AND TargetTable.DoNotTouchlt;gt; 1 THEN
DELETE
So that worked! It did not touch the row where I set the DoNotTouch flag to one (1).
Posted by Steve Mann at 11:03 AM | Comments (0)
To MERGE or not to MERGE in SQL Server 2008
I was reviewing some demo material for the MERGE statement that Jim Pletscher put together. It was a standard scenario where we wanted to UPDATE, DELETE, or INSERT rows from a source table to a target table. A general overview of this is available here.Inserting is harmlessbut what if sometimes we don't want toupdate or deletesomething from our target table?
My first step was to add a new column to the target table. I named this column "DoNotTouch" and made it a bit defaulting to zero (0). I then set this value to one (1) on one of the target table rows.
So now how do we tell the MERGE statement to not touch anything where this bit is flipped on? You cannot use a WHERE clause in the MERGE statement. The answer is within the WHEN clause of the MERGE statement. All you need to do is add an additional condition to each WHEN for the update and delete operations:
(TargetTable is the name of the target table and SourceTable is the name of the source table)
WHEN MATCHED AND TargetTable.DoNotTouchlt;gt; 1 THEN
UPDATE SET TargetTable.FirstName = SourceTable.firstname,
TargetTable.LastName = SourceTable.lastname
WHEN NOT MATCHED BY SOURCE AND TargetTable.DoNotTouchlt;gt; 1 THEN
DELETE
So that worked! It did not touch the row where I set the DoNotTouch flag to one (1).
Posted by Steve Mann at 11:03 AM | Comments (0)
To MERGE or not to MERGE in SQL Server 2008
I was reviewing some demo material for the MERGE statement that Jim Pletscher put together. It was a standard scenario where we wanted to UPDATE, DELETE, or INSERT rows from a source table to a target table. A general overview of this is available here.Inserting is harmlessbut what if sometimes we don't want toupdate or deletesomething from our target table?
My first step was to add a new column to the target table. I named this column "DoNotTouch" and made it a bit defaulting to zero (0). I then set this value to one (1) on one of the target table rows.
So now how do we tell the MERGE statement to not touch anything where this bit is flipped on? You cannot use a WHERE clause in the MERGE statement. The answer is within the WHEN clause of the MERGE statement. All you need to do is add an additional condition to each WHEN for the update and delete operations:
(TargetTable is the name of the target table and SourceTable is the name of the source table)
WHEN MATCHED AND TargetTable.DoNotTouchlt;gt; 1 THEN
UPDATE SET TargetTable.FirstName = SourceTable.firstname,
TargetTable.LastName = SourceTable.lastname
WHEN NOT MATCHED BY SOURCE AND TargetTable.DoNotTouchlt;gt; 1 THEN
DELETE
So that worked! It did not touch the row where I set the DoNotTouch flag to one (1).
Posted by Steve Mann at 11:03 AM | Comments (0)
To MERGE or not to MERGE in SQL Server 2008
I was reviewing some demo material for the MERGE statement that Jim Pletscher put together. It was a standard scenario where we wanted to UPDATE, DELETE, or INSERT rows from a source table to a target table. A general overview of this is available here.Inserting is harmlessbut what if sometimes we don't want toupdate or deletesomething from our target table?
My first step was to add a new column to the target table. I named this column "DoNotTouch" and made it a bit defaulting to zero (0). I then set this value to one (1) on one of the target table rows.
So now how do we tell the MERGE statement to not touch anything where this bit is flipped on? You cannot use a WHERE clause in the MERGE statement. The answer is within the WHEN clause of the MERGE statement. All you need to do is add an additional condition to each WHEN for the update and delete operations:
(TargetTable is the name of the target table and SourceTable is the name of the source table)
WHEN MATCHED AND TargetTable.DoNotTouchlt;gt; 1 THEN
UPDATE SET TargetTable.FirstName = SourceTable.firstname,
TargetTable.LastName = SourceTable.lastname
WHEN NOT MATCHED BY SOURCE AND TargetTable.DoNotTouchlt;gt; 1 THEN
DELETE
So that worked! It did not touch the row where I set the DoNotTouch flag to one (1).
Posted by Steve Mann at 11:03 AM | Comments (0)
To MERGE or not to MERGE in SQL Server 2008
I was reviewing some demo material for the MERGE statement that Jim Pletscher put together. It was a standard scenario where we wanted to UPDATE, DELETE, or INSERT rows from a source table to a target table. A general overview of this is available here.Inserting is harmlessbut what if sometimes we don't want toupdate or deletesomething from our target table?
My first step was to add a new column to the target table. I named this column "DoNotTouch" and made it a bit defaulting to zero (0). I then set this value to one (1) on one of the target table rows.
So now how do we tell the MERGE statement to not touch anything where this bit is flipped on? You cannot use a WHERE clause in the MERGE statement. The answer is within the WHEN clause of the MERGE statement. All you need to do is add an additional condition to each WHEN for the update and delete operations:
(TargetTable is the name of the target table and SourceTable is the name of the source table)
WHEN MATCHED AND TargetTable.DoNotTouchlt;gt; 1 THEN
UPDATE SET TargetTable.FirstName = SourceTable.firstname,
TargetTable.LastName = SourceTable.lastname
WHEN NOT MATCHED BY SOURCE AND TargetTable.DoNotTouchlt;gt; 1 THEN
DELETE
So that worked! It did not touch the row where I set the DoNotTouch flag to one (1).
Posted by Steve Mann at 11:03 AM | Comments (0)
To MERGE or not to MERGE in SQL Server 2008
I was reviewing some demo material for the MERGE statement that Jim Pletscher put together. It was a standard scenario where we wanted to UPDATE, DELETE, or INSERT rows from a source table to a target table. A general overview of this is available here.Inserting is harmlessbut what if sometimes we don't want toupdate or deletesomething from our target table?
My first step was to add a new column to the target table. I named this column "DoNotTouch" and made it a bit defaulting to zero (0). I then set this value to one (1) on one of the target table rows.
So now how do we tell the MERGE statement to not touch anything where this bit is flipped on? You cannot use a WHERE clause in the MERGE statement. The answer is within the WHEN clause of the MERGE statement. All you need to do is add an additional condition to each WHEN for the update and delete operations:
(TargetTable is the name of the target table and SourceTable is the name of the source table)
WHEN MATCHED AND TargetTable.DoNotTouchlt;gt; 1 THEN
UPDATE SET TargetTable.FirstName = SourceTable.firstname,
TargetTable.LastName = SourceTable.lastname
WHEN NOT MATCHED BY SOURCE AND TargetTable.DoNotTouchlt;gt; 1 THEN
DELETE
So that worked! It did not touch the row where I set the DoNotTouch flag to one (1).
Posted by Steve Mann at 11:03 AM | Comments (0)
To MERGE or not to MERGE in SQL Server 2008
I was reviewing some demo material for the MERGE statement that Jim Pletscher put together. It was a standard scenario where we wanted to UPDATE, DELETE, or INSERT rows from a source table to a target table. A general overview of this is available here.Inserting is harmlessbut what if sometimes we don't want toupdate or deletesomething from our target table?
My first step was to add a new column to the target table. I named this column "DoNotTouch" and made it a bit defaulting to zero (0). I then set this value to one (1) on one of the target table rows.
So now how do we tell the MERGE statement to not touch anything where this bit is flipped on? You cannot use a WHERE clause in the MERGE statement. The answer is within the WHEN clause of the MERGE statement. All you need to do is add an additional condition to each WHEN for the update and delete operations:
(TargetTable is the name of the target table and SourceTable is the name of the source table)
WHEN MATCHED AND TargetTable.DoNotTouchlt;gt; 1 THEN
UPDATE SET TargetTable.FirstName = SourceTable.firstname,
TargetTable.LastName = SourceTable.lastname
WHEN NOT MATCHED BY SOURCE AND TargetTable.DoNotTouchlt;gt; 1 THEN
DELETE
So that worked! It did not touch the row where I set the DoNotTouch flag to one (1).
Posted by Steve Mann at 11:03 AM | Comments (0)
To MERGE or not to MERGE in SQL Server 2008
I was reviewing some demo material for the MERGE statement that Jim Pletscher put together. It was a standard scenario where we wanted to UPDATE, DELETE, or INSERT rows from a source table to a target table. A general overview of this is available here.Inserting is harmlessbut what if sometimes we don't want toupdate or deletesomething from our target table?
My first step was to add a new column to the target table. I named this column "DoNotTouch" and made it a bit defaulting to zero (0). I then set this value to one (1) on one of the target table rows.
So now how do we tell the MERGE statement to not touch anything where this bit is flipped on? You cannot use a WHERE clause in the MERGE statement. The answer is within the WHEN clause of the MERGE statement. All you need to do is add an additional condition to each WHEN for the update and delete operations:
(TargetTable is the name of the target table and SourceTable is the name of the source table)
WHEN MATCHED AND TargetTable.DoNotTouchlt;gt; 1 THEN
UPDATE SET TargetTable.FirstName = SourceTable.firstname,
TargetTable.LastName = SourceTable.lastname
WHEN NOT MATCHED BY SOURCE AND TargetTable.DoNotTouchlt;gt; 1 THEN
DELETE
So that worked! It did not touch the row where I set the DoNotTouch flag to one (1).
Posted by Steve Mann at 11:03 AM | Comments (0)
To MERGE or not to MERGE in SQL Server 2008
I was reviewing some demo material for the MERGE statement that Jim Pletscher put together. It was a standard scenario where we wanted to UPDATE, DELETE, or INSERT rows from a source table to a target table. A general overview of this is available here.Inserting is harmlessbut what if sometimes we don't want toupdate or deletesomething from our target table?
My first step was to add a new column to the target table. I named this column "DoNotTouch" and made it a bit defaulting to zero (0). I then set this value to one (1) on one of the target table rows.
So now how do we tell the MERGE statement to not touch anything where this bit is flipped on? You cannot use a WHERE clause in the MERGE statement. The answer is within the WHEN clause of the MERGE statement. All you need to do is add an additional condition to each WHEN for the update and delete operations:
(TargetTable is the name of the target table and SourceTable is the name of the source table)
WHEN MATCHED AND TargetTable.DoNotTouchlt;gt; 1 THEN
UPDATE SET TargetTable.FirstName = SourceTable.firstname,
TargetTable.LastName = SourceTable.lastname
WHEN NOT MATCHED BY SOURCE AND TargetTable.DoNotTouchlt;gt; 1 THEN
DELETE
So that worked! It did not touch the row where I set the DoNotTouch flag to one (1).
Posted by Steve Mann at 11:03 AM | Comments (0)
To MERGE or not to MERGE in SQL Server 2008
I was reviewing some demo material for the MERGE statement that Jim Pletscher put together. It was a standard scenario where we wanted to UPDATE, DELETE, or INSERT rows from a source table to a target table. A general overview of this is available here.Inserting is harmlessbut what if sometimes we don't want toupdate or deletesomething from our target table?
My first step was to add a new column to the target table. I named this column "DoNotTouch" and made it a bit defaulting to zero (0). I then set this value to one (1) on one of the target table rows.
So now how do we tell the MERGE statement to not touch anything where this bit is flipped on? You cannot use a WHERE clause in the MERGE statement. The answer is within the WHEN clause of the MERGE statement. All you need to do is add an additional condition to each WHEN for the update and delete operations:
(TargetTable is the name of the target table and SourceTable is the name of the source table)
WHEN MATCHED AND TargetTable.DoNotTouchlt;gt; 1 THEN
UPDATE SET TargetTable.FirstName = SourceTable.firstname,
TargetTable.LastName = SourceTable.lastname
WHEN NOT MATCHED BY SOURCE AND TargetTable.DoNotTouchlt;gt; 1 THEN
DELETE
So that worked! It did not touch the row where I set the DoNotTouch flag to one (1).
Posted by Steve Mann at 11:03 AM | Comments (0)
To MERGE or not to MERGE in SQL Server 2008
I was reviewing some demo material for the MERGE statement that Jim Pletscher put together. It was a standard scenario where we wanted to UPDATE, DELETE, or INSERT rows from a source table to a target table. A general overview of this is available here.Inserting is harmlessbut what if sometimes we don't want toupdate or deletesomething from our target table?
My first step was to add a new column to the target table. I named this column "DoNotTouch" and made it a bit defaulting to zero (0). I then set this value to one (1) on one of the target table rows.
So now how do we tell the MERGE statement to not touch anything where this bit is flipped on? You cannot use a WHERE clause in the MERGE statement. The answer is within the WHEN clause of the MERGE statement. All you need to do is add an additional condition to each WHEN for the update and delete operations:
(TargetTable is the name of the target table and SourceTable is the name of the source table)
WHEN MATCHED AND TargetTable.DoNotTouchlt;gt; 1 THEN
UPDATE SET TargetTable.FirstName = SourceTable.firstname,
TargetTable.LastName = SourceTable.lastname
WHEN NOT MATCHED BY SOURCE AND TargetTable.DoNotTouchlt;gt; 1 THEN
DELETE
So that worked! It did not touch the row where I set the DoNotTouch flag to one (1).
Posted by Steve Mann at 11:03 AM | Comments (0)
To MERGE or not to MERGE in SQL Server 2008
I was reviewing some demo material for the MERGE statement that Jim Pletscher put together. It was a standard scenario where we wanted to UPDATE, DELETE, or INSERT rows from a source table to a target table. A general overview of this is available here.Inserting is harmlessbut what if sometimes we don't want toupdate or deletesomething from our target table?
My first step was to add a new column to the target table. I named this column "DoNotTouch" and made it a bit defaulting to zero (0). I then set this value to one (1) on one of the target table rows.
So now how do we tell the MERGE statement to not touch anything where this bit is flipped on? You cannot use a WHERE clause in the MERGE statement. The answer is within the WHEN clause of the MERGE statement. All you need to do is add an additional condition to each WHEN for the update and delete operations:
(TargetTable is the name of the target table and SourceTable is the name of the source table)
WHEN MATCHED AND TargetTable.DoNotTouchlt;gt; 1 THEN
UPDATE SET TargetTable.FirstName = SourceTable.firstname,
TargetTable.LastName = SourceTable.lastname
WHEN NOT MATCHED BY SOURCE AND TargetTable.DoNotTouchlt;gt; 1 THEN
DELETE
So that worked! It did not touch the row where I set the DoNotTouch flag to one (1).
Posted by Steve Mann at 11:03 AM | Comments (0)
To MERGE or not to MERGE in SQL Server 2008
I was reviewing some demo material for the MERGE statement that Jim Pletscher put together. It was a standard scenario where we wanted to UPDATE, DELETE, or INSERT rows from a source table to a target table. A general overview of this is available here.Inserting is harmlessbut what if sometimes we don't want toupdate or deletesomething from our target table?
My first step was to add a new column to the target table. I named this column "DoNotTouch" and made it a bit defaulting to zero (0). I then set this value to one (1) on one of the target table rows.
So now how do we tell the MERGE statement to not touch anything where this bit is flipped on? You cannot use a WHERE clause in the MERGE statement. The answer is within the WHEN clause of the MERGE statement. All you need to do is add an additional condition to each WHEN for the update and delete operations:
(TargetTable is the name of the target table and SourceTable is the name of the source table)
WHEN MATCHED AND TargetTable.DoNotTouchlt;gt; 1 THEN
UPDATE SET TargetTable.FirstName = SourceTable.firstname,
TargetTable.LastName = SourceTable.lastname
WHEN NOT MATCHED BY SOURCE AND TargetTable.DoNotTouchlt;gt; 1 THEN
DELETE
So that worked! It did not touch the row where I set the DoNotTouch flag to one (1).
Posted by Steve Mann at 11:03 AM | Comments (0)
To MERGE or not to MERGE in SQL Server 2008
I was reviewing some demo material for the MERGE statement that Jim Pletscher put together. It was a standard scenario where we wanted to UPDATE, DELETE, or INSERT rows from a source table to a target table. A general overview of this is available here.Inserting is harmlessbut what if sometimes we don't want toupdate or deletesomething from our target table?
My first step was to add a new column to the target table. I named this column "DoNotTouch" and made it a bit defaulting to zero (0). I then set this value to one (1) on one of the target table rows.
So now how do we tell the MERGE statement to not touch anything where this bit is flipped on? You cannot use a WHERE clause in the MERGE statement. The answer is within the WHEN clause of the MERGE statement. All you need to do is add an additional condition to each WHEN for the update and delete operations:
(TargetTable is the name of the target table and SourceTable is the name of the source table)
WHEN MATCHED AND TargetTable.DoNotTouchlt;gt; 1 THEN
UPDATE SET TargetTable.FirstName = SourceTable.firstname,
TargetTable.LastName = SourceTable.lastname
WHEN NOT MATCHED BY SOURCE AND TargetTable.DoNotTouchlt;gt; 1 THEN
DELETE
So that worked! It did not touch the row where I set the DoNotTouch flag to one (1).
Posted by Steve Mann at 11:03 AM | Comments (0)
To MERGE or not to MERGE in SQL Server 2008
I was reviewing some demo material for the MERGE statement that Jim Pletscher put together. It was a standard scenario where we wanted to UPDATE, DELETE, or INSERT rows from a source table to a target table. A general overview of this is available here.Inserting is harmlessbut what if sometimes we don't want toupdate or deletesomething from our target table?
My first step was to add a new column to the target table. I named this column "DoNotTouch" and made it a bit defaulting to zero (0). I then set this value to one (1) on one of the target table rows.
So now how do we tell the MERGE statement to not touch anything where this bit is flipped on? You cannot use a WHERE clause in the MERGE statement. The answer is within the WHEN clause of the MERGE statement. All you need to do is add an additional condition to each WHEN for the update and delete operations:
(TargetTable is the name of the target table and SourceTable is the name of the source table)
WHEN MATCHED AND TargetTable.DoNotTouchlt;gt; 1 THEN
UPDATE SET TargetTable.FirstName = SourceTable.firstname,
TargetTable.LastName = SourceTable.lastname
WHEN NOT MATCHED BY SOURCE AND TargetTable.DoNotTouchlt;gt; 1 THEN
DELETE
So that worked! It did not touch the row where I set the DoNotTouch flag to one (1).
Posted by Steve Mann at 11:03 AM | Comments (0)
To MERGE or not to MERGE in SQL Server 2008
I was reviewing some demo material for the MERGE statement that Jim Pletscher put together. It was a standard scenario where we wanted to UPDATE, DELETE, or INSERT rows from a source table to a target table. A general overview of this is available here.Inserting is harmlessbut what if sometimes we don't want toupdate or deletesomething from our target table?
My first step was to add a new column to the target table. I named this column "DoNotTouch" and made it a bit defaulting to zero (0). I then set this value to one (1) on one of the target table rows.
So now how do we tell the MERGE statement to not touch anything where this bit is flipped on? You cannot use a WHERE clause in the MERGE statement. The answer is within the WHEN clause of the MERGE statement. All you need to do is add an additional condition to each WHEN for the update and delete operations:
(TargetTable is the name of the target table and SourceTable is the name of the source table)
WHEN MATCHED AND TargetTable.DoNotTouchlt;gt; 1 THEN
UPDATE SET TargetTable.FirstName = SourceTable.firstname,
TargetTable.LastName = SourceTable.lastname
WHEN NOT MATCHED BY SOURCE AND TargetTable.DoNotTouchlt;gt; 1 THEN
DELETE
So that worked! It did not touch the row where I set the DoNotTouch flag to one (1).
Posted by Steve Mann at 11:03 AM | Comments (0)
To MERGE or not to MERGE in SQL Server 2008
I was reviewing some demo material for the MERGE statement that Jim Pletscher put together. It was a standard scenario where we wanted to UPDATE, DELETE, or INSERT rows from a source table to a target table. A general overview of this is available here.Inserting is harmlessbut what if sometimes we don't want toupdate or deletesomething from our target table?
My first step was to add a new column to the target table. I named this column "DoNotTouch" and made it a bit defaulting to zero (0). I then set this value to one (1) on one of the target table rows.
So now how do we tell the MERGE statement to not touch anything where this bit is flipped on? You cannot use a WHERE clause in the MERGE statement. The answer is within the WHEN clause of the MERGE statement. All you need to do is add an additional condition to each WHEN for the update and delete operations:
(TargetTable is the name of the target table and SourceTable is the name of the source table)
WHEN MATCHED AND TargetTable.DoNotTouchlt;gt; 1 THEN
UPDATE SET TargetTable.FirstName = SourceTable.firstname,
TargetTable.LastName = SourceTable.lastname
WHEN NOT MATCHED BY SOURCE AND TargetTable.DoNotTouchlt;gt; 1 THEN
DELETE
So that worked! It did not touch the row where I set the DoNotTouch flag to one (1).
Posted by Steve Mann at 11:03 AM | Comments (0)
To MERGE or not to MERGE in SQL Server 2008
I was reviewing some demo material for the MERGE statement that Jim Pletscher put together. It was a standard scenario where we wanted to UPDATE, DELETE, or INSERT rows from a source table to a target table. A general overview of this is available here.Inserting is harmlessbut what if sometimes we don't want toupdate or deletesomething from our target table?
My first step was to add a new column to the target table. I named this column "DoNotTouch" and made it a bit defaulting to zero (0). I then set this value to one (1) on one of the target table rows.
So now how do we tell the MERGE statement to not touch anything where this bit is flipped on? You cannot use a WHERE clause in the MERGE statement. The answer is within the WHEN clause of the MERGE statement. All you need to do is add an additional condition to each WHEN for the update and delete operations:
(TargetTable is the name of the target table and SourceTable is the name of the source table)
WHEN MATCHED AND TargetTable.DoNotTouchlt;gt; 1 THEN
UPDATE SET TargetTable.FirstName = SourceTable.firstname,
TargetTable.LastName = SourceTable.lastname
WHEN NOT MATCHED BY SOURCE AND TargetTable.DoNotTouchlt;gt; 1 THEN
DELETE
So that worked! It did not touch the row where I set the DoNotTouch flag to one (1).
Posted by Steve Mann at 11:03 AM | Comments (0)
To MERGE or not to MERGE in SQL Server 2008
I was reviewing some demo material for the MERGE statement that Jim Pletscher put together. It was a standard scenario where we wanted to UPDATE, DELETE, or INSERT rows from a source table to a target table. A general overview of this is available here.Inserting is harmlessbut what if sometimes we don't want toupdate or deletesomething from our target table?
My first step was to add a new column to the target table. I named this column "DoNotTouch" and made it a bit defaulting to zero (0). I then set this value to one (1) on one of the target table rows.
So now how do we tell the MERGE statement to not touch anything where this bit is flipped on? You cannot use a WHERE clause in the MERGE statement. The answer is within the WHEN clause of the MERGE statement. All you need to do is add an additional condition to each WHEN for the update and delete operations:
(TargetTable is the name of the target table and SourceTable is the name of the source table)
WHEN MATCHED AND TargetTable.DoNotTouchlt;gt; 1 THEN
UPDATE SET TargetTable.FirstName = SourceTable.firstname,
TargetTable.LastName = SourceTable.lastname
WHEN NOT MATCHED BY SOURCE AND TargetTable.DoNotTouchlt;gt; 1 THEN
DELETE
So that worked! It did not touch the row where I set the DoNotTouch flag to one (1).
Posted by Steve Mann at 11:03 AM | Comments (0)
To MERGE or not to MERGE in SQL Server 2008
I was reviewing some demo material for the MERGE statement that Jim Pletscher put together. It was a standard scenario where we wanted to UPDATE, DELETE, or INSERT rows from a source table to a target table. A general overview of this is available here.Inserting is harmlessbut what if sometimes we don't want toupdate or deletesomething from our target table?
My first step was to add a new column to the target table. I named this column "DoNotTouch" and made it a bit defaulting to zero (0). I then set this value to one (1) on one of the target table rows.
So now how do we tell the MERGE statement to not touch anything where this bit is flipped on? You cannot use a WHERE clause in the MERGE statement. The answer is within the WHEN clause of the MERGE statement. All you need to do is add an additional condition to each WHEN for the update and delete operations:
(TargetTable is the name of the target table and SourceTable is the name of the source table)
WHEN MATCHED AND TargetTable.DoNotTouchlt;gt; 1 THEN
UPDATE SET TargetTable.FirstName = SourceTable.firstname,
TargetTable.LastName = SourceTable.lastname
WHEN NOT MATCHED BY SOURCE AND TargetTable.DoNotTouchlt;gt; 1 THEN
DELETE
So that worked! It did not touch the row where I set the DoNotTouch flag to one (1).
Posted by Steve Mann at 11:03 AM | Comments (0)
To MERGE or not to MERGE in SQL Server 2008
I was reviewing some demo material for the MERGE statement that Jim Pletscher put together. It was a standard scenario where we wanted to UPDATE, DELETE, or INSERT rows from a source table to a target table. A general overview of this is available here.Inserting is harmlessbut what if sometimes we don't want toupdate or deletesomething from our target table?
My first step was to add a new column to the target table. I named this column "DoNotTouch" and made it a bit defaulting to zero (0). I then set this value to one (1) on one of the target table rows.
So now how do we tell the MERGE statement to not touch anything where this bit is flipped on? You cannot use a WHERE clause in the MERGE statement. The answer is within the WHEN clause of the MERGE statement. All you need to do is add an additional condition to each WHEN for the update and delete operations:
(TargetTable is the name of the target table and SourceTable is the name of the source table)
WHEN MATCHED AND TargetTable.DoNotTouchlt;gt; 1 THEN
UPDATE SET TargetTable.FirstName = SourceTable.firstname,
TargetTable.LastName = SourceTable.lastname
WHEN NOT MATCHED BY SOURCE AND TargetTable.DoNotTouchlt;gt; 1 THEN
DELETE
So that worked! It did not touch the row where I set the DoNotTouch flag to one (1).
Posted by Steve Mann at 11:03 AM | Comments (0)
To MERGE or not to MERGE in SQL Server 2008
I was reviewing some demo material for the MERGE statement that Jim Pletscher put together. It was a standard scenario where we wanted to UPDATE, DELETE, or INSERT rows from a source table to a target table. A general overview of this is available here.Inserting is harmlessbut what if sometimes we don't want toupdate or deletesomething from our target table?
My first step was to add a new column to the target table. I named this column "DoNotTouch" and made it a bit defaulting to zero (0). I then set this value to one (1) on one of the target table rows.
So now how do we tell the MERGE statement to not touch anything where this bit is flipped on? You cannot use a WHERE clause in the MERGE statement. The answer is within the WHEN clause of the MERGE statement. All you need to do is add an additional condition to each WHEN for the update and delete operations:
(TargetTable is the name of the target table and SourceTable is the name of the source table)
WHEN MATCHED AND TargetTable.DoNotTouchlt;gt; 1 THEN
UPDATE SET TargetTable.FirstName = SourceTable.firstname,
TargetTable.LastName = SourceTable.lastname
WHEN NOT MATCHED BY SOURCE AND TargetTable.DoNotTouchlt;gt; 1 THEN
DELETE
So that worked! It did not touch the row where I set the DoNotTouch flag to one (1).
Posted by Steve Mann at 11:03 AM | Comments (0)
To MERGE or not to MERGE in SQL Server 2008
I was reviewing some demo material for the MERGE statement that Jim Pletscher put together. It was a standard scenario where we wanted to UPDATE, DELETE, or INSERT rows from a source table to a target table. A general overview of this is available here.Inserting is harmlessbut what if sometimes we don't want toupdate or deletesomething from our target table?
My first step was to add a new column to the target table. I named this column "DoNotTouch" and made it a bit defaulting to zero (0). I then set this value to one (1) on one of the target table rows.
So now how do we tell the MERGE statement to not touch anything where this bit is flipped on? You cannot use a WHERE clause in the MERGE statement. The answer is within the WHEN clause of the MERGE statement. All you need to do is add an additional condition to each WHEN for the update and delete operations:
(TargetTable is the name of the target table and SourceTable is the name of the source table)
WHEN MATCHED AND TargetTable.DoNotTouchlt;gt; 1 THEN
UPDATE SET TargetTable.FirstName = SourceTable.firstname,
TargetTable.LastName = SourceTable.lastname
WHEN NOT MATCHED BY SOURCE AND TargetTable.DoNotTouchlt;gt; 1 THEN
DELETE
So that worked! It did not touch the row where I set the DoNotTouch flag to one (1).
Posted by Steve Mann at 11:03 AM | Comments (0)
To MERGE or not to MERGE in SQL Server 2008
I was reviewing some demo material for the MERGE statement that Jim Pletscher put together. It was a standard scenario where we wanted to UPDATE, DELETE, or INSERT rows from a source table to a target table. A general overview of this is available here.Inserting is harmlessbut what if sometimes we don't want toupdate or deletesomething from our target table?
My first step was to add a new column to the target table. I named this column "DoNotTouch" and made it a bit defaulting to zero (0). I then set this value to one (1) on one of the target table rows.
So now how do we tell the MERGE statement to not touch anything where this bit is flipped on? You cannot use a WHERE clause in the MERGE statement. The answer is within the WHEN clause of the MERGE statement. All you need to do is add an additional condition to each WHEN for the update and delete operations:
(TargetTable is the name of the target table and SourceTable is the name of the source table)
WHEN MATCHED AND TargetTable.DoNotTouchlt;gt; 1 THEN
UPDATE SET TargetTable.FirstName = SourceTable.firstname,
TargetTable.LastName = SourceTable.lastname
WHEN NOT MATCHED BY SOURCE AND TargetTable.DoNotTouchlt;gt; 1 THEN
DELETE
So that worked! It did not touch the row where I set the DoNotTouch flag to one (1).
Posted by Steve Mann at 11:03 AM | Comments (0)
To MERGE or not to MERGE in SQL Server 2008
I was reviewing some demo material for the MERGE statement that Jim Pletscher put together. It was a standard scenario where we wanted to UPDATE, DELETE, or INSERT rows from a source table to a target table. A general overview of this is available here.Inserting is harmlessbut what if sometimes we don't want toupdate or deletesomething from our target table?
My first step was to add a new column to the target table. I named this column "DoNotTouch" and made it a bit defaulting to zero (0). I then set this value to one (1) on one of the target table rows.
So now how do we tell the MERGE statement to not touch anything where this bit is flipped on? You cannot use a WHERE clause in the MERGE statement. The answer is within the WHEN clause of the MERGE statement. All you need to do is add an additional condition to each WHEN for the update and delete operations:
(TargetTable is the name of the target table and SourceTable is the name of the source table)
WHEN MATCHED AND TargetTable.DoNotTouchlt;gt; 1 THEN
UPDATE SET TargetTable.FirstName = SourceTable.firstname,
TargetTable.LastName = SourceTable.lastname
WHEN NOT MATCHED BY SOURCE AND TargetTable.DoNotTouchlt;gt; 1 THEN
DELETE
So that worked! It did not touch the row where I set the DoNotTouch flag to one (1).
Posted by Steve Mann at 11:03 AM | Comments (0)
To MERGE or not to MERGE in SQL Server 2008
I was reviewing some demo material for the MERGE statement that Jim Pletscher put together. It was a standard scenario where we wanted to UPDATE, DELETE, or INSERT rows from a source table to a target table. A general overview of this is available here.Inserting is harmlessbut what if sometimes we don't want toupdate or deletesomething from our target table?
My first step was to add a new column to the target table. I named this column "DoNotTouch" and made it a bit defaulting to zero (0). I then set this value to one (1) on one of the target table rows.
So now how do we tell the MERGE statement to not touch anything where this bit is flipped on? You cannot use a WHERE clause in the MERGE statement. The answer is within the WHEN clause of the MERGE statement. All you need to do is add an additional condition to each WHEN for the update and delete operations:
(TargetTable is the name of the target table and SourceTable is the name of the source table)
WHEN MATCHED AND TargetTable.DoNotTouchlt;gt; 1 THEN
UPDATE SET TargetTable.FirstName = SourceTable.firstname,
TargetTable.LastName = SourceTable.lastname
WHEN NOT MATCHED BY SOURCE AND TargetTable.DoNotTouchlt;gt; 1 THEN
DELETE
So that worked! It did not touch the row where I set the DoNotTouch flag to one (1).
Posted by Steve Mann at 11:03 AM | Comments (0)
To MERGE or not to MERGE in SQL Server 2008
I was reviewing some demo material for the MERGE statement that Jim Pletscher put together. It was a standard scenario where we wanted to UPDATE, DELETE, or INSERT rows from a source table to a target table. A general overview of this is available here.Inserting is harmlessbut what if sometimes we don't want toupdate or deletesomething from our target table?
My first step was to add a new column to the target table. I named this column "DoNotTouch" and made it a bit defaulting to zero (0). I then set this value to one (1) on one of the target table rows.
So now how do we tell the MERGE statement to not touch anything where this bit is flipped on? You cannot use a WHERE clause in the MERGE statement. The answer is within the WHEN clause of the MERGE statement. All you need to do is add an additional condition to each WHEN for the update and delete operations:
(TargetTable is the name of the target table and SourceTable is the name of the source table)
WHEN MATCHED AND TargetTable.DoNotTouchlt;gt; 1 THEN
UPDATE SET TargetTable.FirstName = SourceTable.firstname,
TargetTable.LastName = SourceTable.lastname
WHEN NOT MATCHED BY SOURCE AND TargetTable.DoNotTouchlt;gt; 1 THEN
DELETE
So that worked! It did not touch the row where I set the DoNotTouch flag to one (1).
Posted by Steve Mann at 11:03 AM | Comments (0)
To MERGE or not to MERGE in SQL Server 2008
I was reviewing some demo material for the MERGE statement that Jim Pletscher put together. It was a standard scenario where we wanted to UPDATE, DELETE, or INSERT rows from a source table to a target table. A general overview of this is available here.Inserting is harmlessbut what if sometimes we don't want toupdate or deletesomething from our target table?
My first step was to add a new column to the target table. I named this column "DoNotTouch" and made it a bit defaulting to zero (0). I then set this value to one (1) on one of the target table rows.
So now how do we tell the MERGE statement to not touch anything where this bit is flipped on? You cannot use a WHERE clause in the MERGE statement. The answer is within the WHEN clause of the MERGE statement. All you need to do is add an additional condition to each WHEN for the update and delete operations:
(TargetTable is the name of the target table and SourceTable is the name of the source table)
WHEN MATCHED AND TargetTable.DoNotTouchlt;gt; 1 THEN
UPDATE SET TargetTable.FirstName = SourceTable.firstname,
TargetTable.LastName = SourceTable.lastname
WHEN NOT MATCHED BY SOURCE AND TargetTable.DoNotTouchlt;gt; 1 THEN
DELETE
So that worked! It did not touch the row where I set the DoNotTouch flag to one (1).
Posted by Steve Mann at 11:03 AM | Comments (0)
To MERGE or not to MERGE in SQL Server 2008
I was reviewing some demo material for the MERGE statement that Jim Pletscher put together. It was a standard scenario where we wanted to UPDATE, DELETE, or INSERT rows from a source table to a target table. A general overview of this is available here.Inserting is harmlessbut what if sometimes we don't want toupdate or deletesomething from our target table?
My first step was to add a new column to the target table. I named this column "DoNotTouch" and made it a bit defaulting to zero (0). I then set this value to one (1) on one of the target table rows.
So now how do we tell the MERGE statement to not touch anything where this bit is flipped on? You cannot use a WHERE clause in the MERGE statement. The answer is within the WHEN clause of the MERGE statement. All you need to do is add an additional condition to each WHEN for the update and delete operations:
(TargetTable is the name of the target table and SourceTable is the name of the source table)
WHEN MATCHED AND TargetTable.DoNotTouchlt;gt; 1 THEN
UPDATE SET TargetTable.FirstName = SourceTable.firstname,
TargetTable.LastName = SourceTable.lastname
WHEN NOT MATCHED BY SOURCE AND TargetTable.DoNotTouchlt;gt; 1 THEN
DELETE
So that worked! It did not touch the row where I set the DoNotTouch flag to one (1).
Posted by Steve Mann at 11:03 AM | Comments (0)
To MERGE or not to MERGE in SQL Server 2008
I was reviewing some demo material for the MERGE statement that Jim Pletscher put together. It was a standard scenario where we wanted to UPDATE, DELETE, or INSERT rows from a source table to a target table. A general overview of this is available here.Inserting is harmlessbut what if sometimes we don't want toupdate or deletesomething from our target table?
My first step was to add a new column to the target table. I named this column "DoNotTouch" and made it a bit defaulting to zero (0). I then set this value to one (1) on one of the target table rows.
So now how do we tell the MERGE statement to not touch anything where this bit is flipped on? You cannot use a WHERE clause in the MERGE statement. The answer is within the WHEN clause of the MERGE statement. All you need to do is add an additional condition to each WHEN for the update and delete operations:
(TargetTable is the name of the target table and SourceTable is the name of the source table)
WHEN MATCHED AND TargetTable.DoNotTouchlt;gt; 1 THEN
UPDATE SET TargetTable.FirstName = SourceTable.firstname,
TargetTable.LastName = SourceTable.lastname
WHEN NOT MATCHED BY SOURCE AND TargetTable.DoNotTouchlt;gt; 1 THEN
DELETE
So that worked! It did not touch the row where I set the DoNotTouch flag to one (1).
Posted by Steve Mann at 11:03 AM | Comments (0)
To MERGE or not to MERGE in SQL Server 2008
I was reviewing some demo material for the MERGE statement that Jim Pletscher put together. It was a standard scenario where we wanted to UPDATE, DELETE, or INSERT rows from a source table to a target table. A general overview of this is available here.Inserting is harmlessbut what if sometimes we don't want toupdate or deletesomething from our target table?
My first step was to add a new column to the target table. I named this column "DoNotTouch" and made it a bit defaulting to zero (0). I then set this value to one (1) on one of the target table rows.
So now how do we tell the MERGE statement to not touch anything where this bit is flipped on? You cannot use a WHERE clause in the MERGE statement. The answer is within the WHEN clause of the MERGE statement. All you need to do is add an additional condition to each WHEN for the update and delete operations:
(TargetTable is the name of the target table and SourceTable is the name of the source table)
WHEN MATCHED AND TargetTable.DoNotTouchlt;gt; 1 THEN
UPDATE SET TargetTable.FirstName = SourceTable.firstname,
TargetTable.LastName = SourceTable.lastname
WHEN NOT MATCHED BY SOURCE AND TargetTable.DoNotTouchlt;gt; 1 THEN
DELETE
So that worked! It did not touch the row where I set the DoNotTouch flag to one (1).
Posted by Steve Mann at 11:03 AM | Comments (0)
To MERGE or not to MERGE in SQL Server 2008
I was reviewing some demo material for the MERGE statement that Jim Pletscher put together. It was a standard scenario where we wanted to UPDATE, DELETE, or INSERT rows from a source table to a target table. A general overview of this is available here.Inserting is harmlessbut what if sometimes we don't want toupdate or deletesomething from our target table?
My first step was to add a new column to the target table. I named this column "DoNotTouch" and made it a bit defaulting to zero (0). I then set this value to one (1) on one of the target table rows.
So now how do we tell the MERGE statement to not touch anything where this bit is flipped on? You cannot use a WHERE clause in the MERGE statement. The answer is within the WHEN clause of the MERGE statement. All you need to do is add an additional condition to each WHEN for the update and delete operations:
(TargetTable is the name of the target table and SourceTable is the name of the source table)
WHEN MATCHED AND TargetTable.DoNotTouchlt;gt; 1 THEN
UPDATE SET TargetTable.FirstName = SourceTable.firstname,
TargetTable.LastName = SourceTable.lastname
WHEN NOT MATCHED BY SOURCE AND TargetTable.DoNotTouchlt;gt; 1 THEN
DELETE
So that worked! It did not touch the row where I set the DoNotTouch flag to one (1).
Posted by Steve Mann at 11:03 AM | Comments (0)
To MERGE or not to MERGE in SQL Server 2008
I was reviewing some demo material for the MERGE statement that Jim Pletscher put together. It was a standard scenario where we wanted to UPDATE, DELETE, or INSERT rows from a source table to a target table. A general overview of this is available here.Inserting is harmlessbut what if sometimes we don't want toupdate or deletesomething from our target table?
My first step was to add a new column to the target table. I named this column "DoNotTouch" and made it a bit defaulting to zero (0). I then set this value to one (1) on one of the target table rows.
So now how do we tell the MERGE statement to not touch anything where this bit is flipped on? You cannot use a WHERE clause in the MERGE statement. The answer is within the WHEN clause of the MERGE statement. All you need to do is add an additional condition to each WHEN for the update and delete operations:
(TargetTable is the name of the target table and SourceTable is the name of the source table)
WHEN MATCHED AND TargetTable.DoNotTouchlt;gt; 1 THEN
UPDATE SET TargetTable.FirstName = SourceTable.firstname,
TargetTable.LastName = SourceTable.lastname
WHEN NOT MATCHED BY SOURCE AND TargetTable.DoNotTouchlt;gt; 1 THEN
DELETE
So that worked! It did not touch the row where I set the DoNotTouch flag to one (1).








