|
|
|
SSC Rookie
      
Group: General Forum Members
Last Login: Tuesday, March 13, 2012 3:58 AM
Points: 42,
Visits: 234
|
|
Hi,
i have attached notepad file. i have one problem , how can i read the notepad file in sql server 2005. Please reply.
|
|
|
|
|
SSC Veteran
      
Group: General Forum Members
Last Login: Today @ 3:39 AM
Points: 210,
Visits: 574
|
|
Hi Grasshopper,
You're going to struggle to work with the file in the format it's in. SQL needs your data to be organised into discrete entities with rows and columns. Your file is organised with data on alternate rows and has metadata embedded within the data structure itself.
If it was me, I'd write a VB script to process the data first. But then, I'm a bit old fashioned 
Regards, Iain
|
|
|
|
|
SSC-Addicted
      
Group: General Forum Members
Last Login: Tuesday, May 10, 2011 2:08 PM
Points: 405,
Visits: 2,670
|
|
Does this help you?
SELECT BulkColumn FROM OPENROWSET (BULK 'C:\test.txt', SINGLE_CLOB) AS Z
|
|
|
|
|
SSC Rookie
      
Group: General Forum Members
Last Login: Tuesday, March 13, 2012 3:58 AM
Points: 42,
Visits: 234
|
|
irobertson (9/1/2010)
Hi Grasshopper, You're going to struggle to work with the file in the format it's in. SQL needs your data to be organised into discrete entities with rows and columns. Your file is organised with data on alternate rows and has metadata embedded within the data structure itself. If it was me, I'd write a VB script to process the data first. But then, I'm a bit old fashioned  Regards, Iain
Thanks for reply. Can you please tell me how can i read it by script.
|
|
|
|