Viewing 15 posts - 9,346 through 9,360 (of 9,398 total)
Welcome to trial by fire! 😀
For the transaction logs, there's a lot to understand about the different recovery models. This site has a good stairway on the topic at...
February 12, 2013 at 8:31 am
I think Gail is saying that the query will use (and benefit from using) the index. However, if you sort by a field using an ORDER BY clause that's...
February 11, 2013 at 12:55 pm
Unfortunately, SQL Server doesn't like to have concatenated stuff passed to parameters. So, you could do something like this:
declare @strBody varchar(255);
select @strBody = 'This is to test that today...
February 11, 2013 at 11:46 am
I cannot tell you how many times I've been busted for forgetting to alias things. 😀
February 11, 2013 at 11:35 am
Much better than my suggestion - I didn't even consider that. I love it! Thanks.
February 11, 2013 at 9:24 am
Is this what you're looking for?
insert into different_table(computername, auditid, auditdate)
select computername, auditid, auditdate
from original_table a1
where auditdate = (select max(auditdate)
...
February 11, 2013 at 6:06 am
Did you resolve why you get the names of your variables and not the values? When you set @message_body, you shouldn't quote your variable names because they're treated as...
February 11, 2013 at 5:55 am
I'm not entire sure what you're asking, but it looks like you want to semi-automate some SQL creation scripts. If this is the case, then you might want to...
February 11, 2013 at 5:47 am
Is LINQ what generated a query that looks like that? I don't use it myself, since it seems like just another layer of obfuscation around using SQL and I...
February 7, 2013 at 6:48 am
My question for you is about timing. If the query is run from the .NET application and takes 30 seconds, when it's run again right away, does it drop...
February 7, 2013 at 6:36 am
There's several different avenues of approach here and I'm sure I won't see them all without having the DDL to play around with.
The first thing I notice is that a...
February 6, 2013 at 7:05 am
I agree with SQLRNNR - SQL Sentry Plan Explorer is a good product. There's a free version and a paid version, which is pretty cheap. It gives you...
February 6, 2013 at 6:32 am
So you probably have a deadlock situation - both pieces of code are waiting on a lock to the same object. I believe the X in the last part...
February 4, 2013 at 11:10 am
Whenever I have a wait stats question, I look up Paul Randall's list: http://www.sqlskills.com/blogs/paul/wait-statistics-or-please-tell-me-where-it-hurts/
According to this page:
This is simply the thread waiting for a lock to be granted and indicates...
February 4, 2013 at 8:38 am
Anthony is right - please look at the MSDN page for how to execute the sp_send_dbmail procedure. He gave you a link to the page. This is one...
February 4, 2013 at 6:41 am
Viewing 15 posts - 9,346 through 9,360 (of 9,398 total)