Site Sponsored By: SQLDSC - SQL Server Desired State Configuration
Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Hello. I am trying to create a table from a text file that I created which contains a Windows directory structure. For instance, my text file contains lines that look something like this...K:\10\3980-Test Level1\3908IUL0-Test Level2\Microsoft\WindowsK:\20\5892-Test Data1\3902KMKD-Test Data2\SQL\FilesI would like my table to contain the following columns. In this example my columns are separated by the pipe symbol. The levels are the same as the levels in Windows file structure above.FULL PATH | 2ND LEVEL | 3RD LEVEL | 4TH LEVEL | 5TH LEVELSo, anyways what my script should look like to obtain my desired table?Thanks,Keith
khtan
In (Som, Ni, Yak)
17689 Posts
Posted - 2007-02-05 : 01:28:31
What do you want actually ? I am a bit confuse. You want the create table script ?