Viewing 15 posts - 10,216 through 10,230 (of 49,552 total)
Sapen (1/27/2014)
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
January 28, 2014 at 9:07 am
Sean Lange (1/28/2014)
mike.conti (1/28/2014)
This works: SELECT top 10 * FROM ACTI**_**
it does not appear in when i run this SELECT * FROM...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
January 28, 2014 at 9:00 am
Greg Edwards-268690 (1/28/2014)
GilaMonster (1/28/2014)
A trigger that doesn't work: http://www.sqlservercentral.com/Forums/Topic1532595-1292-1.aspx
An IF statement that, well, ......
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
January 28, 2014 at 8:55 am
Sean Lange (1/28/2014)
GilaMonster (1/28/2014)
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
January 28, 2014 at 8:55 am
Max number is more than you could ever need.
When there are multiple triggers for the same action (multiple insert for example), you can defined which one runs first and which...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
January 28, 2014 at 8:18 am
I'm not saying that recursive CTEs are bad, wrong, terrible, never use. Just saying be aware of how they behave.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
January 28, 2014 at 7:34 am
Anyone got time and enthusiasm? (running low on the latter and it's almost time to go home)
A trigger that doesn't work: http://www.sqlservercentral.com/Forums/Topic1532595-1292-1.aspx
An IF statement that, well, ... http://www.sqlservercentral.com/Forums/Topic1535345-1291-1.aspx
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
January 28, 2014 at 7:31 am
chillw1nston (1/28/2014)
not sure what your getting at. I guess because it runs recursively and relys on previous result set to generate next which is a more programmatical construct?
Yup.
Would you...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
January 28, 2014 at 7:26 am
No.
How does a recursive CTE work?
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
January 28, 2014 at 7:13 am
chillw1nston (1/28/2014)
DECLARE @threshold int = 100
;WITH numbers ( seqnum )
AS...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
January 28, 2014 at 7:07 am
I can't tell from that what's going on. That 'May have Data Corruption' is an application error, could be anything triggering that. Without knowing the technical details, no way to...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
January 28, 2014 at 6:59 am
Then the where clause you have matches no rows.
Probably because of this:
IF @ADR3 IS NULL
SELECT ADR1, ADR2, POSTAL_CODE
FROM PAT_NAMES_ADDRESS
WHERE CURRENT_ONE = RTRIM(@CURRENT_ONE)
AND ADR1 = RTRIM(@ADR1)
AND ADR2 = RTRIM(@ADR2)
AND ADR3 =...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
January 28, 2014 at 6:41 am
When you say 'data corruption', what exactly do you mean? What errors, what symptoms, etc
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
January 28, 2014 at 6:00 am
SET @ADR3 = 'null'
That's setting the variable to the string value n-u-l-l. If you want to check whether a variable has the string value "null", then you'd need IF...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
January 28, 2014 at 5:59 am
Other way around.
http://sqlinthewild.co.za/index.php/2009/04/14/on-counts/
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
January 28, 2014 at 5:07 am
Viewing 15 posts - 10,216 through 10,230 (of 49,552 total)