Viewing 15 posts - 26,386 through 26,400 (of 59,099 total)
Mauricio N (7/19/2013)
Thanks Jeff, I will review the article, it looks exactly what I need.
How'd things turn out?
--Jeff Moden
Change is inevitable... Change for the better is not.
July 25, 2013 at 8:06 pm
savycara (7/24/2013)
SELECT try_convert(date, substring(@d, 1, 4) +
CASE WHEN len(@d) = 5 THEN '0' ELSE '' END +
substring(@d, 5, 2) + '01')
This worked but I am...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 24, 2013 at 9:15 pm
james.rosser (7/24/2013)
Resolved it myself whoops! This works:
Select sd.CoreID, sd.ComputerID, sd.ResultsText
From SampleData sd
cross apply dbo.DelimitedSplit8k(sd.ResultsText, char(10))
Thanks Luis!
I don't see where you're actually using anything from the function. Are you...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 24, 2013 at 8:48 pm
Steve Jones - SSC Editor (7/22/2013)
cksid (7/22/2013)
--Jeff Moden
Change is inevitable... Change for the better is not.
July 23, 2013 at 11:47 am
Just to add to what has already been said...
You don't actually need to take a full backup to get thing back to a normal Point-In-time backup status after going to...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 21, 2013 at 11:41 am
subahan.munthamadugu (7/21/2013)
Hi all,please give command for "backup with norecovery" option.
A better thing to do would be to lookup the command in Books Online (press the {f1} key to get...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 21, 2013 at 11:25 am
To add to what Gail said, you have at least one view involved in this and you need to include the code and the table/index information for that along with...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 21, 2013 at 11:22 am
Are you saying that the EncryptedAccountNumber an encrypted version of the visible AccountNumber column?
--Jeff Moden
Change is inevitable... Change for the better is not.
July 20, 2013 at 10:30 pm
syamkakarla (7/20/2013)
Thanks for the code paul. It helped me a lot.
Take a look at the Green and Blue lines in the following chart and compare them to the skinny black...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 20, 2013 at 10:00 pm
From the sounds of it, you may be experiencing a thing called "Parameter Sniffing", which is usually a good thing, by the way. Sometimes it causes a bad plan...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 20, 2013 at 9:51 pm
Understood. So what kind of a cleanup did you need to do? In the vein of teaching someone a little about SQL, I will typically run CSV files...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 20, 2013 at 9:47 pm
Are you rebuilding indexes and stats in a regular maintenance plan? Does the query take parameters?
Please see the second link in my signature line for the best way to...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 20, 2013 at 5:35 pm
mehfuz.khaled (7/20/2013)
Anyways, I have one table as follows:
table mastertab(
op INT,
msisdn VARCHAR (12),
imei VARCHAR (20)
);
Sample...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 20, 2013 at 5:33 pm
kapil_kk (7/20/2013)
you can try this-
;WITH CTE AS(
select op,imei, DENSE_RANK() over (order by op,imei) rankno
FROM mastertab
)
select c.op, COUNT(distinct rankno) - 1 cnt
FROM CTE c
GROUP BY c.op
Try with this data and...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 20, 2013 at 5:10 pm
Still and considering the very common configuration of the WHERE clause the OP gave, the methods in the "Catch All Query" article that Sean posted will probably fit the bill.
--Jeff Moden
Change is inevitable... Change for the better is not.
July 20, 2013 at 4:42 pm
Viewing 15 posts - 26,386 through 26,400 (of 59,099 total)