Viewing 15 posts - 3,676 through 3,690 (of 7,609 total)
November 22, 2017 at 12:25 pm
I have used views for that, but only for a very limited number of values, since it can't be effectively indexed.
Unique indexes are potentially extremely valuable, even for...
November 22, 2017 at 11:59 am
Or take a step back and consider whether "dob" shouldn't be stored as separate columns to begin with, in accordance with standard data normalization (if you need to constantly look...
November 22, 2017 at 11:54 am
While it's still available in the cache, just at it would be for index_usage_stats, you can likely use:
sys.dm_db_index_operational_stats
If the table is active, that data is very...
November 22, 2017 at 11:40 am
As a very slight simplification, you could also do this (I prefer CAST when possible since it's ANSI-standard, whereas CONVERT is not):
CAST((CP + 9) / 10 AS int)
November 22, 2017 at 11:36 am
November 20, 2017 at 10:42 am
The key thing to remember is this:
Data does not have to stored in physical sequence in order to be able to read in key sequence.
That is, the...
November 17, 2017 at 11:26 am
November 16, 2017 at 11:41 am
I certainly agree that the overhead of a variable isn't needed.
But tThe RIGHT function is going to implicitly convert the value to varchar anyway, so I would stick...
November 16, 2017 at 10:47 am
ALTER TRIGGER [dbo].[xxatr_slauf_AufartChangeU]
ON [dbo].[XXASLAuf]
AFTER UPDATE
AS
SET NOCOUNT ON;
IF UPDATE(aufart)
BEGIN
DECLARE @aufintnr VARCHAR(8000)
SET @aufintnr = ''
SELECT @aufintnr...
November 15, 2017 at 12:09 pm
Best practice is to explicitly specify the table name/alias for every column in a query. Otherwise, if one of the tables adds a column with the same name, the same...
November 15, 2017 at 12:02 pm
Other issues:
1) if there's an error in a db file (such as would show up in a DBCC CHECKDB), it won't reattach
2) during a reattach, the file gets...
November 13, 2017 at 12:33 pm
Viewing 15 posts - 3,676 through 3,690 (of 7,609 total)