Miha
Sun Aug 27 02:56:43 CDT 2006
Hi,
I don't think it is supported, however you might try one of these:
- backup to a temp folder and load it into stream
- use .net within sql server (2005) and do the magic there
--
Miha Markic [MVP C#, INETA Country Leader for Slovenia]
RightHand .NET consulting & development www.rthand.com
Blog:
http://cs.rthand.com/blogs/blog_with_righthand/
"ad" <flying@wfes.tcc.edu.tw> wrote in message
news:%23ZM3SuYyGHA.3440@TK2MSFTNGP06.phx.gbl...
>
> When I use the asp.net to backup database, for example use
> backup database Health to disk='c:\Backup.bak'
> it will result in an error : No access right to c:\
>
> So, I want to backup it up to a stream and download it to client.
>
>
>
> "Scott M." <s-mar@nospam.nospam>
> ¼¶¼g©ó¶l¥ó·s»D:uIORp6WyGHA.3464@TK2MSFTNGP03.phx.gbl...
>> Sure, but why would you want to?
>>
>>
>> "ad" <flying@wfes.tcc.edu.tw> wrote in message
>> news:O30BRTWyGHA.1256@TK2MSFTNGP04.phx.gbl...
>>> When we use the SQL to backup a database, we use:
>>> backup database Health to disk='c:\Backup.bak' with init
>>> This will generate a physical file in disk.
>>>
>>> Can we backup file to a Stream?
>>>
>>
>>
>
>