Viewing 15 posts - 376 through 390 (of 2,462 total)
My experience has been that this is faster and easier using plain ol' T-SQL. Why not just create a script task and use the query that you queries that you...
-- Itzik Ben-Gan 2001
November 8, 2016 at 11:23 am
Phil's solution is brilliant (this was a tricky problem that I could not solve).
Based on what you said - 4.0 should be 4.1 but if you want 4.0 to...
-- Itzik Ben-Gan 2001
November 7, 2016 at 11:47 am
If you can't add a new UDF you can just apply the logic to a SQL query like so:
DECLARE
@pString VARCHAR(8000) = '11,15,200',
@pDelimiter CHAR(1)...
-- Itzik Ben-Gan 2001
November 7, 2016 at 10:58 am
(expanding on what Phil said...)
You need a "splitter" function - the one Phil posted a link to is the best one for the job. This query:
DECLARE @param varchar(1000) = '1,2';
SELECT...
-- Itzik Ben-Gan 2001
November 7, 2016 at 8:31 am
Removed (posted twice somehow)
-- Itzik Ben-Gan 2001
November 4, 2016 at 3:07 pm
We dyed the Chicago River Cubs blue.

-- Itzik Ben-Gan 2001
November 4, 2016 at 3:07 pm
Another way (building off Drew and Kevin's excellent solutions) would be like this:
WITH iTally(n) AS
(
SELECT n
FROM ( VALUES(1), (2), (3), (4), (5), (6), (7), (8),...
-- Itzik Ben-Gan 2001
November 4, 2016 at 10:45 am
I missed the article the first time around but just read it.
The fact that SSIS packages are XML files makes documenting SSIS so much easier provided you have a...
-- Itzik Ben-Gan 2001
November 4, 2016 at 9:27 am
Luis Cazares (11/2/2016)
SELECT
meetingID,
ProviderName,
SubGroupName,
SessionName,
...
-- Itzik Ben-Gan 2001
November 2, 2016 at 1:32 pm
I use query hints from time-to-time (not too often) but only when there is no doubt that it's the right choice. The conventional wisdom seems to be that, if you...
-- Itzik Ben-Gan 2001
November 2, 2016 at 1:24 pm
thomashohner (11/2/2016)
Thanks
--Meeting, Subgroup, Session
CREATE TABLE #Table (MeetingID INT , Levels VARCHAR(20), ProviderName VARCHAR(20), PatientName VARCHAR(20), SubGroupName VARCHAR(20),SessionName...
-- Itzik Ben-Gan 2001
November 2, 2016 at 12:55 pm
jasona.work (11/2/2016)
I'm thinking something along the lines of when the Detroit...
-- Itzik Ben-Gan 2001
November 2, 2016 at 11:38 am
This is an interesting 5-year old thread...
Something interesting to note is that the default output for the SQLXML value method is all child text. With that in mind, this...
-- Itzik Ben-Gan 2001
November 2, 2016 at 10:39 am
Markus (11/2/2016)
Kluber is their best...
-- Itzik Ben-Gan 2001
November 2, 2016 at 8:18 am
djj (11/1/2016)
Luis Cazares (11/1/2016)
Ray K (11/1/2016)
ResistanceRebellion
Jedi
academy
-- Itzik Ben-Gan 2001
November 1, 2016 at 10:59 am
Viewing 15 posts - 376 through 390 (of 2,462 total)