Many thanks,
cathy
Hi,
Please send the DDL and sample data.
Rahul
Cathy
You would need a better specification of the data format. That is why
Rahul asked for DDL and sample data. You could use SUBSTRING to extract
individual floats, CAST them to float and do with them as you please.
Depending on the data format, you have to create a cursor or loop, or
you might be able to use a set based approach using a numbers table.
--
Gert-Jan
SQL Server MVP
Then look at the fixed-length method in the same article:
http://www.sommarskog.se/arrays-in-sql-2005.html#fixed-length
And finally:
http://www.sommarskog.se/arrays-in-sql-2005.html#tablelists
This should get you going.
--
Erland Sommarskog, SQL Server MVP, esq...@sommarskog.se
Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
SQL 2000: http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx