发布网友 发布时间:2022-04-10 02:54
共3个回答
懂视网 时间:2022-04-10 07:15
Sub UpdateTask() Dim connStr As String = ConfigurationManager.connectionStrings("TaxSoftwareConnection").ToString() if File.Exists(path) Dim file As FileInfo=New FileInfo(path) Dim sr As StreamReader = file.OpenText() Dim script As String=sr.ReadToEnd() Try Dim conn As SqlConnection=new SqlConnection(connStr) conn.Open() Dim cmd As SqlCommand=conn.CreateCommand() cmd.CommandText=script cmd.ExecuteNonQuery() conn.Close() Catch ex As Exception End Try sr.Close() file.Delete() End If End Sub
VB读取sql文并删除
标签:str rip exist task cmd man creat ons 删除
热心网友 时间:2022-04-10 04:23
控件绑定数据库吗???热心网友 时间:2022-04-10 05:41
Dim conn As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("userlink.mdb"))