Viewing 15 posts - 76 through 90 (of 285 total)
For troubleshooting this, I would suggest logging onto the server console with the same account that the SQL Agent uses. Then execute the script in the context of that...
July 12, 2010 at 2:08 pm
Another option would be to use the Data Flow Script Component. With this component you could employ regular expressions to extract and transform the numeric data and load it...
July 12, 2010 at 10:19 am
The usual suspect in these cases is the permissions of the Windows account under which the job is executing. When you run the package interactively, it is executing with...
July 12, 2010 at 8:46 am
Here is an approach you might explore - although I don't know efficient it would be with your volume of data. Also, this assumes that your Subxx records have...
July 7, 2010 at 8:17 am
priya__
You're welcome. It was a slow day at the office and it was an interesting little exercise. I'm glad you were able to modify the SQL to better...
July 7, 2010 at 7:07 am
You have to include the WHILE loop to update the temp table with a new "batch" number at each break in the account number.
CREATE TABLE [dbo].[#test3](
...
July 6, 2010 at 2:31 pm
Replace the final SELECT query with this query. It uses a CTE (Common Table Expression) and the ROW_NUMBER function.
WITH NoDuplicates AS
(
select Acntno,date1,Emplno,Type,ACtion, min(recid) as recid, batch
from #test3
group by...
July 6, 2010 at 2:01 pm
OK - try this. It's not the most efficient SQL, it uses a WHILE loop, so you may have to tweak it if performance is an issue. ...
July 6, 2010 at 12:47 pm
Oops, sorry, that first row is excluded by the INNER JOIN. Change that to a RIGHT JOIN and it will appear.
July 6, 2010 at 9:11 am
It's this line in my sample code:
"where b.recid = 1 -- always use first record"
July 6, 2010 at 9:03 am
Here is a SQL approach using a self joined temp table:
CREATE TABLE [dbo].[#test3](
[Acntno] [nvarchar](14) NULL,
...
July 6, 2010 at 8:53 am
You could use the Script Component for this. It would examine each row and compare it to the values of the previous row to determine if it's a dup....
July 6, 2010 at 8:18 am
You can use a Script Task in your Control Flow to change the value of a variable. Define your variable as ReadWrite In the script task properties dialog. ...
July 6, 2010 at 7:57 am
OK then, a few more questions:
- Do the source files always have the same name?
- Are there always the same number of source files with unique formats?
-...
July 1, 2010 at 7:08 am
1 - give the derived column a new name
2 - use this expression:
(YEAR(your_Datetime_field) * 10000) + (MONTH(your_Datetime_field) * 100) + DAY(your_Datetime_field)
3 set the data type = four-byte signed integer [DT_I4]
4...
June 30, 2010 at 1:24 pm
Viewing 15 posts - 76 through 90 (of 285 total)