Viewing 15 posts - 2,566 through 2,580 (of 5,843 total)
stuart.hemming (5/9/2013)
I'm hoping someone can help me with a SQL query I'm trying to write; I'm relatively new to SQL so please bear with me if this is a numpty...
May 9, 2013 at 9:54 am
Here is an interesting solution that could be more efficient (didn't test that):
select
DT,
CAST(dt AS decimal(29,15))*86400 AS decdtsec2,
SecondsSince_19000101 =
-- seconds for whole days
(datediff(dd,0,a.DT)*000000000086400)+
-- seconds since start of day
datediff(ss,dateadd(dd,datediff(dd,0,a.DT),0),a.DT)
from
(...
May 8, 2013 at 2:27 pm
I would probably make sure I have installed all .NET Framework patches and especially upgrade my tools install to SQL 2012 SP1 CU(latest).
May 8, 2013 at 1:56 pm
See anything in the Windows Application Error log?
May 8, 2013 at 10:14 am
1) install a copy of SQL 2012 Books Online. It is an INCREDIBLE, FREE resource. In this case it is really perfect for you because it has a...
May 7, 2013 at 6:59 am
http://blogs.msdn.com/bartd/archive/2006/09/09/Deadlock-Troubleshooting_2C00_-Part-1.aspx
Note there are 2 additional parts to this blog series.
There is also several Profiler Events under the Locks category that can show detailed information about deadlocks.
May 7, 2013 at 6:53 am
This is from my Common TSQL Mistakes SQL Saturday session, which I have presented over 50 times now at various venues. Hopefully you can adapt it to your needs...
May 6, 2013 at 6:23 am
Yeah - sp_whoisactive is THE tool for monitoring current activity on a sql box. Here is a link to a 30-day blog post series he did on all the...
May 3, 2013 at 10:28 am
You do work in the second query which doesn't happen in the first. I see no reason to expect the second query to not be some (microseconds?) slower than the...
May 2, 2013 at 10:09 am
Sean Lange (5/1/2013)
Edward-445599 (5/1/2013)
Hi what’s the best to way to drop out of a cursor if a condition is meet?Many thanks
Are you sure you even need a cursor? Given that...
May 2, 2013 at 6:41 am
There are quite a number of things that could be at fault here, especially given the clustering setup you have. I would review every error log you can get...
May 2, 2013 at 6:40 am
GilaMonster (5/1/2013)
May 2, 2013 at 6:36 am
JimS-Indy (4/30/2013)
April 30, 2013 at 1:30 pm
we cannot make use of a picture of a schema to build a query from. I asked you specifically to supply what would enable us to help you. ...
April 30, 2013 at 11:56 am
TheSQLGuru (4/29/2013)
some people create database names that REQUIRE brackets (like 12345), so I would try something like this:from [' + name + '].dbo.mytable ...
same goes for table names too, btw
How...
April 30, 2013 at 10:14 am
Viewing 15 posts - 2,566 through 2,580 (of 5,843 total)