Viewing 15 posts - 27,031 through 27,045 (of 59,101 total)
TheSQLGuru (4/13/2013)
--Jeff Moden
Change is inevitable... Change for the better is not.
April 13, 2013 at 9:23 pm
mister.magoo (4/13/2013)
Any ideas?
Yes, but they're probably not viable for your situation. My recommedations would all start with "Get rid of..." and "Replace the..." and end with " and kill...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 13, 2013 at 9:12 pm
opc.three (4/10/2013)
$Instances = (Get-Content 'C:\Instances.txt') # Make a text file containing your instances, one on each line
[Reflection.Assembly]::LoadWithPartialName("Microsoft.SqlServer.Smo") | Out-Null
foreach ($instance in $Instances)
{
...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 13, 2013 at 1:23 pm
The biggest problem with the current query is that it's not possible for an INDEX SEEK (and subsequent range scan) to occur on the r_mod_time column because of the formulas...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 13, 2013 at 12:57 pm
Here's an example of what I'm talking about. Of course, I don't have access to the data so the code is completely untested but this will calculate the delimited...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 13, 2013 at 12:02 pm
eseosaoregie (4/13/2013)
--Jeff Moden
Change is inevitable... Change for the better is not.
April 13, 2013 at 10:53 am
GilaMonster (4/13/2013)
If you're having problems with...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 13, 2013 at 9:48 am
davidrudd (4/12/2013)
Thanks to:
http://2smart4school.com/tsql-stored-procedure-to-get-factorial-of-a-given-number/
CREATE PROCEDURE Factorial (@num INT) AS
BEGIN
DECLARE @fact int, @query varchar(255)
SET @fact = 1
IF(@num = 0)
BEGIN
SET @fact = 1
END
ELSE
BEGIN
WHILE(@num >0)
BEGIN
SET @fact =...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 12, 2013 at 10:04 pm
ryan_xh (4/12/2013)
How is the current job market for SQL DBA in US right now? I have around 6 years of SQL DBA experience and I am trying to find...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 12, 2013 at 8:49 pm
If you're really trying to prevent blocking, then try the READPAST hint instead of the troublesome NOLOCK hint.
--Jeff Moden
Change is inevitable... Change for the better is not.
April 12, 2013 at 8:47 pm
You have some nice data there but it's useless to the people that are trying to help you because it's not "readily consumable". You'll get better help quicker if...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 12, 2013 at 8:31 pm
SQLDCH (4/12/2013)
CREATE TABLE [dbo].[LastSelectCheck](
...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 12, 2013 at 7:26 pm
Bhuvnesh (1/24/2013)
CTE is basically used to handle recursive operation not a performance boost alternative to temp table.
Not quite right. Although a CTE can certainly be used in a...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 12, 2013 at 7:18 pm
padhu.mukku (1/24/2013)
Try to...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 12, 2013 at 7:11 pm
j-1064772 (4/12/2013)
Thank you so much for your help Jeff.And yes, I was already aware of the Tally table. I must be one of your greatest fans.
Regards
Thank YOU! :blush: I...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 12, 2013 at 5:37 pm
Viewing 15 posts - 27,031 through 27,045 (of 59,101 total)