Viewing 15 posts - 10,621 through 10,635 (of 15,381 total)
chinn_chris (9/24/2012)
September 24, 2012 at 9:52 am
As previously stated this is high potential of the issue.
WHERE SD.Code IS NOT NULL AND RTRIM(LTRIM(SD.Code ))<>''
That renders your query nonSARGable. You could change that be simply:
WHERE SD.Code > ''
This...
September 24, 2012 at 9:01 am
mick burden (9/24/2012)
September 24, 2012 at 8:37 am
martin 81121 (9/24/2012)
We are looking to upgrade our current SQL and Server, at the minute a lot of our larger tables (2-3 million rows) are timing out when I...
September 24, 2012 at 8:33 am
Mark-101232 (9/24/2012)
Rather than a trigger, can you change the table so that Full_Name is a calculated column?
+1
A calculated column is far better here than a trigger for a number of...
September 24, 2012 at 8:22 am
karthikeyan-444867 (9/24/2012)
I have recently read Jeff Moden's Multiple space into one space article and i saw M's reply on this topic.
He gave the below solution to resolve the same issue.
set...
September 24, 2012 at 8:20 am
I like the approach that G2 took using apply. Didn't think about repeating strings get removed.
This exercise is a good example of why data should be stored differently. If...
September 24, 2012 at 8:18 am
Hi and welcome to SSC. It is difficult to answer your question because there is not a lot of detail in the question. From your description I am pretty sure...
September 24, 2012 at 8:14 am
F8R (9/22/2012)
Create Table Orders
(
OrderID BigInt Identity(1,1) Not Null,
CustomerID BigInt Not Null,
Constraint [PK_Orders] Primary Key(OrderID)
)
go
Create Table Customers
(
CustomerID BigInt Not Null Identity(1,1),
...
September 22, 2012 at 10:32 am
Luis is absolutely correct. Use the delimited splitter he linked and then a cross tab.
BTW, nice job posting ddl and sample data. You are new around here but obviously understand...
September 21, 2012 at 3:31 pm
Really what you are talking about is formatting. This can be subject to personal preference. There is a free site http://poorsql.com/%5B/url%5D that goes a pretty decent job.
Here are the results...
September 21, 2012 at 3:11 pm
Lynn Pettis (9/21/2012)
Sean Lange (9/21/2012)
You have been trying to work on this for over a month with various half-hearted attempts strewn all over this site. You need to realize...
September 21, 2012 at 2:37 pm
/vent begin
You have been trying to work on this for over a month with various half-hearted attempts strewn all over this site. You need to realize that we are volunteers...
September 21, 2012 at 12:59 pm
Joe's reply is somewhat echoing what I have stated but he knows the actual terms for these things. 🙂
I would not however recommend that you use his primary key idea...
September 21, 2012 at 10:36 am
Eugene Elutin (9/21/2012)
Sean Lange (9/21/2012)
September 21, 2012 at 9:27 am
Viewing 15 posts - 10,621 through 10,635 (of 15,381 total)