Viewing 15 posts - 5,476 through 5,490 (of 7,597 total)
I don't like the extra overhead of generating hundreds of rows every time when you only need a dozen or two.
A "standard" sequential-numbers tally table can easily handle those types...
January 7, 2015 at 9:31 am
Grant Fritchey (1/6/2015)One other point, I'm not sure what industry you're working in, but many, especially healthcare, now have criminal penalties if you expose personal data to people without permission...
January 6, 2015 at 5:17 pm
First thought for first task:
Compare one customer's pattern to the concatenated pattern of another customer(s). This should alleviate the off-by-n issue. Naturally you could also reduce the repeating...
January 6, 2015 at 4:42 pm
Eirikur Eiriksson (1/6/2015)
ScottPletcher (1/6/2015)
Eirikur Eiriksson (1/6/2015)
ScottPletcher (1/6/2015)
Jeff Moden (1/4/2015)
asita (1/3/2015)
Nolock is ignore the locks (please ignore it)
Trust me Dhani, we know what it does and folks in-the-know can't just ignore...
January 6, 2015 at 3:59 pm
Great, glad it helped. It was a fun exercise :). And thanks so much for posting the final solution so I could see it! Yeah, I thought...
January 6, 2015 at 3:51 pm
DECLARE @CopyParams TABLE (
CopyFromVIEGuid uniqueidentifier,
CopyToVIEGuid uniqueidentifier
)
UPDATE [dbo].XdsInboundSecurity
SET ClientCertificateThumbprint = (
Select...
January 6, 2015 at 3:40 pm
Keep in mind that a proc exists in that view as long as it is still in the procedure cache. As long as the proc is in the cache,...
January 6, 2015 at 3:19 pm
Eirikur Eiriksson (1/6/2015)
ScottPletcher (1/6/2015)
Jeff Moden (1/4/2015)
asita (1/3/2015)
Nolock is ignore the locks (please ignore it)
Trust me Dhani, we know what it does and folks in-the-know can't just ignore it. It's...
January 6, 2015 at 2:07 pm
I agree, NEVER use the GUIs for backups and restores. For one thing, you have no record of what was done, whereas a script can be enhanced over time.
I...
January 6, 2015 at 1:17 pm
For a table that size, and esp. one that apparently static, I'd make sure the statistics were based on the entire table rather than just a small sampling.
You can see...
January 6, 2015 at 1:10 pm
Jeff Moden (1/4/2015)
asita (1/3/2015)
Nolock is ignore the locks (please ignore it)
Trust me Dhani, we know what it does and folks in-the-know can't just ignore it. It's normally a bad...
January 6, 2015 at 12:51 pm
------------------------------------------------------------------------------------------------------------------------
--declare temp tables and variables
IF OBJECT_ID('tempdb.dbo.#sql') IS NOT NULL
DROP TABLE #sql
CREATE TABLE #sql (
ident int IDENTITY(1, 1) NOT NULL,
...
January 6, 2015 at 10:15 am
I'd probably generate dynamic SQL in this case, as it's much clearer to me. Sample below. I'm sure it will need tweaked but it should give you enough...
January 5, 2015 at 4:12 pm
GilaMonster (12/31/2014)
Luis Cazares (12/30/2014)
Yes, it's possible, but I wouldn't advice on using decimals on calculations as it's easy to get it wrong.
It's also far less clear than a DATEADD for...
January 2, 2015 at 1:02 am
Viewing 15 posts - 5,476 through 5,490 (of 7,597 total)