Hello,
I need to read files into "SQL Server 2000" tables.
What I have is a set of files, with a different number of fields in each line (but the same number for a given file), and I want for each file a table with fields files into rows and columns.
And I would like not to bother to describe file structure, just let (BULK INSERT + code) create a suited table for each file read.
For example :
File1.txt :
f1;f2;f3
f4;f5;f6
f7;f8;f9
...
and
File2.txt :
fa;fb
fc;fd
...
go to tables dbo..File1 and dbo..File2
dbo..File1
Col1 Col2 Col3
----- ----- -----
f1 f2 f3
f4 f5 f6
.......
dbo..File2
Col1 Col2
----- -----
fa fb
fc fd
.......
.......
Thanks for any clue.
I need to read files into "SQL Server 2000" tables.
What I have is a set of files, with a different number of fields in each line (but the same number for a given file), and I want for each file a table with fields files into rows and columns.
And I would like not to bother to describe file structure, just let (BULK INSERT + code) create a suited table for each file read.
For example :
File1.txt :
f1;f2;f3
f4;f5;f6
f7;f8;f9
...
and
File2.txt :
fa;fb
fc;fd
...
go to tables dbo..File1 and dbo..File2
dbo..File1
Col1 Col2 Col3
----- ----- -----
f1 f2 f3
f4 f5 f6
.......
dbo..File2
Col1 Col2
----- -----
fa fb
fc fd
.......
.......
Thanks for any clue.