Viewing 15 posts - 35,521 through 35,535 (of 49,557 total)
Most of the select statement is a non-issue.
Run this, see what it produces. There's got to be something subtly wrong with the values somewhere.
SELECT
ser.Patient_Primary_Policy_Carrier_ID,
'[' + ISNULL(cval1.Control_Value1,'') + ']'
cval1.Control_Value1,
CASE
WHEN ser.Patient_Primary_Policy_Carrier_ID =...
December 3, 2009 at 8:42 am
Kwisatz78 (12/3/2009)
December 3, 2009 at 8:26 am
luckysql.kinda (12/3/2009)
Do you mean I have to install sql server again if I don't have master DB backup.
No. The SQL installer can, if run with specific parameters, rebuild the master...
December 3, 2009 at 2:55 am
atramard (12/3/2009)
it look like i am gone have to limit those log growth....
Why?
What you should have is alerts that warn you when the disk is getting full (80% as...
December 3, 2009 at 2:53 am
Kwisatz78 (12/3/2009)
December 3, 2009 at 2:49 am
Ok, looked around and seems there's both definitions of internal and external fragmentation. I usually use them to mean fragmentation internal to SQL (and fixable within SQL) and fragmentation external...
December 3, 2009 at 1:44 am
Please post queries, table definitions, index definitions and execution plan, as per http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
One of the non-clustered index is having all the columns in that table.
Why? Is that index used?...
December 3, 2009 at 1:36 am
guptaajay1985 (12/2/2009)
Thanks..Actually this is a critical scenario and to make changes in a running scenario is risky.
It doesn't make the slightest difference how critical the situation is. You have to...
December 3, 2009 at 1:30 am
tnocella (12/2/2009)
Begin
SELECT 1
End
--- Proc 1 just returns a value of 1 through a select
Create Procedure p_myproc2
Begin
Declare @Result int...
December 3, 2009 at 1:22 am
tnocella (12/2/2009)
I tried that code, its actually executing the procedure and returning it as a result from thecalling stored procedure.
Well, yes. That's what you want isn't it?
I basically...
December 2, 2009 at 3:07 pm
Ok, don't know what the rest of the query looks like, but to be 100% sure that we're looking in the right place at the right rows, please complete and...
December 2, 2009 at 2:46 pm
J-F Bergeron (12/2/2009)
SQL Server does not let you assign a value to a column when it COULD be returning more than 1 row.
It does allow the scenario where returning...
December 2, 2009 at 2:37 pm
You're not relating the subquery in any way to the table that you're updating, so, for each row of the table that you're updating, ALL of the rows in the...
December 2, 2009 at 2:29 pm
Declare @Result int
exec @Result = sp_myprocedure @Param1, @Param2, @Param3
Aside, don't name stored procedures sp_<whatever>. sp_ means system procedure and, if a proc is named that, resolution is first to the...
December 2, 2009 at 2:24 pm
shannonjk (12/2/2009)
I am sure after testing several thousand times it had generated quite a few plans that are no longer the best suited for what I have now.
There will...
December 2, 2009 at 2:21 pm
Viewing 15 posts - 35,521 through 35,535 (of 49,557 total)