Viewing 15 posts - 46 through 60 (of 5,503 total)
So you're actually storing a date value in a datetime column.
The date value for today is '20141003' (ISO format YYYYMMDD), but the datetime value might be '20141003 10:20:00'.
Therefore, when you...
October 3, 2014 at 1:39 pm
Steve Jones - SSC Editor (10/3/2014)
AFAIK there's CAL and there's per processor.
These are admin items, however. There's no limit in the code that determines...
October 3, 2014 at 1:18 pm
Hard to tell without seeing table def and any sample data...
My pot shot: CalDate holds a date value, therewith excluding the current day using the WHERE clause CalDate >=GETDATE()
October 3, 2014 at 12:42 pm
SQL Server is growing contiuously for two years, again and again. Shortly before it reaches the "mature status" it drops back with a new version.
Then it starts all over again:...
September 28, 2014 at 11:22 am
@mcfarlandparkway: I've seen you edited almost all your posts and replaced the original context with some rather meaningless information.
Please note that this is inappropriate on a forum since...
September 28, 2014 at 4:33 am
WITH cte AS
-- get all rows with OldValue ='Off' AND NewValue ='On'
-- this will include CustomerID=6
(
SELECT CustomerID, ChangeType, TimeStamp as Start
FROM Source_tbl
WHERE OldValue ='Off' AND NewValue ='On'
)
SELECT * FROM CTE
CROSS...
September 28, 2014 at 4:22 am
If this query is wrapped by a stored procedure (which it should...), it's fairly easy: just replace the bad performing code (but you'll violate contracts by doing so...).
If it is...
September 22, 2014 at 9:43 am
TheSQLGuru (9/21/2014)
September 21, 2014 at 4:41 pm
I don't think there's a programmable solution out there that will prevent spammers without affecting the "standard users" (captcha would belong to that kind of solutions). The majority of the...
September 21, 2014 at 12:43 pm
Lynn Pettis (9/20/2014)
SPAM ALERT:150 spam threads on the Recent Posts. Not a single post for help visible.
I reported two of those and left the forum afterwards.
If there's nothing done...
September 20, 2014 at 12:49 pm
Depending on the expected result it can either be wrong or right:
SUM(OrderQty) OVER (Partition by productID) as TotalOrderQty,
will return the Quantity for the year 2001 per productID.
But if you're...
September 7, 2014 at 6:12 am
ScottPletcher (9/3/2014)
There are 3rd party solutions that do that, but they are rather expensive. At least one we investigated uses its own "black box" to hold the data --...
September 3, 2014 at 12:22 pm
One of the issues when using triggers to audit changes is the ability to disable the trigger, apply the change and re-enable the trigger.
Without any audit for DDL changes the...
September 3, 2014 at 11:50 am
The trigger automatically changes the LastUpdateDate column to reflect that this row has been modified.
The purpose seems to be obvious...
Usually, the column would be modified using code that actually performs...
August 31, 2014 at 7:58 am
Viewing 15 posts - 46 through 60 (of 5,503 total)