Viewing 15 posts - 271 through 285 (of 430 total)
GilaMonster (10/31/2013)
Those two are redundant, you don't need both, but you do want to set the variable to something before concatenating. Otherwise it's NULL and NULL + Anything = NULL.
Sorry,...
October 31, 2013 at 10:23 am
Well, this fixed it. You can all go back to alert level pewter evening and return to your regularly scheduled rock n roll hoochie koo.
set @sql = N'SELECT @y =...
October 25, 2013 at 1:22 pm
set @sql = N'SELECT @x = P
FROM OPENROWSET (BULK ''\\plaus42\SurveyComputing\Sample\SampleRepository\[filename]'', SINGLE_BLOB) AS FMG(P)'
set @sql = replace(@sql, '[filename]', @filename)
print (@sql)
--exec (@sql)
EXEC sp_executesql @sql, N'@x xml OUTPUT', @x = OUTPUT;
EXEC sp_xml_preparedocument @hdoc...
October 25, 2013 at 12:22 pm
Thanks, Grant. I'll add this to my current reading rotation.
October 24, 2013 at 8:33 am
No, I should have been a bit more clear. This is the version I'm using:
Name ...
October 24, 2013 at 8:05 am
insert into [worm]
(
[hole]
)
select
[Bill Talada]
from [earth]
October 18, 2013 at 1:16 pm
Well, faster is better.
October 18, 2013 at 12:51 pm
Jeff Atherton (10/16/2013)
Sean Lange (10/16/2013)
btw, not sure what the previous poster was complaining about. SQLExpress is free and is a great tool, especially for learning when you don't have access...
October 16, 2013 at 1:10 pm
Jeff Atherton (10/16/2013)
October 16, 2013 at 10:33 am
Unless I'm missing something, I think using EXISTS would be a very approachable solution.
October 10, 2013 at 4:52 pm
Thanks, Sean and Chris. It was a one off query, otherwise I would have probably moved some stuff around. But it got me thinking about what the heck was taking...
October 10, 2013 at 8:33 am
Sean Lange (10/9/2013)
erikd (10/9/2013)
dwain.c (10/7/2013)
WITH SampleData(MyString) AS
(
SELECT' [{mark,peters,mr}{jane,fonda,mrs}{john,doo,mr}{james,bond,mr}]'
)
SELECT MyString
,Col1=MAX(CASE WHEN ItemNumber%6...
October 9, 2013 at 2:31 pm
dwain.c (10/7/2013)
WITH SampleData(MyString) AS
(
SELECT' [{mark,peters,mr}{jane,fonda,mrs}{john,doo,mr}{james,bond,mr}]'
)
SELECT MyString
,Col1=MAX(CASE WHEN ItemNumber%6 = 2 THEN...
October 9, 2013 at 12:26 pm
Jeff Moden (10/8/2013)
dwain.c (10/7/2013)
Unfortunately, if it gets too long there are limitations on what can display in the Messages pane (4000 characters I think).
So don't do that anymore. 😉 ...
October 9, 2013 at 12:25 pm
The short answer is that varchar columns don't get along with Unicode characters. Your column type should be nvarchar.
October 4, 2013 at 9:45 am
Viewing 15 posts - 271 through 285 (of 430 total)