C
cychun
Unregistered / Unconfirmed
GUEST, unregistred user!
以下代码是ASP.NET下 VB做的 在本机读取本机的文件没问题 在本机读取其它机子的文件 提示未能进行大容量插入,因为未能打开文件 拒绝访问(权限方面没问题) 在其它机子上运行 打开他本机的文件 提示 文件没找到(路径错误) 我加上他机子的IP也是同样.请高手指点,解决办法,万分感谢!!!
Dim conn As New SqlConnection
conn.ConnectionString = ConfigurationSettings.AppSettings("connectionstring"
Dim cmd As New SqlCommand
cmd.CommandText += "bulk insert wxrsgl..kqtext from '"
+ File1.PostedFile.FileName + "' with(datafiletype='char') "
cmd.Connection = conn
conn.Open()
cmd.ExecuteNonQuery()
conn.Close()
Dim conn As New SqlConnection
conn.ConnectionString = ConfigurationSettings.AppSettings("connectionstring"
Dim cmd As New SqlCommand
cmd.CommandText += "bulk insert wxrsgl..kqtext from '"
+ File1.PostedFile.FileName + "' with(datafiletype='char') "
cmd.Connection = conn
conn.Open()
cmd.ExecuteNonQuery()
conn.Close()