我是新手,我需要运行SSIS项目的脚本。
脚本如下:
public void Main()
{
var server = Dts.Variables["ExcelFileName"].Value as string;
var xlApp = new Microsoft.Office.Interop.Excel.Application();
xlApp.Workbooks.Open(server);
xlApp.Run("ResetReport");
我的表单中有checkedlistbox、textbox和combobox。我得到了这个错误:-
The variable name '@Provision' has already been declared. Variable names must be unique within a query batch or stored procedure.
Must declare the scalar variable "@BloodGroup".
以前,当我没有为checkedlistbox使用for循环时,它工作得很好。在使用for循环时,我的combobo
我正在使用SSIS和一个c#脚本任务。我想压缩多个csv文件,而不使用任何第三方应用程序。
这是我的密码:
#region Namespaces
using System;
using System.Data;
using Microsoft.SqlServer.Dts.Runtime;
using System.Windows.Forms;
using System.IO.Compression;
#endregion
public void Main()
{
{
string startPath = @