Viewing 15 posts - 1,891 through 1,905 (of 2,462 total)
Sean Lange (9/11/2014)
Alan.B (9/10/2014)
months as(
select 1 as MoNo, 'January' as Mo union all
select 2 as MoNo, 'February' as Mo union all
select 3 as MoNo, 'March' as Mo union all
select...
-- Itzik Ben-Gan 2001
September 11, 2014 at 8:46 am
months as
(
select 1 as MoNo, 'January' as Mo union all
select 2 as MoNo, 'February' as Mo union all
select 3 as MoNo, 'March' as Mo union all
select 4 as MoNo,...
-- Itzik Ben-Gan 2001
September 10, 2014 at 7:00 pm
I love SSMS 2012 and have not had any of the issues you describe. I'd reinstall or repair ssms.
-- Itzik Ben-Gan 2001
September 10, 2014 at 4:58 pm
SQL Guy 1 (9/10/2014)
We have transactional replication. We have a index rebuilding job on publisher, but subscriber is still highly fragmented.
Should we create defragmentation job on subscriber, or...
-- Itzik Ben-Gan 2001
September 10, 2014 at 4:48 pm
Steve Jones - SSC Editor (9/10/2014)
Jeff Moden (9/10/2014)
Solomon Rutzky (9/9/2014)
In the end, isn't this why Microsoft gave us CLR Integration?
Heh... yeah... just like they gave us the ability to write...
-- Itzik Ben-Gan 2001
September 10, 2014 at 9:33 am
I will also recommend Gail's article.
The logic for your query will look like this (note that you did not detail the expected behavior for if only @enddate has a...
-- Itzik Ben-Gan 2001
September 10, 2014 at 9:31 am
IF @user > '' --This checks for not null and not empty
Cool. I never knew you could do that, very interesting :laugh:
Edit: sql code tag messed up my "greater than"...
-- Itzik Ben-Gan 2001
September 9, 2014 at 10:51 pm
Ok, I had a few minutes to kill. There will be a little more work to get this to work with what you have done thus far.
The Function:
CREATE FUNCTION...
-- Itzik Ben-Gan 2001
September 9, 2014 at 8:34 pm
I don't have access to a pc at the moment otherwise I would give a better example...
You could accomplish this using a splitter and splitting the strings using the space...
-- Itzik Ben-Gan 2001
September 9, 2014 at 7:25 pm
To be fair, Microsoft did give us master data services which has a CLR udf splitter (an awful one) that still requires enabling CLR on so most DBAs just say...
-- Itzik Ben-Gan 2001
September 9, 2014 at 2:54 pm
First, for what it's worth - I started as a network guy and moved into SQL because I loved it (I liked Cisco). I even took a little pay cut...
-- Itzik Ben-Gan 2001
September 4, 2014 at 9:22 am
gbritton1 (9/3/2014)
select * from dbo.[DelimitedSplit8K](' ', ' ')...
-- Itzik Ben-Gan 2001
September 3, 2014 at 1:07 pm
I am having some problem understanding joins (Specially left,right and outer apply)when it comes to more then 3 tables.... which result set is formed first and then second...
When you join...
-- Itzik Ben-Gan 2001
September 2, 2014 at 1:01 pm
First I would see if the query returns anything when you replace
o.StatusID in (Select osl.val from dbo.SplitStringToIntegerArray(@OrderStatusList, ',') osl ) and
o.OrderTypeID = 1
with
where o.OrderTypeID = 1
If you...
-- Itzik Ben-Gan 2001
September 2, 2014 at 12:21 pm
If I understand your question correctly you need to do what is referred to as a Left Anti Join Semi Join.
There are a couple ways you can do this:
DECLARE...
-- Itzik Ben-Gan 2001
August 12, 2014 at 5:15 pm
Viewing 15 posts - 1,891 through 1,905 (of 2,462 total)