Viewing 15 posts - 3,841 through 3,855 (of 5,504 total)
Steve Jones - Editor (4/7/2010)
... But asking how many types of temp tables exist implies....
Steve, would you consider a worktable as being the third type of a temp table? 😉
From...
April 7, 2010 at 4:43 pm
WayneS (4/7/2010)
April 7, 2010 at 3:57 pm
I'm not sure if I fully understood the requirement...
But I would consider building a permanent table holding all variations and query that one based on the number of shippings.
Maybe the...
April 7, 2010 at 3:45 pm
Tom.Thomson (4/6/2010)
April 7, 2010 at 2:32 pm
That's easy: It depends 😀
You need to think about what's best for YOU. It's not relevant what we think would be best for us. Some of us might vote for...
April 7, 2010 at 1:31 pm
Looking back without relevant trace files in place during that time is probably hard to do (if possible at all).
I would ask the developer to wrap that query into a...
April 7, 2010 at 1:14 pm
I'd rather test for a number instead of using the ISNUMERIC function.
Among others, "+-.," are valid when testing against ISNUMERIC
Example:
DECLARE @test-2 CHAR(3)
SET @test-2 ='.10'
SELECT ISNUMERIC(LEFT(@test,1)),CASE WHEN @test-2 LIKE '[0-9]%' THEN...
April 7, 2010 at 12:58 pm
RV-813525 (4/7/2010)
Lutz,Its a great reply
Thank you, RV!
I hope one or the other method is useful, not only for the OP.
April 7, 2010 at 12:24 pm
I'm working in project management, sometimes as a project manager, sometimes as a "link to translate" between business reps and software vendor.
Since I'm focused on SQL Server projects, I decided...
April 7, 2010 at 12:20 pm
Hi,
here's a rather large sample of various methods using XQuery.
Unfortunately, you didn't provide a "translation list", meaning what nodes you'd like to see in what column. Therefore, I had to...
April 7, 2010 at 11:59 am
@ Paul:
Interesting!
What do I misread/misunderstand when reading BOL?
I thought what you just demonstrated wouldn't be possible...
It looks like query optimizer is using ISNULL to override the columns NULL definition.
VERY NICE!!...
April 6, 2010 at 2:59 pm
Paul White NZ (4/6/2010)
Al B (4/5/2010)
Any thoughts would be greatly appreciated. If I'm barking up the wrong tree, I'd love to hear some alternate solutions.
The problem here is not one...
April 6, 2010 at 1:52 pm
I'll second RV.
Using XQuery inside a stored procedure is most probably the easier way.
If you need assistance please post sample data and expected result in a ready to use format...
April 6, 2010 at 12:11 pm
Jeff Moden (4/5/2010)
lmu92 (4/5/2010)
...at least use a table-valued function.Teaching opportunity here, Lutz. Tell the op "why" and how you'd use an iTVF in a computed column. 😉
I guess I...
April 6, 2010 at 10:27 am
Why don't you use a view instead?
And, if you really want to use a UDF, at least use a table-valued function.
Something like
CREATE FUNCTION your_function (@ParentID int, @Keyword nvarchar(255))
RETURNS TABLE
AS
RETURN
(
...
April 5, 2010 at 5:44 pm
Viewing 15 posts - 3,841 through 3,855 (of 5,504 total)