Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 ASP.NET
 Genarate SQL in a txt file

Author  Topic 

olay80
Yak Posting Veteran

62 Posts

Posted - 2005-03-28 : 07:26:01
hey guys,

after executing a query using C# i need to write the resulting set in a file how can i do it?

Thanx,
Oliver

MichaelP
Jedi Yak

2489 Posts

Posted - 2005-03-28 : 11:53:37
Well, the basic concept would be to get back a DataReader, loop through it and do a WriteLine to a StreamWriter object.

If you need more help than that, post back here. I can give you examples in VB.net.

Michael

<Yoda>Use the Search page you must. Find the answer you will.</Yoda>
Go to Top of Page

olay80
Yak Posting Veteran

62 Posts

Posted - 2005-03-29 : 00:19:25
i did thanx

Oliver
Go to Top of Page
   

- Advertisement -