Viewing 15 posts - 3,016 through 3,030 (of 5,394 total)
mageshh11 (7/5/2011)
Sorry it is actuall my mistake. I given the sample output wrongly.
The output should be: (All the rows from master even if rows are...
July 5, 2011 at 3:56 am
If I understand your question correctly, this could be an answer:
-- create temp tables
DECLARE @master-2 TABLE (
ID int NOT NULL PRIMARY KEY,
Name varchar(4)
)
DECLARE @Details TABLE (
ID int NOT NULL,
Name char(4),
[Date]...
July 5, 2011 at 3:34 am
Tom, I'll borrow your test data...
Another possible solution:
IF OBJECT_ID('tempdb..#Employee') IS NOT NULL
DROP TABLE #Employee
IF OBJECT_ID('tempdb..#BudgetCode') IS NOT NULL
DROP TABLE #BudgetCode
CREATE TABLE #Employee (
EmployeeId int NOT NULL PRIMARY KEY,
EmployeeCode...
July 4, 2011 at 8:53 am
Almost forgot: here you will find a great blog post by Jonathan Kehayias that deals with cost threshold for parallelism:
Also, consider that sometimes a parallel plan is not the best...
July 4, 2011 at 7:24 am
Ninja's_RGR'us (7/4/2011)
The default setting is like 5 which is way too low in his experience.
I heartedly agree. I had to set it to 20 on my main OLTP instance, but...
July 4, 2011 at 7:17 am
Looks like I missed a lot of things during the weekend...
Congratulations to Gail, Jeff and everyone else who got renewed!!!
July 4, 2011 at 2:38 am
jcrawf02 (6/30/2011)
Gianluca Sartori (6/29/2011)
One of the worst Celko posts ever.He must have stepped on dog poop today.
Do me a favor, and translate that to Italian in your post? That's hilarious...
:-D:-D:-D:-D:-D
He...
July 1, 2011 at 2:45 am
SQLkiwi (6/30/2011)
Perhaps Steve won't be keen on the idea because it moves SSC toward ASK and sites like Stack Overflow, don't know.
Personally, I don't like the StackOverflow model. There's no...
June 30, 2011 at 6:20 am
One of the worst Celko posts ever.
He must have stepped on dog poop today.
June 29, 2011 at 10:12 am
Joe, I suspect the OP won't find your post very useful.
Nor do I, indeed.
June 29, 2011 at 10:08 am
Satnam Singh (6/29/2011)
June 29, 2011 at 6:47 am
I'm sorry, I don't understand. Can you please post the expected results based on your sample data?
June 29, 2011 at 6:11 am
I highly doubt this can be done, but I'm waiting for other members' suggestions, if any.
June 29, 2011 at 5:01 am
There's some information that you have to share in order to have a chance to receive a sensible answer.
Take a look at this article and post the information required:
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
Regards,
Gianluca
June 29, 2011 at 4:56 am
Cast to a fixed length character type:
select 'PL01'+'_'+ CAST(vendor as char(7)) +'_'+shipto as DocumentNo
from Product
Hope this helps
Gianluca
EDIT: fixed typo
June 29, 2011 at 4:53 am
Viewing 15 posts - 3,016 through 3,030 (of 5,394 total)