• Clustering every SQL Server instance

    Updated: 2012-02-11 03:32:00
    You may disagree, but I believe it is a good practice to cluster all the SQL Server instances. That is, even when you plan to run a SQL Server instance on a single machine, you should install it in a single node cluster. The primary advantage is that you only need a single standard SQL Server build instead of one for the stand alone and one for the clustered. This results in simplified configurations such as when you configure network aliases, Kerberos, and multiple instances. If you need to add...(read more)

  • 3 Big Changes in Analysis Services 2012 Enabling Flexible Design

    Updated: 2012-02-11 01:32:00
    THE SQL Server Blog Spot on the Web Welcome to SQLblog.com The SQL Server blog spot on the web Sign in Join Help in Stacia Misner Entire Site Search Home Blogs Forums Downloads Opml Stacia Misner 3 Big Changes in Analysis Services 2012 Enabling Flexible Design The upcoming release of SQL Server 2012 has a lot of new features for business intelligence developers to love . The free preview of Introducing Microsoft SQL Server 2012 Microsoft Press , 2012 does not include the chapter on Analysis Services , but you’ll be able to read the details when the final version of the ebook is released for download in . March Overall , there are a lot of changes in Analysis Services 2012 and it’s easy to get overwhelmed by the details . So , just as I did for Integration Services 2012 last month , I

  • SQL SERVER – Solution – A Quick Puzzle on JOIN and NULL – SQL Brain Teaser

    Updated: 2012-02-11 01:30:19
    Yesterday was really fun. I asked a simple Brain Teaser and we had excellent conversation on SQLAuthority Page as well SQL SERVER – A Quick Puzzle on JOIN and NULL – SQL Brain Teaser. That was an easy puzzle for those who have attended the SQL Server Questions and Answers online course. Here is a quick recap of the puzzle. Lots [...]

  • SQL Saturday 108 Redmond PowerShell Session Material

    Updated: 2012-02-10 21:43:24
    I am honored to be presenting my first SQL Saturday session in Redmond on the 25th of this month. The session will be a PowerShell basics class, emphasis on helping people who might be starting out with PowerShell, or feel intimidated by PowerShell’s syntax or object-orientation. I have demos and material focused on PowerShell syntax in general, for any task, and then a few demos with a SQL Server slant. The main idea is to get an understanding of how and why PowerShell syntax works, which should...(read more)

  • Rick Review: Day 3 Keynote PASS Summit 2011 - Big Data-What's the Big Deal?

    Updated: 2012-02-10 13:40:00
    I recently did a Rick Review of the Day 3 Keynote from the 2008 PASS Community Summit that featured Dr. DeWitt speaking on new technology that ended up in the Parallel Data Warehouse (PDW) edition of SQL Server 2008 R2. I decided to also listen again to the Day 3 Keynote from the 2001 PASS Community Summit. While I listened intently to the keynote on Day 3 of this past summit, something seemed to be somewhat familiar. Had I heard some of these concepts before? The keynotes from the most recent PASS...(read more)

  • SQL SERVER – A Quick Puzzle on JOIN and NULL – SQL Brain Teaser

    Updated: 2012-02-10 01:30:26
    It seems that we all love to solve puzzles. On SQLAuthority Page, we have been playing the number game and those who are playing with us know how much fun we are having. Sometimes, the answers are so innovative and informative that they open up those aspects of the technology which I have not thought [...]

  • Rick Review: Day 3 Keynote of the 2008 PASS Community Summit

    Updated: 2012-02-09 19:04:00
    Am I stuck in the past? Not really, but I like to blog about the recordings that I have recently watched. There are a lot of recordings out there on the PASS website and other places. Recently I have had the good fortune of exploring some of the neat technology behind the Parallel Data Warehouse (PDW) in SQL Server 2008 R2. In order to get myself grounded in some of the basics around what PDW was all about, I decided to review the Dr. DeWitt keynote (Day 3) from the 2008 PASS Community Summit. The...(read more)

  • Speaking at Lisbon NetPonto UG on 02/13/2012

    Updated: 2012-02-09 15:48:12
    As you might (or not) know, I travel a lot for work and, when possible, I always try to speak at local user groups. It is fun and I always learn a lot by speaking with other professionals like me. Being in Lisbon next week, I’ll deliver a speech at Microsoft Portugal with the NetPonto  user group for a couple of hours of DAX, Vertipaq and many-to-many relationships. Here’s the link of the event, a free registration is required: http://netponto-lisboa-fevereiro-2012-powerpivot.eventbrite.com/...(read more)

  • PBM for SSIS? What policies would you want?

    Updated: 2012-02-09 13:50:00
    THE SQL Server Blog Spot on the Web Welcome to SQLblog.com The SQL Server blog spot on the web Sign in Join Help in SSIS Junkie Entire Site Search Home Blogs Forums Downloads Opml SSIS Junkie Freelance SQL Server developer in London PBM for SSIS What policies would you want My mind was wandering today after reading Andy Leonard's excellent post Name Those Connections and it occurred to me that due to SQL Server 2012 including an SSIS Server there may be an opportunity to leverage Policy-Based Management PBM for ensuring adherance to an organisation's best practises around SSIS development . I have absolutely no idea whether such plans are afoot or not I suspect not but nonetheless it may be fun to come up with a desired list of policies . Here are some brainstormed : ideas All task and

  • SQL SERVER – INNER JOIN Returning More Records than Exists in Table

    Updated: 2012-02-09 01:30:29
    I blog and engage with the community because it gives me satisfaction when someone resolves an issue. A few days ago, I blogged about a DBA who began his first day at a new company and could not find out where the installation summary file was. He was very happy when I featured his story [...]

  • SSIS Snack: Name Those Connections!

    Updated: 2012-02-09 00:00:00
    When creating Connection Managers in SSIS, take a moment to click the “All” page and set a value in the Application Name property. In SSIS 2008+, a default value is applied to this property. It’s useful but it contains a GUID. Yuck. I prefer to enter a more concise identifier like the one shown here:   “Why should I enter this information, Andy?” I’m glad you asked! When troubleshooting performance or locking / blocking issues, DBAs start with a query to ascertain what is currently executing...(read more)

  • Avoiding nested transactions might not improve performance.

    Updated: 2012-02-08 18:09:00
    Beginning a transaction only when @@TRANCOUNT=0 might not improve performance at all. At least, I did not notice any difference whatsoever. No matter if I use this pattern: BEGIN TRAN ; -- (snip) COMMIT ; or a more complex one: DECLARE @trancount INT ; SET @trancount = @@TRANCOUNT ; IF @trancount = 0 BEGIN ; BEGIN TRAN ; END ; --(snip) IF @trancount = 0 BEGIN ; COMMIT ; END ; the performance stays the same: I was not able to notice any difference. Here are my benchmarks. Prerequisites All we need...(read more)

  • [Shameless Plug] Can We Have Your Vote?

    Updated: 2012-02-08 17:34:00
    THE SQL Server Blog Spot on the Web Welcome to SQLblog.com The SQL Server blog spot on the web Sign in Join Help in Argenis Fernandez Entire Site Search Home Blogs Forums Downloads Opml Argenis Fernandez Shameless Plug Can We Have Your Vote Robert Davis a.k.a . SQLSoldier and yours truly have submitted a Pre-Conference for SQL Rally 2012 in Dallas , TX called Demystifying Database Administration Best Practices” . We think it’s going to be an epic session with just loads and loads of tips and best practices on multiple aspects of Database Administration , from Windows AD setup to Daily Operations to Code . Reviews While our session wasn’t chosen by the committee in the first round , it made it to the community voting round so this post is to kindly ask for your vote . We promise we’ll

  • SQLBits now publishing all SQLBits agendas as an iCalendar

    Updated: 2012-02-08 08:36:00
    THE SQL Server Blog Spot on the Web Welcome to SQLblog.com The SQL Server blog spot on the web Sign in Join Help in SSIS Junkie Entire Site Search Home Blogs Forums Downloads Opml SSIS Junkie Freelance SQL Server developer in London SQLBits now publishing all SQLBits agendas as an iCalendar Three weeks ago I published a blog post Get the SQLBits agenda in your phone's calendar where I : said If you want to get the SQLBits calendar onto your smartphone then the easiest way to do it is add my calendar containing all SQLBits sessions to whichever calendar service i.e . Hotmail or Google you have got synced to your phone and let technology do its . thing I will keep the calendar updated with any changes to the agenda so , assuming you have subscribed , changes will just propogate to you

  • SQL SERVER – Convert Subquery to CTE – SQL in Sixty Seconds #001 – Video

    Updated: 2012-02-08 01:30:58
    SQL Server is an ocean of information. I believe if one starts learning today, after 60 years he/she may still be learning the subject (there are always a few exceptions)! Recently, I published the SQL Server Questions and Answers video tutorial, and since the course came out, I have been receiving lots of request to [...]

  • SSIS Package Configurations MicroTraining Recording Available!

    Updated: 2012-02-08 00:00:00
    Although there are some audio issues, the recording and code for the Linchpin People microTraining session on SSIS Package Configurations is now live! :{>...(read more)

  • defeasible asynchronous oracle database operations

    Updated: 2012-02-07 15:41:00
    Run database updates and selects in a separate thread

  • Application Lifecycle Management Overview for Windows Azure

    Updated: 2012-02-07 14:58:39
    THE SQL Server Blog Spot on the Web Welcome to SQLblog.com The SQL Server blog spot on the web Sign in Join Help in Buck Woody Entire Site Search Home Blogs Forums Downloads Opml Buck Woody Carpe Datum Application Lifecycle Management Overview for Windows Azure Developing in Windows Azure is at once not that much different from what you’re familiar with in on-premises systems , and different in significant ways . Because of these differences , developers often ask about the specific process to develop and deploy a Windows Azure application more formally called an Application Lifecycle Management , or ALM . There are specific resources you can use to learn more about various parts of ALM I’ve referenced those at the end of this post . But ALM has multiple definitions , from the governance

  • SQL SERVER – Installation Log Summary File Location – 2012 – 2008 R2

    Updated: 2012-02-07 01:30:41
    Here is email received from user: “Pinal, I am new DBA in my organization and I have to manage SQL Server 2005, 2008 and 2008 R2. Today is my first day at job and my manager has asked me to install all these different edition on our test environment. I have finished installing them. Later [...]

  • Memory Settings in #Tabular #ssas (and Prepare for #msteched!)

    Updated: 2012-02-06 21:57:07
    We are going very close to the release of SQL Server 2012 and after using Analysis Services 2012 for almost one year in a relatively small number of scenarios, I’m really curios to see the questions and the issues that will emerge when its adoption will go mainstream. I expect that many will consider a Tabular instance of Analysis Services similar to a Multidimensional one, also from a system engineer perspective, whereas there are many important differences. For example, the hardware required to...(read more)

  • Upgrading to SQL Server 2012 with Lock Pages in Memory

    Updated: 2012-02-06 20:36:00
    During SQL Server 2012 RC0 setup (specifically when upgrading), you may have noticed upgrade rules regarding Lock Pages in Memory (LPIM): However, for most folks, these rules always pass, whether or not they are actually using LPIM. I wanted to run a few tests to demonstrate why this is - or at least in which situations the rule checks will fail. So I created two virtual machines running SQL Server 2008 R2 SP1 CU3 - one running Windows Server 2008 SP2 (x86), the other running Windows Server 2008...(read more)

  • SQL SERVER – ERROR: FIX – Database diagram support objects cannot be installed because this database does not have a valid owner

    Updated: 2012-02-06 01:30:16
    Recently one of my friend sent me email that he is having some problem with his very small database. We talked for few minutes and we agreed that to further investigation I will need access to the whole database. As the database was very big he dropped it in common location (you can use livemesh [...]

  • To Snark or Not to Snark…

    Updated: 2012-02-06 00:00:00
    Introduction This post is the fifty-first part of a ramble-rant about the software business. The current posts in this series can be found on the series landing page . This post is about communication. On Being Clever I enjoy listening to a good comedian and reading the works of humorous writers. Life is too short to waste on misery and a hearty laugh is good for the soul. Some humor is educational, thought-provoking and surprising. Some humor, though, can be hurtful. Some jokes and comments build...(read more)

  • SQLAuthority News – Microsoft SQL Server AlwaysOn Solutions Guide for High Availability and Disaster Recovery

    Updated: 2012-02-05 01:30:33
    SQL Server 2012 is has very exciting new feature of SQL Server AlwaysOn. This new feature reduces planned and unplanned downtime and maximize application available. Additionally it provides data protection keeping database always available. Microsoft has released a whitepaper on this subject where it discusses common context business stakeholders, technical decision makers, system architects, infrastructure [...]

  • SQL SERVER – Finding Count of Logical CPU using T-SQL Script – Identify Virtual Processors

    Updated: 2012-02-04 01:30:03
    I recently received email from one of my very close friend from California. His question was very interesting. He wanted to know how many virtual processors are there available for SQL Server. He already had script for SQL Server 2008 but was mainly looking for SQL Server 2000. He made me go to my past. [...]

  • SQLAuthority News – An Incredible Successful SQL Saturday #116 Event – First SQL Saturday in India

    Updated: 2012-02-03 01:30:20
    We have recently wrapped up our most recent event, SQL Saturday #116, and I am I am sure I am not alone in reporting that it was a huge success!  We had a full crowd – every seat taken, plus standing-room-only in the back.  We also had a lot of good feedback and the crowd [...]

  • Automated Script-generation with Powershell and SMO

    Updated: 2012-02-03 00:00:00
    In the first of a series of articles on automating the process of building, modifying and copying SQL Server databases, Phil Factor demonstrates how one can generate TSQL scripts for databases, selected database objects, or table contents from PowerShell and SMO.

  • SQL SERVER – An Inspiring Personal Story – Movie from The Book – Video Course – SQL Server Questions and Answers – Pluralsight

    Updated: 2012-02-02 01:30:36
    Nov 3, 2011 – Visit to Grandma When our SQL Server Interview Questions and Answers book got published I ran to my grandma with a copy of the book for her blessings. Well, just like every grandma, she loves me, her grandson, unconditionally. She is not into the technology domain (obviously), but she loved the book. She read the [...]

  • Using SQL Test Database Unit Testing with TeamCity Continuous Integration

    Updated: 2012-02-02 00:00:00
    With database applications, the process of test and integration can be frustratingly slow because so much of it is based on manual processes. Everyone seems to agree that automation of the process provides the answer to accomodating shorter development cycles, but how, exactly? Dave Green describes a successful process that integrates third-party tools.

  • SQL Server 2012 Early Adoption Cook Book

    Updated: 2012-02-01 22:28:00
    I've been working on a team with Roger Doherty building parts of what's now become the SQL Server 2012 Early Adoption Cook Book . So, if you work on the bleeding edge of SQL Server and are keen to get your head around what's coming, this is a seriously good resource. Time to go and get it. The material is constructed as a large number of bite-sized pieces. Each presentation is about 15 minutes in length, and each demo is about 5 minutes. And there are lots of them. Look for recordings of these by...(read more)

  • Using XACT_ABORT ON may be faster than using TRY...CATCH

    Updated: 2012-02-01 22:25:00
    To ensure atomicity of transactions, we can use XACT_ABORT ON or wrap the transaction in TRY block and rollback in CATCH block. In some cases, the XACT_ABORT ON approach uses noticeably less CPU. I am posting repro scripts. Please run them, tweak them, and post your findings. Environment I've run my scripts on 2008 R2 Dev Edition. Snapshot isolation is enabled, READ_COMMITTED_SNAPSHOT is not enabled. Test data We are using the same test data as in my previous post: CREATE TABLE dbo.Toggle1 ( id INT...(read more)

  • Wrapping related changes in a transaction may use less CPU.

    Updated: 2012-02-01 22:02:00
    Wrapping related changes in a transaction is a good way to ensure data integrity. Besides, in some cases it just runs noticeably faster, using less CPU. As usual, I am posting repro scripts, which you can run, tweak, and see for yourself. Environment I've run my scripts on 2008 R2 Dev Edition. Snapshot isolation is enabled, READ_COMMITTED_SNAPSHOT is not enabled. Test data After applying Occum's razor, all we need is two tables with one row in each: CREATE TABLE dbo.Toggle1 ( id INT NOT NULL PRIMARY...(read more)

  • DTLoggedExec 1.1.2008.4 SP2 released!

    Updated: 2012-02-01 17:15:44
    THE SQL Server Blog Spot on the Web Welcome to SQLblog.com The SQL Server blog spot on the web Sign in Join Help in Davide Mauri Entire Site Search Home Blogs Forums Downloads Opml Davide Mauri A place for my thoughts and experiences on SQL Server , Business Intelligence and NET DTLoggedExec 1.1.2008.4 SP2 released I’ve released couple of hours ago the SP2 of my DTLoggedExec . tool For those who don’t know it , it’s a DTEXEC replacement , useful to execute SSIS and having logging provided right from the engine and not from the package . itself More info can be found : here http : dtloggedexec.codeplex.com This SP2 release add an important feature to the CSV Log Provider . It's now possible to store a personalized label into each log , in order to make it easy to identify or group . logs

  • SQL SERVER – What is Slowly Changing Dimension – Quiz – Puzzle – 31 of 31

    Updated: 2012-02-01 01:30:23
    Year 2011 was a year of learning and opportunity for me. My recent book, SQL Server Interview Questions and Answers, has received such overwhelming love and support from all of you. While writing the book, I had two simple goals: (1) Master the Basics and (2) Ignite Learning. There was a constant request from the Community to take the learning of these books to [...]

  • Converting String Data to XML and XML to String Data

    Updated: 2012-02-01 00:00:00
    We all appreciate that, in general, XML documents or fragments are held in strings as text markup. In SQL Server, XML variables and columns are instead tokenised to allow rapid access to the data within. This is fine, but can cause some odd problems, auch as 'entitization'. What, also, do you do if you need to preserve the formatting? As usual Rob Sheldon comes to our aid.

  • SSIS MicroTraining: SSIS Package Configurations

    Updated: 2012-02-01 00:00:00
    I will be delivering another free, online MicroTraining on SSIS Package Configurations Tuesday, 7 Feb 2012, at 10:00 AM EST. Join Andy Leonard as he demonstrates uses of SSIS Package Configurations for externalizing SSIS package variable values. Register here ! :{>...(read more)

  • SQL SERVER – Advantages of Partitioning – Quiz – Puzzle – 30 of 31

    Updated: 2012-01-31 01:30:43
    Year 2011 was a year of learning and opportunity for me. My recent book, SQL Server Interview Questions and Answers, has received such overwhelming love and support from all of you. While writing the book, I had two simple goals: (1) Master the Basics and (2) Ignite Learning. There was a constant request from the Community to take the learning of these books to [...]

  • Performance impact: the cost of NUMA remote memory access

    Updated: 2012-01-30 23:17:20
    These days if you get a new server-class machine to run SQL Server, you can almost be 100% sure that it’ll be running on NUMA hardware. The recent AMD Opteron and Intel Nehalem-based processors are all built on some form of NUMA architecture. The current consensus is that as the number of processors grows, their shared memory bus can easily get congested and becomes a major impediment to scalability. NUMA hardware solves this scalability challenge by dividing the processors into groups, with each...(read more)

  • OT: A Good Reason to Attend #SQLBits

    Updated: 2012-01-30 08:41:46
    My 4yo son keeps asking me why I should leave home so often to attend SQL conferences around the world and today, after a couple of days of snow, he discovered a good reason, along with the best place for the SQLBits scarf....(read more)

  • SQL SERVER – Data Collector Usage – Quiz – Puzzle – 29 of 31

    Updated: 2012-01-30 01:30:02
    Year 2011 was a year of learning and opportunity for me. My recent book, SQL Server Interview Questions and Answers, has received such overwhelming love and support from all of you. While writing the book, I had two simple goals: (1) Master the Basics and (2) Ignite Learning. There was a constant request from the Community to take the learning of these books to [...]

  • How to Document and Configure SQL Server Instance Settings

    Updated: 2012-01-30 00:00:00
    Occasionally, when you install identical databases on two different SQL Server instances, they will behave in surprisingly different ways. Why? Most likely, it is down to different configuration settings. There are around seventy of these settings and the DBA needs to be aware of the effect that many of them have. Brad McGehee explains them all in enough detail to help with most common configuration problems, and suggests some best practices.

  • What's the Point of Using VARCHAR(n) Anymore?

    Updated: 2012-01-30 00:00:00
    The arrival of the (MAX) data types in SQL Server 2005 were one of the most popular feature for the database developer. At the time, there was a lot of discussion as to whether this freedom from having to specify string length came at a cost. Rob attempts to give a final answer as to any down-side.

  • Suggested Best Practises and naming conventions

    Updated: 2012-01-29 18:08:53
    THE SQL Server Blog Spot on the Web Welcome to SQLblog.com The SQL Server blog spot on the web Sign in Join Help in SSIS Junkie Entire Site Search Home Blogs Forums Downloads Opml SSIS Junkie Freelance SQL Server developer in London Suggested Best Practises and naming conventions Once upon a time I blogged at http : consultingblogs.emc.com jamiethomson but that ended in August 2009 when I left EMC . There is a lot of arguably valuable content over there however certain events in the past leave me concerned that that content is not well cared for and I don't have any confidence that it will still exist in the long term . Hence , I have taken the decision to re-publish some of that content here at SQLBlog so over the coming weeks and months you may find re-published content popping up here

  • SQL SERVER – Reclaiming Space Back from Database – Quiz – Puzzle – 28 of 31

    Updated: 2012-01-29 01:30:36
    Year 2011 was a year of learning and opportunity for me. My recent book, SQL Server Interview Questions and Answers, has received such overwhelming love and support from all of you. While writing the book, I had two simple goals: (1) Master the Basics and (2) Ignite Learning. There was a constant request from the Community to take the learning of these books to [...]

  • SQL SERVER – Lots of Date Functions – Find Right One to Use – Quiz – Puzzle – 27 of 31

    Updated: 2012-01-28 01:30:43
    Year 2011 was a year of learning and opportunity for me. My recent book, SQL Server Interview Questions and Answers, has received such overwhelming love and support from all of you. While writing the book, I had two simple goals: (1) Master the Basics and (2) Ignite Learning. There was a constant request from the Community to take the learning of these books to [...]

  • SQL SERVER – Common Gotcha’s Associated with Common Table Expressions (CTE) – Quiz – Puzzle – 26 of 31

    Updated: 2012-01-27 01:30:27
    Year 2011 was a year of learning and opportunity for me. My recent book, SQL Server Interview Questions and Answers, has received such overwhelming love and support from all of you. While writing the book, I had two simple goals: (1) Master the Basics and (2) Ignite Learning. There was a constant request from the Community to take the learning of these books to [...]

  • SQLAuthority News – Interview with Book Authors after 2 Months of Book Released

    Updated: 2012-01-26 01:30:39
    Community is the most motivating force for me. I have often found situations where I have done more and better things because there was community around me. My latest book SQL Server Interview Questions and Answers is the result of the community’s support and love. Without the wide acceptance of the community I would have [...]

  • SQL SERVER – Different Aspect of Policy Based Management – Quiz – Puzzle – 25 of 31

    Updated: 2012-01-26 01:30:33
    Year 2011 was a year of learning and opportunity for me. My recent book, SQL Server Interview Questions and Answers, has received such overwhelming love and support from all of you. While writing the book, I had two simple goals: (1) Master the Basics and (2) Ignite Learning. There was a constant request from the Community to take the learning of these books to [...]

  • SQL SERVER – Correct Value for Fillfactor – Quiz – Puzzle – 24 of 31

    Updated: 2012-01-25 01:30:45
    Year 2011 was a year of learning and opportunity for me. My recent book, SQL Server Interview Questions and Answers, has received such overwhelming love and support from all of you. While writing the book, I had two simple goals: (1) Master the Basics and (2) Ignite Learning. There was a constant request from the Community to take the learning of these books to [...]

  • SQL SERVER – Database Mirroring and Fine-Prints – Quiz – Puzzle – 23 of 31

    Updated: 2012-01-24 01:30:41
    Year 2011 was a year of learning and opportunity for me. My recent book, SQL Server Interview Questions and Answers, has received such overwhelming love and support from all of you. While writing the book, I had two simple goals: (1) Master the Basics and (2) Ignite Learning. There was a constant request from the Community to take the learning of these books to [...]

  • XEvents in SQL Server 2012: No more "lazy XML" in event harvesting scripts

    Updated: 2012-01-23 20:49:00
    : Home Syndication Log in XEvents in SQL Server 2012 : No more lazy XML in event harvesting scripts I've said before how thrilled I am will the new extended event UI in SSMS for SQL Server 2012. However , you might be one of the early adopters who made up their own scripts to define extended event sessions , and use hardcoded scripts to harvest the results . So , you may run into this problem if you're using what I call lazy XML in the event harvesting script . Take , as an example , an extended event session defined as follows with 3 actions : create event session errorsession on server add event sqlserver.error_reported action package0.callstack , nbsp sqlserver.session_id , nbsp sqlserver.sql_text where error 547 and package0.counter add target package0.ring_buffer with

  • SQL SERVER – What is Piecemeal Restore – Quiz – Puzzle – 22 of 31

    Updated: 2012-01-23 01:30:49
    Year 2011 was a year of learning and opportunity for me. My recent book, SQL Server Interview Questions and Answers, has received such overwhelming love and support from all of you. While writing the book, I had two simple goals: (1) Master the Basics and (2) Ignite Learning. There was a constant request from the Community to take the learning of these books to [...]

  • SQL SERVER – Difference between Create Index – Drop Index – Rebuild Index – Quiz – Puzzle – 21 of 31

    Updated: 2012-01-22 01:30:58
    Year 2011 was a year of learning and opportunity for me. My recent book, SQL Server Interview Questions and Answers, has received such overwhelming love and support from all of you. While writing the book, I had two simple goals: (1) Master the Basics and (2) Ignite Learning. There was a constant request from the Community to take the learning of these books to [...]

  • SQL SERVER – Methods for Accessing SQL Server XML Datatype – Quiz – Puzzle – 20 of 31

    Updated: 2012-01-21 01:30:15
    Year 2011 was a year of learning and opportunity for me. My recent book, SQL Server Interview Questions and Answers, has received such overwhelming love and support from all of you. While writing the book, I had two simple goals: (1) Master the Basics and (2) Ignite Learning. There was a constant request from the Community to take the learning of these books to [...]

  • SQL SERVER – MERGE or INSERT, UPDATE, DELETE – Quiz – Puzzle – 19 of 31

    Updated: 2012-01-20 01:30:31
    Year 2011 was a year of learning and opportunity for me. My recent book, SQL Server Interview Questions and Answers, has received such overwhelming love and support from all of you. While writing the book, I had two simple goals: (1) Master the Basics and (2) Ignite Learning. There was a constant request from the Community to take the learning of these books to [...]

  • SQL SERVER – Importance of Resource Database – Quiz – Puzzle – 18 of 31

    Updated: 2012-01-19 01:30:20
    Year 2011 was a year of learning and opportunity for me. My recent book, SQL Server Interview Questions and Answers, has received such overwhelming love and support from all of you. While writing the book, I had two simple goals: (1) Master the Basics and (2) Ignite Learning. There was a constant request from the Community to take the learning of these books to [...]

  • SQL Cop Review

    Updated: 2012-01-19 00:00:00
    Static code analysis is used a lot by application programmers, but there have been surprisingly few tools for SQL development that perform a function analogous to Resharper, dotTest, or CodeRush. Wouldn't it be great to have something that can indicate where there are code-smells, lapses from best practice and so on, in your Database code? Now there is.

  • Great SQL Server Debates: Buffer Cache Hit Ratio

    Updated: 2012-01-18 00:00:00
    One of the more popular counters used by DBAs to monitor the performance, the Buffer Cache Hit Ratio, is useless as a predictor of imminent performance problems. Worse, it can be misleading. Jonathan Kehayias demonstrates this convincingly with some simple tests.

  • SQL Server 2012 FileTable and T-SQL on AlwaysOn secondary replicas

    Updated: 2012-01-17 20:01:00
    Home Syndication Log in SQL Server 2012 FileTable and T-SQL on AlwaysOn secondary replicas OK , back to PathName( with AlwaysOn , which I started on in the previous blog post PathName( in SQL Server 2012 doesn't return the computer name by default AlwaysOn1 or AlwaysOn2 in my example but returns the VNN name virtual network name That is , it returns the availability group listener share name . In my case , the PathName( would start with AlwaysOnAG1 There's an additional option in SQL Server 2012 PathName( that allows you to return the current replica name . So , when AlwaysOn1 is the current primary replica , it returns that when we fail over to AlwaysOn2 that's what name is returned . In addition , GetFileNamespacePath( and FileTableRootPath( always return the availability group listener

  • SQL Server 2012 FileTables - AlwaysOn support and PathName()

    Updated: 2012-01-17 18:03:00
    Home Syndication Log in SQL Server 2012 FileTable and T-SQL on AlwaysOn secondary replicas SQL Server 2012 FileTables AlwaysOn support and PathName( When I was covering the FileTable-specific functions and methods , I didn't mention PathName( a filestream-related function , that naturally can be used with FileTables . This posting is about PathName( but , mostly about what happens with FileTable in an AlwaysOn availability group configuration . There were some surprises there . None of the FileTable-specific functions and methods mention AlwaysOn , but PathName( mentions it . There is an additional parameter you can specify that matters if you use PathName( in an AlwaysOn availability group environment . Remember that , in addition to FileTable , there have been enhancements to filestream

  • Relational Databases and Solid State Memory: An Opportunity Squandered?

    Updated: 2012-01-17 00:00:00
    The relational model was devised long before computer hardware was able to deliver an RDBMS that could deliver a fully normalized database with no performance deficit. Now, with reliable SSDs falling in price, we can reap the benefits, instead of getting distracted by NOSQL with its doubtful compromise of 'eventual consistency'.

  • SQL Server 2012 FileTables in T-SQL part 3: hierarchyid methods

    Updated: 2012-01-16 21:06:00
    : Home Syndication Log in SQL Server 2012 FileTables in T-SQL part 3 : hierarchyid methods So finally , we get to using FileTable's path_locator column with the methods of hierarchyid . To pick up where we left off remember that hierarchyid has a method named GetLevel( Given the following directory structure in the FileTable's share : File1.txt File2.txt SQLFiles SubdirFile1.txt SubdirFile2.txt I have a few more levels of subdirectory here , but hopefully , you get the idea . Issuing the query SELECT path_locator.GetLevel( as Level , Name FROM dbo.Documents show , unsurprisingly , File1.txt , File2.txt , and SQLFiles directory at level 1, and the subdirectory files at level 2. So to be sure we're getting the right SQLFiles directory , we could change that query in the previous blog entry

  • SQL Server 2012 FileTables in T-SQL part 2: new rows

    Updated: 2012-01-16 16:00:00
    : Home Syndication Log in SQL Server 2012 FileTables in T-SQL part 2 : new rows So the functions methods that I wrote about in previous post are needed because FileTables don't store the UNC path name of the file , they store the path_locator as a hierarchyid data type . Wonder what encoding scheme they're using . Let's see , by doing SELECT path_locator.ToString( Name FROM dbo.Documents We get hierarchyid strings that look like this : 192992825631153.73945086322524.2119705196 Turns out that the encoding scheme involves newid( as you can see by looking at the definition for the default constraint for the path_locator column . It looks like this : convert(hierarchyid , convert(varchar(20 convert(bigint , substring(convert(binary(16 newid( 1, 6 convert(varchar(20 convert(bigint ,

  • SQL Server 2012 FileTables in T-SQL part 1: functions and methods

    Updated: 2012-01-16 06:17:00
    : Home Syndication Log in SQL Server 2012 FileTables in T-SQL part 1 : functions and methods I've been working with the SQL Server 2012 FileTable feature lately . Besides learning to appreciate the esoteric features of the NTFS file system and SMB protocol , only some of which are supported by FileTables , I've been trying to work with FileTables in SQL Server using T-SQL . This turns out to be an interesting exercise , especially if you're trying to brush up on your skills with the hierarchyid data type . It turns out that a FileTable is just like a normal SQL Server table with a filestream varbinary(max column named , unsurprisingly , file_stream It uses computed columns and constraints rather extensively . Behind the scenes , SQL Server functions as a Win32 namespace owner and exposes a

Previous Months Items

Jan 2012 | Dec 2011