Welcome to dbForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Create Text File and insert it into database

 
   Database Forums (Home) -> Programming RSS
Next:  using flash in ms access 97  
Author Message
Ben

External


Since: Feb 04, 2005
Posts: 6



(Msg. 1) Posted: Sat Feb 05, 2005 6:40 am
Post subject: Create Text File and insert it into database
Archived from groups: microsoft>public>sqlserver>programming (more info?)

Hi

How can I create a text file (with my own file extension), populating it
with a few values from our database using a stored proceedure and naming it
using a field from the database.

Any advice would be much appreciated.

Thanks
Ben

 >> Stay informed about: Create Text File and insert it into database 
Back to top
Login to vote
John Bell

External


Since: Jun 01, 2004
Posts: 496



(Msg. 2) Posted: Sun Feb 06, 2005 12:40 pm
Post subject: Re: Create Text File and insert it into database [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi

There are many ways to do this, including DTS, or using xp_cmdshell to run
BCP, osql/isql or echo statements.
These may help <a rel="nofollow" style='text-decoration: none;' href="http://www.sqldts.com/default.aspx?292" target="_blank">http://www.sqldts.com/default.aspx?292</a>
<a rel="nofollow" style='text-decoration: none;' href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/tsqlref/ts_xp_aa-sz_4jxo.asp" target="_blank">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/tsqlr...ts_xp_a</a>
<a rel="nofollow" style='text-decoration: none;' href="http://tinyurl.com/56ojv" target="_blank">http://tinyurl.com/56ojv</a>
You may want to search google for other examples.

John

"Ben" wrote in message

 > Hi
 >
 > How can I create a text file (with my own file extension), populating it
 > with a few values from our database using a stored proceedure and naming
 > it using a field from the database.
 >
 > Any advice would be much appreciated.
 >
 > Thanks
 > Ben
 >

 >> Stay informed about: Create Text File and insert it into database 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Export SQL data to text file - Hi, What is the easiest/best way to export data from a SQL table to a text file (the text file may need to be a comma seperated or a tab seperated file)? This needs to execute automatically overnight. thanks for any help folks, Des.

writing data to text file - Hello there How can I create new text file by sql and write data to it?

import hebrew from text file - i have a text file mixed with hebrew text an numbers now when i import it by bulk insert i get: hebrew words writen from left to right and correct numbers. so i have to apply a function for reversing the words with out reversing the numbers is their....

Numbers becoming text when exported into XL file - I'm porting some data from SQL Server 2005, in an SSIS package, to an XL spreadsheet. The numbers keep showing up as text in the spreadsheet, which requires me to create a second worksheet which refers to the text numbers with a VALUE() function, in....

Move a user database log file - Hi, SQL 2000 sp3a How do I change the phisical location of the transaction log file? Thanks, Yan
   Database Forums (Home) -> Programming All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]