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.
HiIn a text file data I want column name(i.e. header) what should option or method I used.
madhivanan
Premature Yak Congratulator
22864 Posts
Posted - 2006-05-29 : 04:21:44
Select "column1", column2", etcUnion allSelect column1, column2,etcNote that you need to cast columns to varchar if they are notAlso read thishttp://weblogs.sqlteam.com/brettk/archive/2005/04/13/4395.aspxMadhivananFailing to plan is Planning to fail