Hey, ho, where’d you go…

PASS
Ohio? I'm presenting on Thursday to the Columbus SQL Server Users Group, home of the newly minted MVP, Jeremiah Peschka (congrats again). It's to be a virtual presentation through live meeting. The topic is a Understanding Execution Plans. This time I hope that one of us remembers to hit the record button unlike last time when I did this presentation for the PASS AppDev Virtual Chapter. If you're in the area, come on down and meet me, virtually. Show runs from 6:30-8:30, although all that time is not my presentation, so I suspect Jeremiah has some more fun planned.
Read More

Ad Hoc Queries Don’t Reuse Execution Plans: Myth or Fact

SQL Server, T-SQL
Another frequently heard story is that stored procedures get and reuse execution plans, but ad hoc queries do not. A lot of people believe this and say as much online and in the real world. Unlike my last myth, this time, I'm going to give you the DBA answer to this question. It depends. There are ad hoc queries and there are ad hoc queries. The classic ad hoc query looks like this: DECLARE @sql NVARCHAR(MAX), @value int; SET @value = 43668; SET @sql = 'SELECT * FROM Sales.SalesOrderHeader AS soh '; SET @sql = @sql + 'JOIN Sales.SalesOrderDetail AS sod '; SET @sql = @sql + 'ON soh.SalesOrderID = sod.SalesOrderID '; SET @sql = @sql + 'WHERE soh.SalesOrderID = ' + CAST(@value AS NVARCHAR); EXEC (@sql); And as ad…
Read More

Free Stuff and a SQL Server Standard Update

Misc, PASS
Great news. We've managed to get one article all the way through the process. We'll have our first publication out within a couple of weeks. We might even get a second out at the PASS Summit. We're working through the final details on contracts, author payments and the layout of the magazine, including cover art. That brings up a question. The intent is to publish high quality articles by great authors (and believe me, we've got exactly that coming down the pike). In order to reflect this, instead of just an HTML layout, we're going with Adobe Acrobat so that we can get that magazine feel, but online. My question... We're trying to decide what to do with cover art. Our options are: Some type of stylish picture, say, stamps…
Read More

SQL Server Standard Update

Misc, PASS
Just to keep people who might be interested up to date on what's happening with the SQL Server Standard relaunch. I've received some fantastic abstracts on a wide range of topics from a diverse group of SQL Server DBA's and Developers. From that, we've got a lot of articles in the hopper going through technical edits and second drafts. Three articles have made it all the way to copy edit. They should be done soon. I'm positive you'll see at least one of them, maybe two, before the PASS Summit. I need even more abstracts so I can publish even more articles. If you meet the qualifications to write for us, please submit an abstract to my PASS email address: grant.fritchey - at - sqlpass -dot- org (unobfuscate the obvious).…
Read More

Pre-Compiled Stored Procedures: Fact or Myth

SQL Server, T-SQL
There's a very common belief among DBA's: Stored procedures are pre-compiled. I had someone tell me all about it just last week. There are lots of sources that say what I'm getting ready to say, so this really shouldn't come as news to anyone,but it will. No, they're not. Stored procedures are not pre-compiled. When you create or update a stored procedure on the server, it gets a syntax check. But there is no compile process, let alone a pre-compile process. That stored procedure exists exactly as it is named, a procedure that is stored on the server. It's just a collection of TSQL code, possibly with some parameters, waiting to be called. Until it's called, it is not ready to be executed. Don't believe me? I'm not a huge…
Read More

Minor Celebration

Misc
A little cheap thrill for me. I passed 50,000 views on the blog yesterday. Thanks to everyone who has stopped by to read my fumbling attempts to understand SQL Server better. I hope some of the posts have proved useful to you. I learn a lot from putting them together.
Read More

Vote for Mr. LaRock

PASS
It is rapidly coming up on election time at the Professional Association of SQL Server users (PASS). Once more, a person I respect and admire is running for office. Tom LaRock has been a volunteer with the organization longer than I have (I'm approaching four years) and for the entire time I've been involved he's been in the thick of things, working for the organization and working with the other volunteers. He does great work. He's presented at the Summit, three times I think, and he's presenting again this year. He's one of the people chiefly responsible for the new Virtual Chapters. He's been serving on the Board as an appointee. I think it's finally time to make it official and elect this great guy to the board. He'll do a good…
Read More

Recap of Cape Cod .NET User’s Group

PASS
I presented last night at the Cape Cod .NET User's Group. What a great bunch of people. About 20 people showed up at the nice facility they're using, Venture Think Together. A little pizza and a little chat and the meeting got started. Marcia McLean, their president, gave me a nice little introduction and I went through my slides. As I did them, I kept thinking about some of the advice offered up by Brent Ozar yesterday. Suddenly my slides seemed so wordy. It started to throw me off, but I just ignored it & plowed on. Overall, I think the presentation went well. I hit a couple of snags on some of the examples that I'm going to tweak before I present this at the PASS Summit in just…
Read More

PASS Virtual Chapters

PASS
If you're not a member of the Professional Association of SQL Server users, PASS, why not? No, I'm sorry. I meant to say, If you're not a member of PASS, you may not have heard about the change between special interest groups and the new Virtual Chapters. What used to be the SIG's has been repurposed, rebuilt and, let's say it, reborn, as Virtual Chapters. There's a whole new energy and all new web sites with content and presentations and more free training than you can shake a stick at. There are great opportunities to begin networking, and we all know how important that is as a means of career building. It's like having a really vibrant, active, useful user's group available 24/7. Get on over and check out the offerings…
Read More