Viewing 15 posts - 6,391 through 6,405 (of 7,616 total)
In a D/R situation, it might be a royal pita to have only AD accounts to have access to the instance.
I'd rather be able, in a genuine emergency, to bring...
September 12, 2013 at 10:32 am
WHERE
Docket_Date >= DATEADD(MONTH, DATEDIFF(MONTH, 0, @date1), 0) AND
Docket_Date < DATEADD(MONTH, DATEDIFF(MONTH, 0, @date1) + 1, 0)
September 11, 2013 at 2:04 pm
I would never allow the sa password to be the same on more than one instance. The sa account is to be used only in an emergency anyway (such...
September 11, 2013 at 2:01 pm
No, it's not a good idea. SQL will typically not be able to generate as good a plan for remote tables as it does for local ones.
September 10, 2013 at 2:41 pm
You can get the result you need: the specific method depends on specifically what you need to do. If you can provide sample values and the desired results, we...
September 9, 2013 at 7:24 am
For anything less than 24 hours, you can do this:
SELECT
CONVERT(varchar(8), DATEADD(SECOND, DATEDIFF(SECOND, segstart, segstop), 0), 8)
FROM (
SELECT CAST('20130906 09:28:00' AS datetime) AS...
September 6, 2013 at 3:49 pm
Just list the column names that are being inserted into the new table; you don't have to supply all columns. For example, see below; naturally your specific column names...
September 6, 2013 at 3:26 pm
SELECT *
FROM dbo.tablename
WHERE Customer IN (
SELECT Customer
FROM dbo.tablename
GROUP BY Customer
HAVING COUNT(DISTINCT Contract) > 1
...
September 6, 2013 at 3:22 pm
UPDATE CurrMonth
SET [PrevPerc] = PrevMonth.[CurrPerc]
FROM #Month CurrMonth
INNER JOIN #Month PrevMonth ON
PrevMonth.[DEPARTMENT] = CurrMonth.DEPARTMENT AND
PrevMonth.[YEAR] = CurrMonth.[YEAR] - CASE WHEN CurrMonth.[MONTH] =...
September 6, 2013 at 3:18 pm
I wouldn't use PARSENAME here because of potential side effects, for example, periods (.) in the data or brackets ([]) around a piece of data. The code below should...
September 5, 2013 at 1:12 pm
Yeah, it wasn't intended to be used that way, so my guess is it wouldn't work all that well for that. Even performance could become a real issue at...
September 5, 2013 at 1:08 pm
Something like this may do it for you:
SELECT
tn.ID, tn.Status, tn.Description, tn.[Project Number],
ColNames.ColName
FROM dbo.tablename tn
INNER JOIN (
SELECT 'FreeText01'...
September 5, 2013 at 1:04 pm
Grant Fritchey (9/4/2013)
ScottPletcher (9/4/2013)
September 4, 2013 at 5:25 pm
Grant Fritchey (9/4/2013)
ScottPletcher (9/4/2013)
Grant Fritchey (9/4/2013)
Instead I've noticed that you're probably going to have an "identity more likely than not" approach on most systems just because it makes sense.
I'd disagree...
September 4, 2013 at 5:11 pm
Grant Fritchey (9/4/2013)
Instead I've noticed that you're probably going to have an "identity more likely than not" approach on most systems just because it makes sense.
I'd disagree even with that;...
September 4, 2013 at 4:23 pm
Viewing 15 posts - 6,391 through 6,405 (of 7,616 total)