If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > General > Chit Chat > Downloading Data from DB into a Templated Document

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-23-05, 14:12
piet piet is offline
Registered User
 
Join Date: Feb 2002
Posts: 20
Downloading Data from DB into a Templated Document

Hi everyone,

I am wondering if this is possible:

I am thinking about building a database application. One of the tables in the application will contain information about a business activity (i.e. a policy, procedure, etc.). The business activity information stored in the database table will contain fields such as: Author Name, Department, Summary, Description, CreateDate, ReviewDate, etc. Here is what I want to do. I want to be able to download this data into a templated Word document. The purpose for this is to ensure consistency across all documents. We use MS SQL and .NET.

Any suggestions as to whether this will work or how to make it work?

I hope this makes sense.

Thanks in advance,

Piet
Reply With Quote
  #2 (permalink)  
Old 10-04-05, 10:00
Madhivanan Madhivanan is offline
Registered User
 
Join Date: Oct 2003
Posts: 357
Use bcp

Exec Master..xp_cmdShell 'bcp "Select * from DBName..TableName" queryout "C:\myData.doc" -c'
__________________
Madhivanan

Failing to plan is Planning to fail
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On