Viewing 15 posts - 721 through 735 (of 2,462 total)
I'm using a temp variable so you can easily copy/paste this code and run it locally. Note that you need to have delimitedsplit8K created for this to work.
DECLARE @cap2 TABLE...
-- Itzik Ben-Gan 2001
May 11, 2016 at 8:51 pm
drew.allen (5/11/2016)
Alan.B (5/11/2016)
drew.allen (5/11/2016)
-- Itzik Ben-Gan 2001
May 11, 2016 at 8:34 pm
drew.allen (5/11/2016)
Eric M Russell (5/11/2016)
TheSQLGuru (5/11/2016)
Eric M Russell (5/11/2016)
drew.allen (5/11/2016)
Eric M Russell (5/11/2016)
-- Itzik Ben-Gan 2001
May 11, 2016 at 3:17 pm
Now that I'm at a computer....
Not knocking Luis' solution but calendar tables are perfect for this kind of thing as they are highly reusable and even more simple than a...
-- Itzik Ben-Gan 2001
May 11, 2016 at 1:04 pm
Off the top of my head...
If you are interested in SQL Development then maybe consider learning about/creating stored procedures and functions.
If you are interested in the database administration...
-- Itzik Ben-Gan 2001
May 11, 2016 at 10:38 am
As Eirikur suggested, actual (not the estimated ones) execution plans would be helpful. I suspect that this has something to do with bad/out-of-date statistics.
-- Itzik Ben-Gan 2001
May 11, 2016 at 8:20 am
I'd like to pile on and say a Tally Table is the best performing and most simple solution.
That said, another high-performing and very simple solution would be one that...
-- Itzik Ben-Gan 2001
May 11, 2016 at 8:15 am
Brandie Tarvin (5/11/2016)
Alan.B (5/11/2016)
-- Itzik Ben-Gan 2001
May 11, 2016 at 8:02 am
No problem.
-- Itzik Ben-Gan 2001
May 11, 2016 at 7:36 am
Brandie Tarvin (5/11/2016)
dastagiri16 (5/10/2016)
Can we configure Merge Replication ..Like sever A(publisher) - server b(subscriber) and sever b(publisher) to server C(subscriber) ?
The only way to know is to try it. But...
-- Itzik Ben-Gan 2001
May 11, 2016 at 7:19 am
initials_mi (9/18/2014)
I came across the same situation and I found the working solution for it.Here is the link:
http://www.ittutorials.in/source/sql/sql-function-to-extract-only-numbers-from-string.aspx
A set-based solution that does not use a loop is the faster way...
-- Itzik Ben-Gan 2001
May 11, 2016 at 7:01 am
You can accomplish this using DelimitedSplit8K, note the "splitter" referenced in my signature. You would split the user column using the pipe "|" as your delimiter. Post back if you...
-- Itzik Ben-Gan 2001
May 11, 2016 at 6:36 am
This is probably the best sub forum to post this question provided you are running SQL 2012. There's also an XML sub forum but, since this is a SQL/XML question...
-- Itzik Ben-Gan 2001
May 10, 2016 at 7:55 pm
To quote Ned Flanders from the Simpsons, "As melon scratchers go, this one's a real honeydoodle."
There's a better solution out there and I have a few ideas how to speed...
-- Itzik Ben-Gan 2001
May 10, 2016 at 7:27 pm
If you are on 2014 you don't want 2008 execution plans. 2014 has a new cardinality estimator. If you have time to update your version of SQL then you should...
-- Itzik Ben-Gan 2001
May 10, 2016 at 5:16 pm
Viewing 15 posts - 721 through 735 (of 2,462 total)