Viewing 15 posts - 1,531 through 1,545 (of 2,007 total)
R.P.Rozema (9/15/2011)
It's not duplicates introduced by the splitter that should be eliminated, it's duplicates in the input that need to be removed per the requirement.
Ah, reading fail. I didn't spot...
September 15, 2011 at 8:54 am
R.P.Rozema (9/15/2011)
edit: sorry, missed the group by
edit 2: the requirement "non duplicate rows" is not met yet. You could try something like this:
SELECT...
September 15, 2011 at 7:44 am
YTZ (9/15/2011)
EXEC sp_MSForEachTable ‘ALTER TABLE ? CHECK CONSTRAINT ALL’
Hmm, seem to have missed a bit?
USE databasename
GO
EXEC sp_MSForEachTable 'ALTER TABLE ? NOCHECK CONSTRAINT all'
EXEC sp_MSForEachTable 'DELETE FROM ?'
EXEC sp_MSForEachTable 'ALTER TABLE...
September 15, 2011 at 7:25 am
Assuming I've read your requirements properly (your requirements are insane btw, sounds more like an academic problem than a real world one). . .
First, lets create some sample data: -
DECLARE...
September 15, 2011 at 6:02 am
Congratulations! Well deserved, your articles are always useful and insightful.
September 14, 2011 at 7:02 am
My advice will be unpopular, but I struggled to find my first development position so started off working for free at an NHS business intelligence solutions provider.
I had some difficulty...
September 14, 2011 at 7:00 am
What you're talking about is pretty much impossible to do accurately.
For example, to get the country out of that string, you'd need to already have a list of every country...
September 14, 2011 at 6:41 am
wburnett_1 (9/13/2011)
Thank you, I knew it had to be something easy, but my brain just was drawing a blank 🙂
Beware, as I alluded to and GSquared explained, without an...
September 13, 2011 at 9:23 am
Could do with a way to order the results. Does this work for you?
;WITH addID AS (
SELECT field1, field2, ROW_NUMBER() OVER(ORDER BY (SELECT NULL)) AS rn
FROM #tmp1)
SELECT CASE WHEN...
September 13, 2011 at 8:36 am
I suspect that you are too busy to have had any opportunity to read any of the numerous blog posts on this subject that litter the internet.
So for your convenience,...
September 13, 2011 at 8:19 am
Read this link for how to post performance problems[/url].
From just looking at your code, it's difficult to suggest much other than the obvious.
SELECT A.[Product Number (SKU)],A.[Serial Numbers],
A.[Sell Through Quantity],A.[Seller -...
September 13, 2011 at 7:17 am
Ninja's_RGR'us (9/9/2011)
Cadavre (9/9/2011)
Reproduced on 2k8 R2What SP level (MS usually prefers the latest SP, so I need to ask)
Tx, 2 more to go!
2K8 & Denali
SP1
MysteryJimbo (9/9/2011)
September 9, 2011 at 9:02 am
I tried to get into software development for 3 years; calling, sending CV + Cover letter, and visiting many business both big and small in an attempt to get an...
September 9, 2011 at 8:30 am
ravishankar.yedoti (9/9/2011)
i can't access the link belowsp_whoisactive is throwing an error that no storedprocedure
There's no problem with the link provided by Gianluca, but if you can't access it then...
September 9, 2011 at 7:43 am
Viewing 15 posts - 1,531 through 1,545 (of 2,007 total)