Viewing 15 posts - 5,221 through 5,235 (of 15,381 total)
patla4u (4/9/2014)
Thanks for your Reply.I understood that, I don't need to disable clustered index. Can I ask you Why?
Thanks
Bhavesh
Why do you think you need to disable the clustered index?
April 9, 2014 at 7:40 am
robmcbarron (4/8/2014)
I'm trying to calculate the difference between the start of the financial year (in this case 1st April 2013) and the savings start...
April 9, 2014 at 7:39 am
super48 (4/9/2014)
then try this one if u want to use *--create procedure startrred
@hourstarted varchar(10)
as
begin
if(@hourstarted!='*')
begin
Select *
from Production where hourworked>@hourstarted
END
else
begin
select * from Production where hourworked>15
end
end
I would NEVER recommend passing in a character...
April 9, 2014 at 7:21 am
Everything Luis and Grant say plus...
There is lots of low hanging fruit here for performance improvement. Do you need UNION? A UNION ALL seems highly likely to be acceptable here...
April 8, 2014 at 3:47 pm
patla4u (4/8/2014)
I want to load data from Staging to Development environment.
In Dev. environment , I have index that is use for stored procedure and Staging environment, I don't...
April 8, 2014 at 3:24 pm
Awfully sparse on details. Without some actual details it is pretty tough to guess.
I suspect the problem is because you are using an OR between your where predicates.
where...
April 8, 2014 at 3:22 pm
Not sure what you are looking for as output. Using the values you stated and plugging them into your formula...
select (1168 - 1172) / 1172. * 100
This returns -0.341200
April 8, 2014 at 2:50 pm
rummings (4/8/2014)
April 8, 2014 at 2:44 pm
patrickmcginnis59 10839 (4/8/2014)
Sean Lange (4/8/2014)
And then, encrypt those SSNs and stop storing them in plain text immediately!!!
Very good point, how would you do it and still allow him to find...
April 8, 2014 at 2:21 pm
This looks like a cookie cutter cross tab to me. Please see the articles in my signature about cross tabs. Also, here is a link to another thread where I...
April 8, 2014 at 12:50 pm
Eirikur Eiriksson (4/8/2014)
hisakimatama (4/8/2014)
April 8, 2014 at 12:48 pm
And then, encrypt those SSNs and stop storing them in plain text immediately!!!
April 8, 2014 at 12:41 pm
You could make this even simpler by providing a default to HoursStarted.
create procedure GetSomeData
(
@HoursStarted int = 15
) as
Select [Columns]
from Production
where HourWorked > @HoursStated
So now if the user wants "All"...
April 8, 2014 at 12:34 pm
ramyours2003 (4/8/2014)
Thanks for repling , actually iam not aware how to trouble shoot this issue ?
Start by reading my response. Then telling us where this message is coming from.
April 8, 2014 at 9:53 am
Luis Cazares (4/8/2014)
I just wanted to point out that it should out perform the previous solutions...
April 8, 2014 at 8:52 am
Viewing 15 posts - 5,221 through 5,235 (of 15,381 total)