Machiaveli
Programmer
Hi,
I've some textfiles which i would like to import. The problem is that there are over 1024 columns when separated.
This exceeds sql server's maximum columns.
The data in the textfiles which i want to import comes from a datacapture software. When separated there are columns that represents 1 columns, but they have an index descriped in another textfile which i don't import (see example).
formid fieldnr fieldname idx length
1 0 #Reference 0 11
1 0 #Date 0 6
1 0 #Time 0 6
1 1 question1 0 2
1 2 question1 1 1
1 3 question1 2 1
1 4 question2 0 2
1 5 question3 0 4
1 6 question4 0 2
1 7 question5 0 5
1 8 question6 0 5
1 9 question7 0 4
In the textfile which contains the data, all columns are included with no columname, but appear in order of the above example.
Now there should be a way to transform the data so that the columns where no value is specified are skipped.
Can someone help me on this?
I've some textfiles which i would like to import. The problem is that there are over 1024 columns when separated.
This exceeds sql server's maximum columns.
The data in the textfiles which i want to import comes from a datacapture software. When separated there are columns that represents 1 columns, but they have an index descriped in another textfile which i don't import (see example).
formid fieldnr fieldname idx length
1 0 #Reference 0 11
1 0 #Date 0 6
1 0 #Time 0 6
1 1 question1 0 2
1 2 question1 1 1
1 3 question1 2 1
1 4 question2 0 2
1 5 question3 0 4
1 6 question4 0 2
1 7 question5 0 5
1 8 question6 0 5
1 9 question7 0 4
In the textfile which contains the data, all columns are included with no columname, but appear in order of the above example.
Now there should be a way to transform the data so that the columns where no value is specified are skipped.
Can someone help me on this?