Sometimes It Is Just The Simple Things
Last Day to Register for Workshop Tomorrow
- Learn More or Register: Virtual Workshop: SQL Server Performance (Mar 12!)- key concepts, learning and how-to information for working with SQL Server
SelectViews Video Program
Talking to experts - the show today features Kevin Kline, talking about his experiences in field. Also, Adam Jorgensen is on the show today talking about his experiences helping clients with BI projects and more.
[Watch the Show]
Sometimes It Is Just The Simple Things
Every now and then I find myself slapped with the ultra-basics. I get dropped in checking on an issue (often performance) or building out queries related to other queries or... well, whatever. You start with a level 200 or 300 type solution to the issue and then suddenly realize that you should have started more simply.
Today's thought is to not forget indexes. This is, in my experience, a common thing with those that are more developer than administrators for SQL Server. SO many times I've seen applications built, tested and deployed without indexes defined, or with only indexes on primary keys. Of course the application allows searches, has reporting queries and other areas where indexes are clearly needed, but since the development models had limited data, performance was fine... until the database was loaded with real data.
So, my suggestion - review your schemas. More specifically, look at your tables and see what's there now in terms of indexes, compare it to how your system is used. You can use sp_helpindex <table> to see what's up. For example:
sp_helpindex tbl_MyTable
This will return a list of the indexes defined, the columns they include and so-on. Compare the columns that are indexed with your application. You're not only looking for search columns, you're also looking for indexes that will never be used. Those are candidates for further review and possible removal (extra indexes can add unnecessary work for SQL Server to maintain).
So, there's your tip of the day. Start basic. MORE basic than it seems you may need to. Make sure, if you're chasing a performance issue, that you at least have the supporting indexes in place. If so, then you can start looking at other things that may be impacting that speed.
Featured Script
Split a string based on delimiter character
Function to take a delimited string, parse the results with a passed delimiter and return a table with one column of type var... (read more)
See you online!
Stephen Wynkoop,
Founder Microsoft SQL Server MVP swynk@sswug.org
Facebook Twitter @swynk
|
|
 | Click Here For Free SSWUG Premium Content BakBone is providing FREE access to some of SSWUG’s best content relating to data backup, recovery and availability. Download or view the script, article or short video. |
