all groups > sql server clients > march 2005 >
You're in the

sql server clients

group:

Text file in text column


Text file in text column Rogers
3/30/2005 1:55:02 PM
sql server clients:
Can any one let me know like I wanna save the text file into text column and
Re: Text file in text column Rogers
3/30/2005 2:47:03 PM

First of all thanks for your reply but now there is one question like let's
assume we have saved the file in text column now I want to see the data so
can I see like that


select textfildname from tablename ?

thanks


[quoted text, click to view]
Re: Text file in text column David Gugick
3/30/2005 5:09:15 PM
[quoted text, click to view]

You can create a stored procedure that uses a text or ntext parameter and
inserts into the table. If you can't easily paste the text into a tool like
Query Analyzer to execute the procedure, you can use some client application
code in .net or classic VB to open the text file, establish a connection
with the server, and execute the procedure.

You may also be able to use the DTS Import wizard to process the file as a
single row, single column file and insert into the table.

--
David Gugick
Imceda Software
www.imceda.com

Re: Text file in text column David Gugick
3/30/2005 7:54:07 PM
That SQL will work.

--
David Gugick
Imceda Software
www.imceda.com

[quoted text, click to view]

AddThis Social Bookmark Button