Viewing 15 posts - 136 through 150 (of 227 total)
Haven't see this before. Hard to determine what 0x84C90001 concerns. The Microsoft Exchange Server Error Code Look-up (don't let the name dissuade you) reports 60 header files that define...
November 23, 2015 at 3:23 pm
DECLARE @DML CHAR(6) =
CASE WHEN
EXISTS(SELECT 1 FROM inserted)
AND EXISTS(SELECT 1 FROM deleted)
THEN 'Update'
WHEN
EXISTS(SELECT 1 FROM inserted)
THEN 'Insert'
WHEN
EXISTS(SELECT...
November 23, 2015 at 2:32 pm
There is no fool-proof answer that will allow you to check before you alter, if dependent objects use dynamic SQL, but outside of that problem, you can use sys.sql_expression_dependencies. Or...
November 22, 2015 at 10:04 pm
That is not unusual. The different between two polls of sys.dm_os_wait_stats is likely to show SQL Server is waiting upon significant amount of wait_time_ms for PAGEIOLATCH% wait_types. Perfmon.msc's Physical Disk...
November 22, 2015 at 9:49 pm
--USE DatabaseInQuestion
SELECT
'ALTER ROLE '
+ QUOTENAME(drp.[name])
+ ' ADD MEMBER '
+ QUOTENAME(dmp.[name]) COLLATE DATABASE_DEFAULT
+ ';'
FROM sys.database_role_members drm
JOIN sys.database_principals drp
ON drm.[role_principal_id] = drp.[principal_id]
JOIN sys.database_principals dmp
ON drm.[member_principal_id] = dmp.[principal_id]
;
SELECT
CASE
WHEN dperm.[state] <> 'W'
THEN...
November 22, 2015 at 8:24 pm
November 22, 2015 at 7:10 pm
November 22, 2015 at 6:52 pm
I believe you should consider rowversion. See https://msdn.microsoft.com/en-us/library/ms182776.aspx
November 22, 2015 at 3:15 pm
Think about where the slow subscriber is physically located, and the available network bandwidth between the distributor and subscriber. If the weakest link in that chain is 300 bps, the...
November 21, 2015 at 10:29 pm
SELECT 'select * from test_Figure1 where ' +
STUFF
(
(
SELECT ' AND ' + [column_Nme] + ' ' +
[Comparison_Operator_Code] +
' ''' + [what_Value] + ''''
FROM [test_Figure1_Expression]...
November 21, 2015 at 1:48 pm
A couple of succinct (and old) MS Access articles that will help you choose a flexible normalized design:
November 19, 2015 at 9:27 pm
Lynn Pettis (11/19/2015)
If the source data is supposed to integer data and it isn't, then I actually agree with the developers and the need to hunt down and fix the...
November 19, 2015 at 4:18 pm
Consider referring to a table [OperatorPrecedence] ([Level] tinyint, [Operator] varchar) - see https://msdn.microsoft.com/en-us/library/ms190276.aspx.
And (from the same URL) consider referring to a table [NestedParenthesis]([NestingLevel] tinyint, [Parenthesis] char(1)) .
Agreed -...
November 19, 2015 at 7:11 am
When an IO failure strikes, you do not always know what garbage was written (or failed to be written) until it is read... later... perhaps much later. Not every db...
November 18, 2015 at 8:28 pm
Luis Cazares (11/17/2015)Even if a strongly typed method is used, I would consider that fixing bad data should be important. Creating a list of integers and splitting it, shouldn't create...
November 18, 2015 at 6:30 am
Viewing 15 posts - 136 through 150 (of 227 total)