Viewing 15 posts - 2,596 through 2,610 (of 4,087 total)
It's essentially an XML fragment. Why don't you treat it as such?
DECLARE @String varchar(512) ='<iframe src="http://player.vimeo.com/video/3782iiii?title=0&byline=0&portrait=0&autoplay=1" width="704" height="396" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>'
SELECT CAST(REPLACE(REPLACE(@String, '&', '&'), 'AllowFullScreen', 'AllowFullScreen="true"')...
June 3, 2016 at 10:49 am
Why don't you add the UPC code to the database and use that to link the various records together?
Drew
June 3, 2016 at 10:28 am
Terje Hermanseter (6/3/2016)
I always use them and encourage others to do the same.
I've been too sloppy. I need to be more consistent and start to use them even when I...
June 3, 2016 at 9:40 am
arihantjain121189 (6/2/2016)
June 3, 2016 at 8:42 am
There are actually several different approaches you can use. Here are two:
; -- Use a table value constructor with the ranges
WITH sample_data AS (
SELECT *
FROM (
VALUES
(11, 1)
,(12, 1)
,(13, 2)
,(14,...
June 3, 2016 at 8:15 am
You should test the code for your sample data before posting it. When I ran the code, I got an error, because the Start_Date is set to NOT NULL,...
June 3, 2016 at 7:58 am
Your FinalResult table looks like it's the result of a pivot or crosstab. It would be easier to make the updates before the pivot/crosstab rather than after the fact....
June 2, 2016 at 2:59 pm
mw112009 (6/2/2016)
Good,I was also asked to use the LTRIM(RTRIM( around the fields so that there be no spaces around. How can we handle that ?
[rant on]
If you don't...
June 2, 2016 at 2:37 pm
I actually prefer to use the XML concatenation method, which also automatically handles NULL values, and--unlike CONCAT--works in SQL2008, and is easier to check that you're getting the correct values.
Update...
June 2, 2016 at 1:36 pm
Please don't cross post. It fragments the replies. Please respond to http://www.sqlservercentral.com/Forums/Topic1791754-3077-1.aspx
Drew
June 2, 2016 at 1:08 pm
However, there are problems when the data is even a little more complex. For instance, a person might switch from one email to another and then switch back to...
June 1, 2016 at 3:38 pm
Using SQL Profiler for traces has been deprecated. You should start using Extended Events.
Drew
June 1, 2016 at 1:21 pm
yb751 (6/1/2016)
June 1, 2016 at 12:40 pm
To answer your question, equality columns are columns that generally appear in JOIN/WHERE clauses with an equal sign; inequality columns generally appear with some inequality, e.g., <=. Equality columns...
June 1, 2016 at 12:34 pm
jc85 (6/1/2016)
Sergiy (6/1/2016)
It's so easy. 🙂
You group you'd events by day:
dateadd(dd,0, datediff(dd,0,b.start_time)) as [date]
But what you...
June 1, 2016 at 11:06 am
Viewing 15 posts - 2,596 through 2,610 (of 4,087 total)