Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to add column name after importing

Status
Not open for further replies.

hlmnsbuggy

Technical User
Mar 25, 2002
72
US

Hello
I got .csv data file and .sql file from outside company, Since .csv data has no column names, after I import to SQl, the column names show col1, col2, col3, etc. They also send me column name separately in .sql file format. I need to know how to replace default col names with correct column names

Please explain to me in details since I am a begineer for SQL

thanks!
 
Use the .sql file to create the table first. Then import the data into that table.

Denny
MCSA (2003) / MCDBA (SQL 2000) / MCTS (SQL 2005) / MCITP Database Administrator (SQL 2005)

--Anything is possible. All it takes is a little research. (Me)
[noevil]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top