Creating SQL Server backup file (.bak) with c# to any location

后端 未结 5 1721
感动是毒
感动是毒 2021-02-03 13:35

I\'m trying to write simple application in C# which will allow me to backup, zip and send over ftp my SQL Server database. One problem I have encountered is that I\'m not able t

5条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-03 14:05

    Although this may not answer your immediate question, I'd advice you to look into SQL Server Integration Services (SSIS). This looks like the exact thing SSIS was created for, and in the 2008 version there's the possibility to use C# code if needed, should the standard components not do what you need (earlier versions used VB.NET).

    MSDN SSIS Info Link 1
    SSIS 2005 Tutorial Link 2

    Take a look at it.

提交回复
热议问题