Viewing 15 posts - 3,061 through 3,075 (of 7,614 total)
No, it's not necessarily a good idea. In fact, stop it first, then see what's it doing. If it's using generic rules, like 10% and 30%, then don't restart the...
November 19, 2018 at 12:48 pm
MS will probably get rid of the old-style joins at some point, but it will likely be a long while, since INNER joins cannot be misinterpreted in the WHERE clause...
November 19, 2018 at 11:57 am
It can be done using ISNULL(). I'm not trying to say that's necessarily better, just that it can be done, assuming col1 <> col2:
SELECT ISNULL(NULLIF(ISNULL(col1,...
November 19, 2018 at 10:25 am
Use "TOP (1)" to limit the results to one row. For example:
SELECT TOP (1) Field
FROM TABLE
ORDER BY Field
November 12, 2018 at 12:21 pm
For the time, I'd so a single DATEADD with only SECONDs being added, something like this:
DECLARE @order_time float
SET @order_time = 11456
SELECT CAST(DATEADD(SECOND,...
November 12, 2018 at 8:28 am
Create a nonclustered index using the clustering column(s) as key(s) and INCLUDE the search column. That's about the best you can do with this type of requirement.
November 9, 2018 at 10:38 am
The data and log files for any given db must always be on separate drives. That is, that a single physical drive failure cannot destroy both data and log files...
November 9, 2018 at 10:31 am
They absolutely do. And most people never have an accurate...
November 6, 2018 at 12:15 pm
Interesting ... do DBAs really use the gui to do backups and restores? I never have. For one reason, then I have no accurate record of what was done.
November 6, 2018 at 11:51 am
November 6, 2018 at 7:46 am
You're welcome. Glad it helped, because that would be a confusing error indeed.
November 2, 2018 at 11:53 am
This may not be the most efficient, but I believe it works, and shouldn't be too much overhead anyway unless you have lots of unqiue Ids:
;WITH...
November 1, 2018 at 12:24 pm
Try some type of concatenation, like this:
SELECT
Message = NULLIF(STUFF(
CASE WHEN Name IS NULL OR Name = '' THEN ', Name' ELSE ''...
November 1, 2018 at 12:15 pm
Make sure you're also looking at the schema name along with the table name. Maybe the schema is not "dbo" and so it looks like the table's not there when...
November 1, 2018 at 11:54 am
Viewing 15 posts - 3,061 through 3,075 (of 7,614 total)