This is a sample of my data table:
Record
9142,CSVSO62598,80413,2013-12-22 00:00:00.000,WB-H098,1,4.99,Individual,Sales extract OK!,255.0
9143,CSVSO53548,49098,2013-07-31 00:00:00.000,BK-R89B-48,4,5864.04,Individual,Sales extract OK!,255.0
9144,CSVSO70506,107403,2014-04-12 00:00:00.000,BC-M005,1,9.99,Individual,Sales extract OK!,255.0
I would like to create a function to put each values in is respective columns: This is the table:
CREATE TABLE #Temp(ID int
,SalesOrderNumber varchar(15)
,SalesOrderDetailID int
,OrderDate date -- varchar(25)
,ProductNumber varchar(25)
,Quantity int
,LineTotal money
,CustomerType varchar(25)
,TestData_1 varchar(50)
,TestData_2 varchar(50))
and i have 12134 record