DTS will do it. BCP might do it. Give us a little more.
Do you want to put the complete contents of a text file into a single cell of the database, like storing a document within the database?
Or do you have like a comma-separated file to be imported into multiple rows of the database, like a list of states to populate a States table? --Angel
-----------------------------------
Every time I lose my mind, I wonder
if it's really worth finding.
How long is the message? If you want to get the best answer for your question read faq183-874 and faq183-3179. Terry L. Broadbent - DBA
SQL Server Page:
The length of the message varies ,Its actually textual matter the smallest is a file with 40 lines.
I tried using bulk insert , but didnt work.Its that each file is to be taken as message for each user.
(but first must be stored in a field)
Let me be more specific. How many characters will be in the file? Will it exceed 8000 characters? What is the schema of the table you need to insert this message into? How frequently wil this run? How do you intend to start the process to load the messsage?
Have you considered attaching the text file to the email and sending it as an attachment? If you want to get the best answer for your question read faq183-874 and faq183-3179. Terry L. Broadbent - DBA
SQL Server Page:
Microsoft included a utility program that copies text and image data in the SQL Server samples. See the articles at the following links. You don't even need to write code yourself.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.