Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > MSDE got stuck in WebService

Thread Tools

MSDE got stuck in WebService

Posts: n/a
I have a WebService which simply obtain data remotely from a PocketPC PDA
and store it in the database. The following codes are one of the functions
in my "service1.asmx". Each time I call it either from a PDA or ASPX page,
it can successfully do exactly what I want it to be. However, I just found
that each time I call it, the MSDE (i.e. the database engine) will become
stuck, the database can neither be restarted nor removed, and I used to
modify the database engine by a SQL script file, which will initially delete
the whole database. Besides this, everything is fine and the engine works
properly. And what I currently did for script modification is to restart the

Does anyone have similar experience and know the solution? Please help.

<WebMethod()> _
Public Function UploadScanRecord(ByVal sdata As SerialScanData) As
Dim SqlConnection1 As SqlConnection
Dim SqlCommand1 As New SqlCommand

SqlConnection1 = New SqlConnection(DBString)

SqlCommand1.CommandText = "INSERT INTO [dbo].[InDetail]
(ItemNum, UBD, LotNum, TagID, ScanTime, RemoteDateCreate, Loc, Operator)
VALUES ('" & sdata.ItemNum & "','" & sdata.UBD & "','" & sdata.LotNum &
"','" & sdata.TagID & "','" & sdata.ScanTime & "','" & sdata.DateCreat &
"','" & sdata.Loc & "','" & sdata.Operator & "')"
SqlCommand1.Connection = sqlConnection1

Return "OK"

Catch ex As Exception
''ReportException(ex, sdata)
Return "ERROR " & ex.ToString
End Try
End Function

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
got stuck with cstdio streamkid C++ 3 03-15-2007 10:50 PM
window explorer got stuck spidervn General Computer Support 1 09-27-2006 03:44 PM
GOT STUCK IN JAVA PROBLEM FACER Java 10 02-13-2006 09:30 PM
Got stuck with wchar_t *argv[] Sumpfman C Programming 6 11-18-2004 02:38 PM
got stuck with my first struts example sonali Java 2 03-03-2004 12:53 PM