Viewing 15 posts - 4,486 through 4,500 (of 15,381 total)
mickeytech2000 (6/12/2014)
That worked:-) Thank you!!!
Glad that worked for. Thanks for letting me know.
June 12, 2014 at 3:20 pm
cbrammer1219 (6/12/2014)
I can't put a where clause on this, before the cross apply?? It gives an error incorrect syntax before cross???
No you can't put it before.
FROM [dbo].[MitelCallTrace] mt
cross...
June 12, 2014 at 2:59 pm
below86 (6/12/2014)
Sean Lange (6/12/2014)
below86 (6/12/2014)
June 12, 2014 at 2:28 pm
Like this.
if OBJECT_ID('tempdb..#something') is not null
drop table #Something
create table #Something
(
SomeValue varchar(100)
)
insert #Something
select '0154 6548647 11235' union all
select '0154 65478647 11235' union all
select '01464 64788647 11835 1654' union all
select '01464 64788647...
June 12, 2014 at 2:20 pm
cbrammer1219 (6/12/2014)
This actually does it, now I have to get each value into a different columns, you have them concatenated together, but this is a great start..
This is not only...
June 12, 2014 at 2:04 pm
below86 (6/12/2014)
June 12, 2014 at 1:35 pm
waseemshaikh345 (6/12/2014)
WHERE '01/29/2014' >= dateadd(yy, datediff(yy, 0, GETDATE()), 0)...
June 12, 2014 at 1:35 pm
pietlinden (6/12/2014)
SELECT <column list>
FROM <table>
WHERE YEAR([SomeDate])=YEAR(GetDate())
(Not sure that's going to perform well, but one problem at...
June 12, 2014 at 12:48 pm
mickeytech2000 (6/12/2014)
Now that I added BEGIN ...END after the if statement, it is not sending any email at all. Is the @total correctly coded?Thank you for your help!!!
I don't know....
June 12, 2014 at 12:41 pm
mickeytech2000 (6/12/2014)
I have the following code to send out an email if the row count of a table exceeds a certain number. But it seems to fire an email alert...
June 12, 2014 at 10:45 am
tim.berry 88829 (6/12/2014)
Should really be a begin try with a subsequent error handling begin catch
I would bot be a big fan of that. There are times that a procedure should...
June 12, 2014 at 9:51 am
Hrhb.mail (6/12/2014)
I need NewTitle can be unique.If I remove PARTITION BY it returns all NewTitle which isn't uinique.
The problem is that in your temp table RowNumber = 1 for every...
June 12, 2014 at 9:43 am
cbrammer1219 (6/12/2014)
June 12, 2014 at 9:37 am
That procedure has a lot of subqueries which is likely going to hurt. You are hitting the same table over and over. You also have some nonSARGable predicates in there....
June 12, 2014 at 7:26 am
Check out this article. It explains this type of query and a few ways to make it faster.
http://sqlinthewild.co.za/index.php/2009/03/19/catch-all-queries/%5B/url%5D
June 11, 2014 at 3:47 pm
Viewing 15 posts - 4,486 through 4,500 (of 15,381 total)