home  »  blogs  »  MarkGStacey  »  Scripting Indexes with FIlters and schemas

To rate this blog entry please  register or login

Author

MarkGStacey MarkGStacey (Member since: 12/10/2009 2:07:00 PM)

View MarkGStacey 's profile

Comments (1)

  • PatrickLeBlanc 1/15/2010 10:18:16 AM by:  PatrickLeBlanc
    Mark how are you? I have seen this question asked so many times. Can you send me your email address, pleblanc@pragmaticworks.com? I will send you a link to an application that should help. It is a work in progress, but with the help of the SQL Server community I think we can make a solid application.

Post a comment

Comment (No HTML)  

Type the characters:
 *
 
   

Join Business Intelligence Developer Network for FREE Today!

It's fast, easy and free! Submit articles, get your own blog, ask questions & give answers in the forums, and become a better developer, faster.

enter your email address:

Blogs RSS Feed

MarkGStacey's latest blog posts

  • Chart Analyis
    3/3/2010 3:41:50 AM
    Chart analysis. So, BI in the terms of something that is known to us all: browser wars !     OK, so the stats themselves are fairly interesting (Chrome eats Opera at launch), lets have a look at the chart itself: Firstly, choice of chart:We’re tracking various metrics over time : in this scenario, line graphs are great, as they show the progression over time. In addition, markers have been placed at the data points, allowing one to easily check an individual data point. X-Axis : The X-Axis has b...
  • Altering Foreign Key constraints
    1/29/2010 2:50:01 PM
    http://www.bidn.com//Assets/Uploaded-CMS-Files/2180394a-380c-419f-a0a6-2570eb8c76beAlteringForeignKeys_1_PrepTables.zip       http://www.bidn.com//Assets/Uploaded-CMS-Files/631a6a0e-8cf1-494e-b609-094c7c08e9deAlteringForeignKeys_2_CreateAlter.zip   This is going to be a very rough post, because it's friday night, and I'm almost done for the day :-) A little bit of background: I have a staging environment used for a project built on MS Sync Framework, and the tables currently have Foreign Keys in...
  • SQL 2008 Compression
    1/29/2010 6:56:34 AM
    Hmmmm. Just a quick anecdote about SQL's backup compression.   I backed up a DB, tiny one, no compression, resulted in a size of 5636 KB. I was mailing it out, so I quickly 7Zipped it, and got a size of 434KB. Pretty impressive ratio actually, but I've always liked 7Zips native format.   Later on, I made a foreign key reference change, and one stored proc change. MINOR changes. Backed up the DB again, but with backup compression. Results in a size of 909KB. Nice improvement on 5636, but nowhere ...
  • Automatically clearing data in a db with foreign keys
    1/22/2010 3:12:26 PM
    Well, this isn't going to be a long blog post.   One of the tasks facing many of us is how to clear tables with foreign keys : we want to truncate those without any foreign keys referencing them, and delete the rest in the correct. Here's a script I've used as a basis to do this just that. Not 100% sure it's perfect yet, if I find issues I'll post them here. You pass the SP a schema, and it gives you a SQL statement to run. Some of the @temp table stuff could have been done with CTEs, but I save...
  • Filtered indexes - a low maintenance option to replace partitioning?
    1/18/2010 2:34:46 PM
    A preface: this wont' always replace partitioning.   But in those in between cases, where performance needs a small boost, filtered indexes may well be enough of an advantage to NOT need to partition   So here's an example   CREATE NONCLUSTERED INDEX PartitionIndex On dbo.TransactionTable (PartitionDate, TrxDate) Where(PartitionDate is null )       update dbo.TransactionTable   SET PartitionDate = GETDATE()   WHERE TrxDate < DateAdd(M, -1, Getdate())   This will automatically update the index...
Blogs RSS Feed

Latest community blog posts

  • Minimizing Fragmentation when Moving data using a Switch
    3/17/2010 11:53:13 PM
    Yesterday was the first day of the SQL Server 2008 R2 airlift.  I attended a great session on Implementing a Fast Track Data Warehouse.    Lots of really interesting information was discussed during the meeting. However, an offline discussion about switching partitioned data in from a stage table provided a good tip that could help reduce fragmentation. If you are constantly switching data into your partition table you could potentially introduce some unwanted fragmentation in your database.  Th...
  • Using SSAS MDX Calculation Color Expressions
    3/17/2010 12:10:25 AM
    Analysis Services calculations are great for storing formulas that your users need to see on a regular basis.  They also have another little feature that adds just a little more wow when your end users browse the cube.  By building a color expression on a calculation you can change either the fore color or background color of a measure value.  Here you can write an MDX expression that will change the font or background color of a cell when a user selects the calculation.  A very basic example is...
  • Free and Discounted Microsoft Learning Resources
    3/15/2010 11:06:43 AM
    I was browsing the Microsoft Learning portal over the weekend and came across the following free or dicounted learning resources for SQL Server. Free Resources: Clinic 6188: What's New in Microsoft SQL Server 2008 for Enterprise Data Platform (1 hour)   Clinic 6189: What's New in Microsoft SQL Server 2008 for Business Intelligence (1 hour) Clinic 6190: What's New in Microsoft SQL Server 2008 for Database Development (1 hour) Clinic 6258: New Features Of Microsoft SQL ...
  • SQL Agent jobs
    3/14/2010 2:46:26 PM
    Recently I was asked to provide a list of all sql jobs on a certain server running between 2 and 3 in the morning.  We have quite a few jobs and it would be time consuming to look through each to determine the time of day each runs.  So I used the sysjobs, sysjobsschedules tables to return the job name and times the jobs run. There are several jobs related tables in the msdb database: sysjobs sysschedules sysjobhistory sysjobsteps syscategories   The table names are pretty self explanatory.  The...
  • Solving All Versus (Select All) SSRS End User Confusion
    3/12/2010 11:11:39 PM
    When developing reports that use Analysis Services as a data source end user can sometimes be confused about some of the options they see in report parameters.  Anytime you have a parameter that allows for multiple values to be selected then you will see a (Select All) option that Reporting Services adds that make for an easy way to check off each item in the parameter dropdown.   If you followed most of the defaults when developing you dimensions in Analysis Services you likely also have an opt...