百度了下没有相关sql的解决办法。。
 无法将类型为“System.String”的对象强制转换为类型“System.String[]”。 (DTSWizard)
------------------------------
程序位置:   在 Microsoft.SqlServer.Dts.DtsWizard.DTSWizard.EnumerateLocalServers()
   在 Microsoft.SqlServer.Dts.DtsWizard.DTSWizard.GetLocalSqlServerName()
   在 Microsoft.SqlServer.Dts.DtsWizard.DTSWizard.GetDefaultSQLServerName(Boolean destination, WizardInputs wizardInputs)
   在 Microsoft.SqlServer.Dts.DtsWizard.SQLServerForm.SQLServerForm_Load(Object sender, EventArgs e)
   在 System.Windows.Forms.UserControl.OnLoad(EventArgs e)
   在 System.Windows.Forms.UserControl.OnCreateControl()
   在 System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   在 System.Windows.Forms.Control.CreateControl()
   在 System.Windows.Forms.Control.ControlCollection.Add(Control value)
   在 System.Windows.Forms.Control.set_ParentInternal(Control value)
   在 System.Windows.Forms.Control.set_Parent(Control value)
   在 Microsoft.SqlServer.Dts.DtsWizard.Step1.DataSourceComboBox_SelectedIndexChanged(Object sender, EventArgs e)
   在 System.Windows.Forms.ComboBox.OnSelectedIndexChanged(EventArgs e)
   在 System.Windows.Forms.ComboBox.set_SelectedIndex(Int32 value)
   在 Microsoft.SqlServer.Dts.DtsWizard.Step1.OnInitializePage(EventArgs e)
   在 Microsoft.SqlServer.Management.UI.WizardPage.RaiseEnterPage()
   在 Microsoft.SqlServer.Management.UI.WizardForm.NextPage(WizardPage nextPage)
   在 Microsoft.SqlServer.Management.UI.WizardForm.Next_Click(Object sender, EventArgs e)

解决方案 »

  1.   

    应该是 导入的时候列的string类型不对  无法将类型为“System.String”的对象强制转换为类型“System.String[]”。 
      

  2.   

    回楼上各位  是这样,点击 执行导入向导时,然后就出现这样的报错了
    如下 报错
    ===================================由于以下错误,将关闭此向导: (Microsoft SQL Server)------------------------------
    有关帮助信息,请单击: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=9.00.1399.00&EvtSrc=Microsoft.SqlServer.Management.UI.WizardFrameworkErrorSR&EvtID=UncaughtException&LinkId=20476===================================无法将类型为“System.String”的对象强制转换为类型“System.String[]”。 (DTSWizard)------------------------------
    程序位置:   在 Microsoft.SqlServer.Dts.DtsWizard.DTSWizard.EnumerateLocalServers()
       在 Microsoft.SqlServer.Dts.DtsWizard.DTSWizard.GetLocalSqlServerName()
       在 Microsoft.SqlServer.Dts.DtsWizard.DTSWizard.GetDefaultSQLServerName(Boolean destination, WizardInputs wizardInputs)
       在 Microsoft.SqlServer.Dts.DtsWizard.SQLServerForm.SQLServerForm_Load(Object sender, EventArgs e)
       在 System.Windows.Forms.UserControl.OnLoad(EventArgs e)
       在 System.Windows.Forms.UserControl.OnCreateControl()
       在 System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
       在 System.Windows.Forms.Control.CreateControl()
       在 System.Windows.Forms.Control.ControlCollection.Add(Control value)
       在 System.Windows.Forms.Control.set_ParentInternal(Control value)
       在 System.Windows.Forms.Control.set_Parent(Control value)
       在 Microsoft.SqlServer.Dts.DtsWizard.Step1.DataSourceComboBox_SelectedIndexChanged(Object sender, EventArgs e)
       在 System.Windows.Forms.ComboBox.OnSelectedIndexChanged(EventArgs e)
       在 System.Windows.Forms.ComboBox.set_SelectedIndex(Int32 value)
       在 Microsoft.SqlServer.Dts.DtsWizard.Step1.OnInitializePage(EventArgs e)
       在 Microsoft.SqlServer.Management.UI.WizardPage.RaiseEnterPage()
       在 Microsoft.SqlServer.Management.UI.WizardForm.NextPage(WizardPage nextPage)
       在 Microsoft.SqlServer.Management.UI.WizardForm.Next_Click(Object sender, EventArgs e)
      

  3.   

    求解啊 。。
    网查了下,说是要打sp2,我的sql2005 是 sp3啊 Microsoft SQL Server 2005 - 9.00.1399.06 (Intel X86)   Oct 14 2005 00:33:37   Copyright (c) 1988-2005 Microsoft Corporation  Developer Edition on Windows NT 5.1 (Build 2600: Service Pack 3) 还有说要 在命令行运行下列命令
    cd C:\Program Files\Microsoft SQL Server\90\DTS\Binn
    regsvr32 dts.dll   也这样运行了下  还是没什么效果。。求解释 求解决啊  拜托了 没法了