Viewing 15 posts - 3,061 through 3,075 (of 7,609 total)
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
October 31, 2018 at 3:00 pm
FROM sys.databases sd LEFTJOIN sys.database_mirroring dbm
As noted, a name, "sd", that follows immediately after a table name, "sys.databases", becomes an alias for that table. In fact, it becomes the only name for that...
October 30, 2018 at 2:24 pm
I suggest generating a pattern to identity what the phone string contains. Then all you need to do is decide which patterns are acceptable and which aren't.
For example,...
October 30, 2018 at 10:10 am
October 26, 2018 at 12:04 pm
Viewing 15 posts - 3,061 through 3,075 (of 7,609 total)