0

尝试执行 SQLXMLBulkLoad 时遇到此错误。这是对象的配置:

Public Shared objbl As New SQLXMLBULKLOADLib.SQLXMLBulkLoad4
objbl.ConnectionString = ReadVariables("Data Source=localhost;Initial Catalog=db1;Integrated Security=True")
objbl.ErrorLogFile = workingdirectory & "\error.log"
objbl.TempFilePath = workingdirectory
objbl.CheckConstraints = True
objbl.KeepIdentity = False
objbl.Transaction = True
objbl.FireTriggers = True
objbl.Execute(workingdirectory & "\xsdtempfile.xsd", fname)

源和目标都在 locahost 上。

我看不到我的连接字符串有什么问题。

错误发生在这一行:

objbl.Execute(workingdirectory & "\xsdtempfile.xsd", fname)

谁能帮我一把?

4

1 回答 1

0
objbl.ConnectionString = "Provider=sqloledb;server=localhost;database=db1;integrated security=SSPI"

或试试这个

objbl.ConnectionString = "Provider=sqloledb;server=localhost;database=db1;user id=User;password=Password;persist security info=True;Connect Timeout=30"
于 2015-10-19T15:07:20.340 回答