Viewing 15 posts - 12,061 through 12,075 (of 13,876 total)
By 'static', I was referring to the file name, not the contents of the file. Unless you have done anything fancy, this will already be the case - the...
May 20, 2010 at 10:39 am
Easiest solution is to leave the destination file static, but put a File System or Script task at the end of the job which does a file copy for you,...
May 20, 2010 at 10:08 am
If your text qualifier were working correctly, you would not be seeing quotes in the output.
It seems that you are suggesting that only rows beginning with 21 are failing. But...
May 20, 2010 at 5:30 am
clucasi (5/20/2010)
I have my text delimiter to a " already because most of the fields have quotes in
Please post a couple of records of source data. Do you really want...
May 20, 2010 at 5:15 am
What are your row and column delimiters set to?
Looks like you need to set your text qualifier to be " to avoid importing all the quotes.
Use a hex editor to...
May 20, 2010 at 5:04 am
RexSmith (5/20/2010)
Dim f As String
For Each f In System.IO.Directory.GetFiles(path)
...
May 20, 2010 at 4:57 am
bas de zwart (5/18/2010)
You could try the Bulk Insert command, it has an option to limit the number of rows:http://msdn.microsoft.com/en-us/library/aa225968%28SQL.80%29.aspx
By using LASTROW = 1, I guess. Nice idea.
Here is your...
May 18, 2010 at 2:16 am
The problem here is not one of column and row delimiters, rather that some of the source rows are split over two rows and some only one, making a straightforward...
May 18, 2010 at 1:26 am
As far as I can see, not natively. But a Script Task will, of course, do it for you fairly simply.
May 18, 2010 at 1:17 am
You implied in the last post that anything other than a NULL was being handled correctly - so I gave you a way of making sure you weren't passing a...
May 17, 2010 at 1:27 pm
At some point before doing the write you should check array(i) and modify to an empty string if it is null. eg:
For...
May 17, 2010 at 9:39 am
OK - so what happens when there is an X25 field which contains the text "Fred"? At what point is the padding done?
May 17, 2010 at 9:15 am
apache626 (5/17/2010)
Yes if it came in as a string filled with the number of spaces to match the fixed width for the field that would be fine. Thanks Phil
I...
May 17, 2010 at 8:22 am
If your script task is doing everything, it must 'know' what the field lengths should be - how else could it write a fixed-width file?
If the field came in as...
May 15, 2010 at 2:31 am
sql2k8 (5/13/2010)
when the data gets loaded . the excel will be kept in a file share. then the users will upload the...
May 14, 2010 at 12:38 am
Viewing 15 posts - 12,061 through 12,075 (of 13,876 total)