TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Dadu Da
NA
43
35.4k
Fatal error encountered during command execution.
May 14 2015 1:03 AM
I get following error
"Fatal error encountered during command execution."
during get data from MYSQL,my code as followed
Public Function CreateDataTable_withSelect(ByRef dt As DataTable, ByVal strSQL As String) As DataTable
Try
Dim con As New connectionClass
dt.Rows.Clear()
objCon = New MySqlConnection
objCon = con.connect
If (objCon.State = ConnectionState.Open) Then objCon.Close()
objCon.Open()
Comm.CommandText = strSQL
Comm.Connection = objCon
Comm.CommandTimeout = 0
adp = New MySqlDataAdapter(Comm)
adp.Fill(dt)
dt.AcceptChanges()
Catch ex As Exception
Displaymsgbox(Formname, "CreateDataTable_withSelect", ex.Message)
Finally
adp.Dispose()
objCon.Close()
objCon.Dispose()
End Try
End Function
the sql query as followed
"select @rn := @rn + 1 as SRno,(0)as Chk,TableId,TableNo,Pax,Status,Remarks
FROM Res_TableMaster, (SELECT @rn := 0) r
where tableno like'%' and Trans_type<>'Delete' and LocationId='C2940997-4EE4-4544-8EC1-981F0449D2FD' order by TableNo"
which execute successfully in Mysql server but not by using vb.net code
Reply
Answers (
1
)
i want to check the images is present or not in msaccess
How to extract particular word from eachstament ofText file