Viewing 15 posts - 11,326 through 11,340 (of 15,376 total)
You have a couple of things going on here. The first is you have some data in period_name that can't be converted to a datetime. This is what is causing...
July 17, 2012 at 8:55 pm
And using set rowcount is not a good habit to learn now. It will no longer affect insert, update or delete in the NEXT version of sql. It is better...
July 17, 2012 at 8:24 pm
Welsh Corgi (7/17/2012)
There are no Go Stement between each Merge which may be a good thing.
Will the scripts execute in parallel and...
July 17, 2012 at 3:11 pm
pistolpete (7/17/2012)
July 17, 2012 at 1:51 pm
edstewart (7/17/2012)
Agreed, it is a horrible design. My hands are tied on this one, so I'm have to go with the flow, hence the question. Thanks everyone for their help!
You...
July 17, 2012 at 1:48 pm
capn.hector (7/17/2012)
July 17, 2012 at 1:15 pm
You have been around here long enough to know that you should post ddl, sample data and desired output. Read the article at the first link in my signature. Post...
July 17, 2012 at 12:43 pm
Nice job posting ddl and sample data. I am however complete confused with what you want this query to do. Can you try explaining this again more clearly?
July 17, 2012 at 12:41 pm
capn.hector (7/17/2012)
Sean Lange (7/17/2012)
capn.hector (7/17/2012)
DECLARE @STR VARCHAR(8000)
SET @STR = 'Rang the client and agreed they would begin to pay off...
July 17, 2012 at 12:33 pm
capn.hector (7/17/2012)
DECLARE @STR VARCHAR(8000)
SET @STR = 'Rang the client and agreed they would begin to pay off £x off their...
July 17, 2012 at 11:15 am
Check out Gail's article on how to post performance problems.
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/%5B/url%5D
July 17, 2012 at 10:37 am
edstewart (7/17/2012)
July 17, 2012 at 9:53 am
This can be done using a Tally Table.
Thanks to Wayne Sheffield for the concept on doing this.
declare @LongText varchar(255) = 'Rang the client and agreed they would begin to pay...
July 17, 2012 at 9:50 am
dndaughtery (7/17/2012)
July 17, 2012 at 8:58 am
Lowell also has one that he has posted several times. His does a few things different than mine. His is also resource intensive so DO NOT RUN THIS IN PRODUCTION!!!!
CREATE...
July 17, 2012 at 8:27 am
Viewing 15 posts - 11,326 through 11,340 (of 15,376 total)