How to import data from a file into a single column of a SQL Server database? -


i have simple table 1 column (+ key column). column varchar(n) type. import data text file. file looks this:

string1 string2 . . . stringz 

i don't know how generate script insert these values table. or there simplier tool import in such scenario?

update: sorry forgot have column in table , value must set same int rows.

thanks help.

there several approaches writing own little utilty it, using bcp or other built in tools. easiest approach use import data wizard - in ssms right click on database want import into, choose tasks , import data.


Comments

Popular posts from this blog

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

c++ - Convert big endian to little endian when reading from a binary file -