Viewing 15 posts - 2,866 through 2,880 (of 10,144 total)
ams00601 (10/15/2014)
Hi,I've tried casting and converting to varchar(max), but still no joy!
Can you post some of your code? Guessing could take a while...
October 15, 2014 at 7:26 am
ganteng1 (10/15/2014)
declare @Month varchar = '02'
declare @Year varchar = '2014'
select...
October 15, 2014 at 6:21 am
Not all string functions work with TEXT datatype (http://msdn.microsoft.com/en-GB/library/ms187993.aspx). Try casting to VARCHAR(MAX) before using string manipulation on the column.
October 15, 2014 at 6:04 am
UDBA (10/13/2014)
...Query is not timing out, it is using the execution plan i attached to the original post but it takes about 10 minutes to run...
Grant isn't talking about the...
October 14, 2014 at 2:30 am
The syntax of your query might work for scalar functions, but it's incorrect for table-valued functions. Try this instead:
SELECT *
FROM dbo.FN_REPLACE('Testing string', 'Test', '') x1
CROSS APPLY dbo.FN_REPLACE(x1.replaced_string,'String','')
October 10, 2014 at 7:24 am
You're welcome. Can you post up what you have? There may be improvements / better explanations.
October 7, 2014 at 6:08 am
reto.eggenberger (10/7/2014)
Your solution doesn't work, because you can't...
October 7, 2014 at 4:21 am
karthik82.vk (10/7/2014)
I cannot create rows for the missing dates or change the date as its not a permitted- one. the data comes from another system and adding or changing...
October 7, 2014 at 3:32 am
DECLARE @tmp TABLE (CustomerID INT, CustomerLink INT, PRIMARY KEY(CustomerID))
INSERT @tmp VALUES
(100001,0),(100002,100001),(100003,100001),(100004,100003),
(100005,100006),(100006,100005),(100007,100006),(100008,0),
(100009,100008),(100010,100013),(100011,100008),(100012,100011),
(100013,100012),(100014,0),(100015,100016),(100016,100015)
;WITH FilledData AS (
SELECT CustomerID, CustomerLink = ISNULL(NULLIF(CustomerLink,0),CustomerID) FROM @tmp
)
SELECT x.GroupID, f.CustomerID, f.CustomerLink
FROM FilledData f
CROSS APPLY (
SELECT GroupID...
October 7, 2014 at 2:10 am
karthik82.vk (10/7/2014)
I have a sql query that gets the count of exams held in each month. In every month there can be some exams happening or may not happening.
Below is...
October 7, 2014 at 1:47 am
Several alternatives to the query you've posted are available, and posting the execution plan as Gail suggests will probably help to determine which might be best. Here's one of them...
October 6, 2014 at 6:49 am
itwhiz (10/5/2014)
Hi,I need to prove that there is a speed issue with one of our stored procs/functions ...
Proving that there is a performance issue need not take as much time...
October 6, 2014 at 5:32 am
pwalter83 (10/6/2014)
ChrisM@Work (10/6/2014)
Do...
October 6, 2014 at 4:52 am
Can you post the actual execution plan for your stored procedure?
October 6, 2014 at 4:50 am
Viewing 15 posts - 2,866 through 2,880 (of 10,144 total)