Viewing 15 posts - 6,316 through 6,330 (of 7,608 total)
registrazioni 75612 (11/22/2013)
Ty.Please, what is IIRC please?
just a link to a doc site.
Ty
Max
IIRC == "If I recall correctly" == hedge in case I'm wrong 🙂
For more info on Change Tracking...
November 22, 2013 at 8:04 am
CDC could do it too, of course, but it has more overhead and is available only in Enterprise Edition; it's overkill for what you've described you need.
November 21, 2013 at 7:33 pm
Change Tracking should handle your situation easily and completely. IIRC, CT requires that the table have a PRIMARY KEY defined.
November 21, 2013 at 11:16 am
Of course not all CTEs are going to be updateable, it will depend on the specific coding of the CTE ;-).
November 21, 2013 at 11:06 am
You don't have to use two ROW_NUMBER() clauses/entries:
;WITH detail AS (
SELECT *, ROW_NUMBER() OVER (ORDER BY id) AS row_num
FROM #test
)
SELECT
...
November 21, 2013 at 11:04 am
Luis Cazares (11/20/2013)
As all values will show in a single column, the first value will determine the column data type.
I don't think that's right. I think SQL uses data...
November 20, 2013 at 1:42 pm
first a 800
first a 200
first a 1000
TOTAL 2000
first b 100
first b 200
TOTAL 300
second a 400
TOTAL 700
second b 400
TOTAL 1100
GRANDTOTAL 5100
I don't understand the totaling logic you want.
"TOTAL 700"?? Is...
November 19, 2013 at 11:18 am
I think so, but I couldn't swear to it. I think the differential bitmaps are restored as-is with the db, and not reset, but I'm not 100% sure. ...
November 18, 2013 at 4:51 pm
Donald Sawford (11/18/2013)
I know that a full backup should be run immediately after a restoration
That shouldn't really be necessary, assuming you still have the backups you used to do the...
November 18, 2013 at 1:53 pm
MAX(age) seems safe enough -- no one gets any younger :-).
Combining MIN(name) and MAX(name) would allow one name change ... that should handle everyone, right!?
/*
insert into #temp(id,name)
select 2,'Jane Single'
insert into...
November 18, 2013 at 1:16 pm
No, but I do know that you're never supposed to remove the Guest account from master. Basically SQL requires it. Put it back and try again before making...
November 13, 2013 at 4:22 pm
Something like below. If the LAST_NAME and FIRST_NAME are in the same table (shouldn't be, from a design standpoint), then you can remove the outer query and join and...
November 13, 2013 at 4:17 pm
DarthBurrito (11/13/2013)
I will get a false 1 since the modifieddate will always be larger than the ClosedField that has a NULL.
How can I tell it when the DateClosed field is...
November 13, 2013 at 2:09 pm
a20213 (11/7/2013)
Indeed, the same day of week has to be the same, mandatory.
PS: When you say "So, adding 6 mos gives a date of '2014-11-05', which becomes '2014-11-11',...
November 7, 2013 at 8:31 am
None of that is necessary: a simple calculation can give you the future date you need.
The code below assumes you want a future matching-day date on or after the months-added...
November 6, 2013 at 4:38 pm
Viewing 15 posts - 6,316 through 6,330 (of 7,608 total)