Hi Betty,
From your description, you have an existing CSV file and you want to
extract some part of the CSV file out and export them into excel file,
correct?
Are you wantting to do it programmtically or just want to do such an
transformation and not necessary to use code? Based on my experience,
#SQL Server 2005 ¨C Integration Services
http://technet.microsoft.com/en-us/sqlserver/bb671392.aspx
#How to import an Excel file into SQL Server 2005 using Integration Services
http://www.builderau.com.au/program/sqlserver/soa/How-to-import-an-Excel-fil
e-into-SQL-Server-2005-using-Integration-Services/0,339028455,339285948,00.h
tm
http://www.mssqltips.com/tip.asp?tip=1202
If this need to be done programmtically, a common approach is read the csv
file via OLD db provider(jet engine) and access the data like a database
table. However, I think it maybe a bit hard to export it exactly as excel
format, btw, excel can directly convert csv format, will it work for your
case.
#How To Open Delimited Text Files Using the Jet Provider's Text IIsam
http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:
80/support/kb/articles/Q262/5/37.ASP&NoWebContent=1&NoWebContent=1
#Using OleDb to import text files (tab, csv, custom)
http://www.codeproject.com/KB/cs/UsingJetForImport.aspx
Also, are you going to do this converting in ASP web page? If not, for
normal desktop applicatin, we can use excel automation object model to
create excel worksheet:
http://support.microsoft.com/kb/302096
http://support.microsoft.com/kb/302094
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------