December 17, 2010 at 7:14 am
The Data Collector and CMS (Central Management Servers) both make a DBA's daily life much easier but I am very surprised how many people are not taking advantage of them.:-D
"Technology is a weird thing. It brings you great gifts with one hand, and it stabs you in the back with the other. ...:-D"
December 17, 2010 at 7:16 am
As Andy already mentioned, missing indexes in the graphical plan is a huge plus. They are usually pretty accurate or pretty close making it pretty helpful.
I will have to say that sparse columns, for those that have a lot of data, can be a pretty well overlooked feature. There can be some great savings there if the situation is right.
David
@SQLTentmaker“He is no fool who gives what he cannot keep to gain that which he cannot lose” - Jim Elliot
December 17, 2010 at 7:20 am
The XML tools are what I see used the least where they could be used more. Both XQuery and For XML have a myriad of uses and improvements over prior tools. But I still see posts in the SQL 2008 forums here where people are instatiating XML objects using the SQL 2000 system procs.
Filtered indexes are definitely a good feature. Work beautifully on large tables with bit fields that need to be filtered by routinely.
There are plenty of others, I'm sure.
- Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
Property of The Thread
"Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon
December 17, 2010 at 7:23 am
The absolute best, Pivots and for XML path to concat strings.
Oh, and replace...etc.....
December 17, 2010 at 7:33 am
I'm a big fan of making my own templates in the template explorer. Not many people in my office use them but they are a huge help getting you jump started when writing new code. Being a developer I only have templates for sprocs, tables, and functions, but I can see them being just as useful for other objects. One thing I wish they would contain is some sort of looping interface where for example I could have it prompt me for details regarding all of a new sproc's parameters. When writing the template I don't know how many params a given sproc may have but I know for each I'll need a name, data type, default (optional), input/output type (optional), and description for my header comment. It would be nice to say for a given sproc I have 10 parameters (or 10 grant statements, or whatever, just X number of something that fits a pattern), then have it automatically prompt me for this detail about each member. Maybe they'll provide such functionality in a later version.
December 17, 2010 at 7:34 am
It seems like hardly anyone noticed, but having indicators in 2008 R2 SSRS is a big deal, especially for dashboards. They save you from having to upload a bunch of custom images, then conditionally control their appearance.
Also, the MERGE command saves me lots of time when I have occasion to use it. It's nice not having to code all that logic into unwieldly parts.
December 17, 2010 at 7:34 am
The feature i use the most would be the ability to highlight a SQL object (table, view, proc) and then click Alt + F1 to see it's definition and parameters when applicable.
December 17, 2010 at 7:57 am
fthiemonge (12/17/2010)
I'm a big fan of making my own templates in the template explorer. Not many people in my office use them but they are a huge help getting you jump started when writing new code. Being a developer I only have templates for sprocs, tables, and functions, but I can see them being just as useful for other objects. One thing I wish they would contain is some sort of looping interface where for example I could have it prompt me for details regarding all of a new sproc's parameters. When writing the template I don't know how many params a given sproc may have but I know for each I'll need a name, data type, default (optional), input/output type (optional), and description for my header comment. It would be nice to say for a given sproc I have 10 parameters (or 10 grant statements, or whatever, just X number of something that fits a pattern), then have it automatically prompt me for this detail about each member. Maybe they'll provide such functionality in a later version.
Do you know about Template Parameters?
You have a line like:
set @stoptime = <stop_time, datetime, NULL>
Then press Ctrl + Shift + M and up pops a "Specify Values for Template Parameters" window. Each name and data type is listed, along with the default value. (In the case above, stop_time is the name, NULL is the default value.) If you have multiple occurances of the same name, it's only shown once, but all are replaced with the value when you commit it.
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
December 17, 2010 at 8:04 am
Passing a table valued parameter to a table valued function. OH YEAH!!!
December 17, 2010 at 8:06 am
yes, i use templates all the time. Big time saver, good call!
December 17, 2010 at 8:18 am
As a part time data analyst and part time roaming developer, I see a lot of database, and if I were going to stand up and give a talk about one area that many database developers could improve upon, it would be taking advantage of some of the more robust data modeling features like foreign keys, check constraints, computed columns, unique keys, views both indexed and non-indexed,and even role based security. These are not really new features, they actually pre-date SQL Server, it's just that in 2010 a lot of developers still don't use them. Buggy T-SQL code and bad data can be identified upstream during development or the ETL process, rather than downstream by the end user, if the data model is properly designed not to contain it.
As for SQL Server specific features, a lot of developers don't know about DTA or data management views for gathering performance or system information.
"Do not seek to follow in the footsteps of the wise. Instead, seek what they sought." - Matsuo Basho
December 17, 2010 at 8:22 am
Running a query across multiple servers in a group.
Filtered Indexes. Makes up for a crappy design that I inheirited and can't (yet) rewrite.
Intellisense. I plan on adding the Red Gate SQL Prompt as I hear that this is even BETTER.
CTE. I don't need the recursion but I use this all the time to make stuff work without temp tables. I did not know that you could put a CTE in a view. I tried it and it worked. Seems reasonable given what a view actually is. I had not seen it stated that it was supported.
Then, IMHO, the best under rated thing about SQL Server is not IN SQL Server at all. It's you lot and this place!
ATBCharles Kincaid
December 17, 2010 at 8:24 am
Good post Charles, the SQL community and this website deserve a lot of credit and praise as well!
December 17, 2010 at 8:28 am
Being able to use SQLCMD mode in the SSMS I think is a great feature. I tend to write a lot of stand alone scripts, so being able to use sqlcmd variables to span batches and as table names in a From clause is very useful. It has allowed me to write much more reusable code, and a lot less dynamic sql.
December 17, 2010 at 8:52 am
CROSS APPLY -- try it you'll like it! 😀
Viewing 15 posts - 16 through 30 (of 67 total)
You must be logged in to reply to this topic. Login to reply