Viewing 15 posts - 436 through 450 (of 499 total)
why not:
UPDATE a
SET a.Status = 'INVALID'
FROM CandidateTable a
JOIN CriteriaTable b
ON b.CampaignID = a.CampaignID AND b.CriteriaTypeID = 1 -- same as the WHERE EXISTS clause
WHERE NOT EXISTS (SELECT 1...
October 24, 2014 at 12:04 pm
In the Dataflow, use a multi-cast transformation. Then, define the two destinations and select the columns you want.
October 24, 2014 at 11:57 am
I think I eliminated the loop. Have a look:
--WHILE @updtIDX <= 3
--BEGIN
-----------------------------------------------------------------------------------------
update d1
set d1.Tick =
...
October 24, 2014 at 11:04 am
you could use Visual Studio with a database project and Schema Compare
October 24, 2014 at 10:11 am
This looks like a gaps and islands problem. Have you checked out:
https://www.simple-talk.com/sql/t-sql-programming/the-sql-of-gaps-and-islands-in-sequences/
October 24, 2014 at 7:52 am
Using your data, I get different results:
idxUserIdWorkstationTableNameAppRefNum ProcessDate ProcessTime Tick RankTick
8alf20512HouseKeepingP1K2369942014-10-202014-10-20 09:04:13.000 8 ...
October 24, 2014 at 7:32 am
happycat59 (10/23/2014)
g.britton (10/22/2014)
October 24, 2014 at 7:12 am
Ha! I like it!! Just likely enough to be true.
October 23, 2014 at 11:00 am
crazy! One wonders why....
October 23, 2014 at 8:25 am
Interestingly, this does yield a jobid that I can use, even though it is not THE job id. e.g. using that query I get
72A6BEB9941ED146AD41CCEED345E01D
the actual job id (from sysjobs)...
October 23, 2014 at 7:18 am
The problem is the stored procedure can be called from more than one Agent job, so I cannot hard-code the jobname like that.
October 22, 2014 at 10:24 am
look up the CONVERT function
October 21, 2014 at 10:11 am
Good discussion of this weirdness found here: http://blogs.msdn.com/b/sqlprogrammability/archive/2006/03/29/564110.aspx
Basically, your first division results in an effective precision of (38,35) and the second one effectively (38,6)
October 21, 2014 at 9:41 am
Viewing 15 posts - 436 through 450 (of 499 total)