Viewing 15 posts - 826 through 840 (of 2,462 total)
Some people beat me to it but this was my test:
SET NOCOUNT ON;
CREATE TABLE #temp (ID int identity primary key, [Date] DATE NOT NULL);
CREATE INDEX dt ON #temp([date]);
INSERT INTO...
-- Itzik Ben-Gan 2001
April 20, 2016 at 12:33 pm
Luis Cazares (4/20/2016)
WITH Table1(ID,Date) AS
(SELECT ID,Date FROM (
VALUES
(1 ,'1/1/1900')
,(2 ,'1/1/1900')
,(3 ,getdate() )
,(4 ,Getdate() )
) AS X(ID,Date))
SELECT
T1.ID
,T1.Date
,CASE
WHEN...
-- Itzik Ben-Gan 2001
April 20, 2016 at 10:55 am
Nice one.
-- Itzik Ben-Gan 2001
April 19, 2016 at 9:01 pm
Simpy put - when you create a maintenance plan and schedule it you are creating a new SQL Agent Job that runs your "maintenance plan" at a time of your...
-- Itzik Ben-Gan 2001
April 19, 2016 at 3:26 pm
singhamitpal (4/19/2016)
I’VE have been advised to stay away from the stored procedures meaning the business logic should NOT be stored in stored procedures, except where really really...
-- Itzik Ben-Gan 2001
April 19, 2016 at 3:20 pm
This is a very interesting subject, one of spent a lot of time looking into and something worth really understanding when dealing with "Ranking" functions. First (in case you run...
-- Itzik Ben-Gan 2001
April 18, 2016 at 6:22 pm
Also...
order by T.samplePartnerCode
What's the purpose of this other than to make your query slower? If you truly need a presentation ORDER BY let the application do it.
-- Itzik Ben-Gan 2001
April 18, 2016 at 5:49 pm
doug moore (4/18/2016)
DundasOlapDataProvider > Dundas.Olap.Data.DimensionDescriptor
we moved away from this dundas and moved towards Telerik....
-- Itzik Ben-Gan 2001
April 18, 2016 at 10:26 am
Well, I got this one wrong. I know that at least one of the Friday shirts has boats on it though...
-- Itzik Ben-Gan 2001
April 18, 2016 at 10:12 am
Good stuff Jeff!
-- Itzik Ben-Gan 2001
April 18, 2016 at 8:27 am
les.61 (4/17/2016)
-- Itzik Ben-Gan 2001
April 17, 2016 at 9:17 pm
You can use NGrams8K for a set-based way of solving this kind of thing.
The function:
CREATE FUNCTION dbo.NGrams8k
(
@string varchar(8000), -- Input string
@N ...
-- Itzik Ben-Gan 2001
April 17, 2016 at 8:49 pm
This will do the trick (note my comments).
DECLARE @yourTable TABLE (someString varchar(100));
INSERT @yourTable
VALUES ('DDR Return PP12345'),('DDR Resturns PP12356'),('DDR Retunrs PP12367');
SELECT someString,
...
-- Itzik Ben-Gan 2001
April 17, 2016 at 8:07 pm
[Quote]1. Moving mdf,ldf,tempdb to seperate drives.[/quote]
Yes, you want to do that anyhow but yes, do that.
2. Create 2 server one for transactions and one for reporting ,replicating data to second...
-- Itzik Ben-Gan 2001
April 17, 2016 at 7:55 pm
I know thread is a little old but this is exactly the kind of thing you could do with a good NGrams8K function. Here's the function:
CREATE FUNCTION dbo.NGrams8k
(
@string...
-- Itzik Ben-Gan 2001
April 16, 2016 at 11:20 pm
Viewing 15 posts - 826 through 840 (of 2,462 total)