Viewing 15 posts - 1,726 through 1,740 (of 2,007 total)
Assign the "filename" to a DTS variable in a script task, then use the variable as the attachment and the path for the flat file destination.
December 30, 2010 at 10:02 am
rmechaber (12/21/2010)
December 30, 2010 at 9:50 am
UPDATE mytable
SET column1 = 'test'
WHERE ABS(myid) % 2 = 1
Seems Dave was quicker off the draw than me 😉
December 30, 2010 at 9:46 am
To add to this, I had a similar issue not too long ago which was solved on this forum.
December 23, 2010 at 9:26 am
Using Gianluca's sample data :
UPDATE #tmp_table
SET Diff = t2.Diff
FROM #tmp_table t1
INNER JOIN (
SELECT a.ID, a.Inv, a.Est, a.Inv-SUM(b.Est) AS Diff
FROM #tmp_table a
CROSS JOIN #tmp_table b
WHERE (b.ID <= a.ID)
GROUP BY a.ID,a.Est,a.Inv) t2
ON...
December 21, 2010 at 3:51 am
Backups used to be made regularly, but due to disk space it was turned off (not by me).
In the end, the tape disk was there, so I was able to...
December 16, 2010 at 3:25 am
Rob Schripsema (12/15/2010)
What? You're allowing a developer to touch production data? Yikes!
Yes, well, I've spoken to the DBA (who is on sick leave) and we've decided that we'll be making...
December 15, 2010 at 11:08 am
Unfortunately not. Awesome. I'm hoping that we have a tape backup from last night, but with our Network Admin I'm hoping in vain.
Maybe they'll listen to me from now...
December 15, 2010 at 10:33 am
See below sample code. If you still need help, post your code.
DECLARE @ddmmyyy VARCHAR(MAX), @mmddyyy VARCHAR(MAX)
SET @ddmmyyy = '23/4/2010 0:00'
SET @mmddyyy = '4/23/2010 0:00'
SET DATEFORMAT dmy ...
December 9, 2010 at 6:24 am
You'll never get an accurate result from that table.
You could count all of the records that were during consecutive minutes, but what if it ran twice over 2 minutes?
E.G.
Run 1...
December 8, 2010 at 8:59 am
stricknyn (12/1/2010)
Is there a way you can have the primary key output from the system that produces the error file? This would essentially solve your problem. If the...
December 2, 2010 at 12:52 am
Thanks a lot everyone. I had Jeff's article marked down as something that would probably benefit this, but to be honest I haven't got around to it yet (guess what...
November 23, 2010 at 3:14 am
Assuming I've understood what you've asked for: -
WHERE [Admission Method (Hospital Provider Spell)] in ('11','12','13','31','32','81','82','83','21','22','23','24','28')
November 12, 2010 at 7:13 am
If this isn't what you want, then please read the link in my signature.
(note: there may be a better way of doing this)
DECLARE @TABLE AS TABLE(
ID INT IDENTITY,
InTime DATETIME,
OutTime DATETIME)
INSERT...
November 9, 2010 at 5:37 am
Kingston Dhasian (10/6/2010)
Oh. You are right. Your solution is the correct one then.
Still, it's a presentation layer task rather than a DB task, as you pointed out.
October 6, 2010 at 6:03 am
Viewing 15 posts - 1,726 through 1,740 (of 2,007 total)