Viewing 15 posts - 2,311 through 2,325 (of 11,678 total)
1. You read the line and store it inside a string.
2. You read the first 3 characters and depending on the result, you decide what to do.
...
July 16, 2014 at 1:38 am
I remembered that it is sometimes called a "primary key constraint", so the question was easy enough.
Still I expect some flaming in this topic 🙂
July 16, 2014 at 12:52 am
Another vote for the view.
The DSV has the tendency to hide things for you, while a view is more straightforward.
Also, if the database is in source control it is more...
July 15, 2014 at 7:42 am
I would get all the dates that need to be processed and put them in an object variable.
In a for each loop, I would loop over all of the dates...
July 15, 2014 at 6:07 am
If you put zippedFile in the variable mappings, the for each loop will overwrite that variable each iteration of the loop with the current filename.
If you want the for each...
July 15, 2014 at 3:22 am
Where exactly do you use the datePart variable in your for each loop container configuration?
July 15, 2014 at 3:14 am
Iulian -207023 (7/15/2014)
Koen Verbeeck (7/15/2014)
How I would do it:
* read the file in line by line...
July 15, 2014 at 2:32 am
Indeed, the file is formatted quite well in the sense that it is very predictable.
How I would do it:
* read the file in line by line as one giant column...
July 15, 2014 at 1:29 am
No, there is no such parameter.
You would need to execute a TRUNCATE TABLE first before you call bcp.
July 14, 2014 at 2:27 am
Well, it would be easier to verify if you provided table DDL, sample data and desired output. (see the first link in my signature on how to do this).
The data...
July 14, 2014 at 1:32 am
I would suggest you pick up a good book about dimensional modelling, such as The Data Warehouse Toolkit: The Definitive Guide to Dimensional Modeling and especially Star Schema The Complete...
July 14, 2014 at 1:29 am
Maybe something like this:
SELECT Hole_ID, NAT_East, NAT_North, NAT_RL, Max_Depth, SUM(Interval) AS Sum_Intervals
FROM dbo.BCI_Step1_Test
WHERE (Fe_pct > 57)
GROUP BY NAT_East, NAT_North, NAT_RL, Max_Depth, Hole_ID
UNION ALL
SELECT Hole_ID, NAT_East, NAT_North, NAT_RL, Max_Depth, 0 AS...
July 14, 2014 at 12:43 am
Viewing 15 posts - 2,311 through 2,325 (of 11,678 total)