Viewing 15 posts - 1 through 15 (of 128 total)
The double quote at the end of the SQL query ism't matched by a double quote at the beginning of the query. It isn't needed, anyway.
(Edit:) Sorry. Small screen.
October 25, 2020 at 6:09 pm
Look at ROUND(), particularly the last parameter.
October 23, 2020 at 2:45 am
You might check to see if 'auto-close' is specified for the database.
December 28, 2015 at 10:03 am
Thanks for the update about datetime --> date; I wasn't aware of that.
December 4, 2015 at 12:33 pm
A CAST on the database column would likely preclude the use of an available index, while using the native values would allow index usage, if available. The >= and <...
December 4, 2015 at 12:22 pm
Since you are referencing two databases, you have to specify the database name for the object (function or table) which is in the database you are NOT running against. In...
August 25, 2015 at 3:20 pm
I have tried multiple times, both yesterday and today. I can't get through...
The system has encountered an unexpected error. We apologize for the inconvenience. The issue will be addressed as...
December 5, 2014 at 11:10 am
What about [YourNumerator] / NULLIF([YourDivisor], 0) ? If the divisor is zero, it become null, and the result is null. Then handle the null quotient in the method best suited...
October 22, 2014 at 12:12 pm
Sorry, everyone! I've removed the typo from my earlier post. Stupid fingers!
October 22, 2014 at 8:18 am
Trying to add an arbitrary amount of 'time' to a datetime value which starts out containing ONLY a date is fraught with problems. Try adding the last millisecond or two,...
October 21, 2014 at 3:29 pm
There is a way to make an un-trusted constraint (Check or Foreign Key) trusted.
From BOL:
"The query optimizer does not consider constraints that are defined WITH NOCHECK. Such constraints are ignored...
August 13, 2014 at 3:03 pm
IDENTITY_INSERT can only be 'ON' for a single table at a time, and there is no easy visibility to which table currently has this option turned 'ON'. Therefore, it's important...
August 4, 2014 at 10:36 am
The first thing I noticed was that there is no path or drive letter specified for the source or results file. Offhand, I don't know the default path for a...
January 23, 2014 at 8:12 am
SQL Server Agent recognizes a variety of 'tokens', which it will replace at runtime with the appropriate value. 'JOBID' is one of those tokens.
In some cases, you must add...
January 17, 2014 at 10:45 am
In many jurisdictions, what they did could be considered fraud, and make them liable for civil or criminal liabilities.
November 26, 2013 at 12:10 pm
Viewing 15 posts - 1 through 15 (of 128 total)