Viewing 15 posts - 12,916 through 12,930 (of 15,381 total)
How completely random that this question was asked twice on the same day!?!?!?!?
Here is the other thread. http://www.sqlservercentral.com/Forums/Topic1258889-391-1.aspx
February 28, 2012 at 7:46 am
patelmohamad (2/27/2012)
if i don't use With (NOLOCK) then it takes near about ten minutes to retrieve the data, for fast process i have used it..
Please realize that NOLOCK is by...
February 28, 2012 at 7:38 am
ColdCoffee (2/27/2012)
Sean Lange (2/27/2012)
ColdCoffee (2/27/2012)
CELKO (2/27/2012)
CREATE TABLE Customer_History
(customer_id CHAR(9) NOT NULL,
start_date DATE DEFAULT CURRENT_TIMESTAMP NOT NULL,
end_date DATETIME UNIQUE, --null means current
CHECK (start_date <=...
February 27, 2012 at 3:25 pm
Quinn-793124 (2/27/2012)
update VectorReplica.dbo.PARCELS set PARCEL_ID = new_pid from Ranieranneaxparcels
where VectorReplica.dbo.PARCELS.PARCEL_ID...
February 27, 2012 at 2:59 pm
ColdCoffee (2/27/2012)
CELKO (2/27/2012)
CREATE TABLE Customer_History
(customer_id CHAR(9) NOT NULL,
start_date DATE DEFAULT CURRENT_TIMESTAMP NOT NULL,
end_date DATETIME UNIQUE, --null means current
CHECK (start_date <= end_date),
foobar_status CHAR(??)...
February 27, 2012 at 2:54 pm
You will find that a lot more people are willing to volunteer their time and effort if you provide some sort of sample to work in a nice consumable format....
February 27, 2012 at 2:41 pm
duplicate post. Please direct all replies here. http://www.sqlservercentral.com/Forums/Topic1257891-147-1.aspx
February 27, 2012 at 2:17 pm
Take a look at using MERGE. From you description it sounds like what you need.
February 27, 2012 at 1:41 pm
gpm.alwyn (2/27/2012)
CREATE TABLE #Temp(Word VARCHAR(100))
INSERT INTO #Temp VALUES('TR#ABC#10/12/2011')
INSERT INTO #Temp VALUES('TR#XYZ#12/12/2011')
INSERT INTO #Temp VALUES('TR#ABC#10/12/2011')
SELECT REPLACE(MyWords, LEFT(MyWords, CHARINDEX('#', MyWords)), '') AS Word FROM
(
SELECT REPLACE(Word, RIGHT(Word, CHARINDEX('#',...
February 27, 2012 at 1:37 pm
/facepalm
Thanks guys don't know why I didn't think of for xml. :hehe:
Guess I need more coffee this morning.
February 27, 2012 at 9:07 am
Can you explain where this result comes from?
This was edited for clarity while I was posting. 😀
Btw, excellent job posting you ddl and sample data!!!
What you are describing is a...
February 27, 2012 at 8:55 am
OK let's try this again. The file with the tables is useful but sample data should be insert statements (preferably ones that you tested).
Last but not least, assuming you provide...
February 27, 2012 at 7:36 am
Do be careful or he will be forced to come after you with his pork chop launcher. :w00t:
Have a great weekend.
February 24, 2012 at 2:19 pm
You are missing the from in your select statement. The subquery that you have named x is acting like your table.
SELECT
SUM([SLAMet])/COUNT([WO_NUM])*100 AS '%TotalMetSLA',
* FROM
(
...
) x
February 24, 2012 at 2:07 pm
Pretty sparse on details here...there are several ways you could do this. Seems to me you going to be forced to use dynamic sql to create all your tables with...
February 24, 2012 at 2:06 pm
Viewing 15 posts - 12,916 through 12,930 (of 15,381 total)