Featured Products For Your Review
The following products are in the Product Directory, and may help in your use of your database engine. Take a look when you get
a minute.
|
Idera-SQL toolbox
|
|
SQL toolbox is an advanced collection of must-have tools for SQL Server DBAs and Developers. With tools for SQL Server database backup, virtual data recovery, data and object comparison, and more than 20 administrative tasks, SQL toolbox provides the tools DBAs and Developers need to save hours of time performing day-to-day tasks. PLUS, the SQL toolbox is a great value at over $600 off the price of purchasing the tools individually.
|
|
DocAve Storage Optimization Suite
|
|
BLOBs Kill SQL Servers - AvePoint has the Antidote
DocAve Extender moves BLOBs off of SQL servers, dramatically
reducing the size of SharePoint content databases. Extended
content acts in every way like it's in SharePoint. DocAve
Archiver adds data lifecycle management to the picture, moving
content to tiered storage.
|
|
SQL MetaTool
|
|
SQLMetaTool is a new multi-function utility tool for that extracts and consolidates SQL Server database metadata. It includes a source code repository, database object history, search functions, a data dictionary, a 'suspect' column analyzer, graphs of index fragmentation, table sizes and database size over time and a dependency viewer. Supports SQL2000, SQL2005 and SQL2008.
|
| |
Find out about these and other products in the Product Directory.
|
Today's Articles Note: 'Guest' articles below will be available for seven days to registered guests.
SQL Server Topics
Developer Topics
Oracle Topics
XML Topics
DB2 Topics
Summaries
| Migrating Departmental Data Stores to SQL Server, Part 4: Model the System (Decide on the Destination)
| | (Buck Woody) This is the third article in a series of a formal process you can follow to migrate data stored in “departmental... [more] [Click Here to Read More...] [TOP] |
Setting SQL Server ErrorLog Retention and Rollover with Powershell
| | (Jonathan Kehayias) In my last blog post I mentioned that I have been writing a lot of Powershell to simplify auditing and ma... [more] [Click Here to Read More...] [TOP] |
SQL Server 2008 R2 UNICODE Compression – what happens in the background?
| | (Peter Scharlock) SQL Server 2008 R2 added a much requested feature: Unicode compression. It addresses the need to compress U... [more] [Click Here to Read More...] [TOP] |
Populate TreeView Control with Tables, Views and Columns from a SQL Server Database
| | (Dennis Wallentin) This is the second blog post about populating a TreeView control. In the first blog post, Populate TreeVie... [more] [Click Here to Read More...] [TOP] |
ASMX ScriptService mistakes: Installation and configuration
| | (Dave Ward) Continuing my series of posts about ASMX services and JSON, in this post I’m going to cover two common mistakes t... [more] [Click Here to Read More...] [TOP] |
PageMethods In ASP.NET AJAX
| | (Suresh Kumar Goudampally) Page Methods is a new mechanism in ASP.Net application where the server code cab be bound to Asp.N... [more] [Click Here to Read More...] [TOP] |
Tool for generating DGML graphs showing why your object can’t be collected (VisualGCRoot)
| | (Tess Ferrandez) Visual Studio.NET 2010 has a new feature that allows you to create nice directed graphs with a markup langua... [more] [Click Here to Read More...] [TOP] |
Visual Brush in WPF
| | (Mahesh Chand) The Visual object in WPF represents a visual control. That said, you can pretty much create a visual that can ... [more] [Click Here to Read More...] [TOP] |
Inserts Experiencing an Increasing CPU Consumption
| | (Christian Antognini) Last week I had to analyze a strange performance problem. Since the cause/solution was somehow surprisi... [more] [Click Here to Read More...] [TOP] |
SQL Developer: Install Unit Testing Repository
| | (chet justice) I'm not a big tools guy, I prefer SQL*Plus to anything else. I especially don't like paying for tools (yes, th... [more] [Click Here to Read More...] [TOP] |
ORA-02050 Remote DB in Doubt? How About Gone for Years??
| | (Kellyn Pedersen) Interesting Issue… I was working on an interrupted distributed, (remote) transaction that I’d come across i... [more] [Click Here to Read More...] [TOP] |
Creating a NIEM IEPD, Part 3: Extend NIEM
| | (Priscilla Walmsley) In the first two articles of this series, you learned to model a NIEM exchange, map it to the NIEM base ... [more] [Click Here to Read More...] [TOP] |
Serializing Encoded XML Documents using LINQ to XML
| | (Eric White) Writing encoded (utf-8, utf-16, etc.) documents using LINQ to XML is pretty straight-forward, but there is one i... [more] [Click Here to Read More...] [TOP] |
What's The Inspiration for Semantic Web Innovation? (Part 1)
| | (Jennifer Zaino) The semantic web is an innovation upon an innovation. As this blog regularly covers, innovations are being b... [more] [Click Here to Read More...] [TOP] |
March 2010- Unintended consequences
| | We've all done it. You see a great new feature in DB2 and jump headling into using it without fully appreciating all of the ... [more] [Click Here to Read More...] [TOP] |
DB2 Performance and cost savings tip: Don't maintain unused stuff (LASTUSED)
| | (Henrik Loeser) When you enjoying a regular life, over time you usually accumulate a lot of stuff. Some (most?) of that stuff... [more] [Click Here to Read More...] [TOP] |
Composite business applications in WebSphere Business Services Fabric, Part 2: Modeling and implementing a composite business application
| | (Diana Lau and Ying Sun) Using a customer relationship management (CRM) example, this article series shows you how to create ... [more] [Click Here to Read More...] [TOP] |
|
Guest Articles [Top]
The article listings denoted as GUEST are random archive articles. Those articles are always available to dues-paying members, but are also available to guest newsletter subscribers for a period of 7 days from the release of this newsletter. Each newsletter features a new set of archive articles for each of the topics.
It's our hope that when you see the quality and range of articles in the archives, you'll see what a great value your SSWUG dues-paying membership really is.
Click Here to Activate Membership Today - it only takes a minute.
Home |
Media |
Forum |
Articles |
Scripts |
FAQ's |
List Server |
Whitepapers |
Products |
Editorials |
Original Content
Newsletters |
Upcoming Events |
News |
About Us |
Jobs |
Privacy |
Terms of Service |
Contact Us
© 2009 Bits on the Wire, Inc. All Rights Reserved.
|
|