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

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

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -