Empty Error Message when trying to pull Database with RDA
- From: Christian Herzog <herzog@xxxxxxxxxx>
- Date: Thu, 16 Nov 2006 15:37:32 +0100
Hello,
I try to pull some tables from the SQL Server 2000 to the SQL Mobile Server 2005.
Everything works fine with the first 6 Tables, but I can not pull the last Table.
I do not have any idea about what could be wrong. Are there any restrictions to the Server? I look at the Table but can not find any special Column or Key or something. The Table has 700 rows.
I use Visual Studio 2005 (VB.net) and the OS of the handheld is WinCE5.0.
After pull the last Table an exception is thrown.
Here are the Exception-Informations :
Errors
Count: 1
item (0):
Message: ""
NativeError: 0
ErrorParameters: "" (3 Times)
NumericErrorParameters: 0(3 Times)
Source: "Microsoft SQL Server 2005 Mobile Edition"
As you can see, there are no Error Messages. As above said the code that I used is working fine with 6 other Tables.
Here is the code:
Public Function RDAPull(ByVal URL As String, _
ByVal Login As String, ByVal Password As String, _
ByVal LocalConn As String, ByVal LocalTable As String, _
ByVal SQL As String, ByVal ServerConn As String, _
ByVal TrackOption As System.Data.SqlServerCe.RdaTrackOption, _
ByVal ErrorTable As String) As String
Dim res As String = ""
Dim rda As New System.Data.SqlServerCe.SqlCeRemoteDataAccess(URL, _
Login, Password, LocalConn)
Try
rda.Pull(LocalTable, SQL, ServerConn, TrackOption, ErrorTable)
Catch sqlex As System.Data.SqlServerCe.SqlCeException
res = sqlex.Errors(0).Message.ToString
Catch ex As Exception
res = ex.Message
Finally
rda.Dispose()
End Try
Return res
End Function
'-> this works fine
RDAPull(Einstellungen.GetRDAInternetUrl, "", "", _
Einstellungen.GetLocalConnectionString, "SD_ArtStamm", _
"SELECT * FROM dbo.SD_ArtStamm", _
Einstellungen.GetOLEDBConnectionString, _
Data.SqlServerCe.RdaTrackOption.TrackingOff, _
"rda_SD_ArtStamm_Errors")
'-> this don't work
RDAPull(Einstellungen.GetRDAInternetUrl, "", "", _
Einstellungen.GetLocalConnectionString, "SD_ArtZusatz", _
"SELECT * FROM dbo.SD_ArtZusatz", _
Einstellungen.GetOLEDBConnectionString, _
Data.SqlServerCe.RdaTrackOption.TrackingOff, _
"rda_SD_ArtZusatz_Errors")
I don't know what to do. Can anybody help me?
Thank you,
Christian Herzog
.
- Prev by Date: WinCE 4.2 + SQLCE + VS2005
- Next by Date: Re: hidd_getfeature?
- Previous by thread: WinCE 4.2 + SQLCE + VS2005
- Next by thread: Re: Windows CE & GPIO manipulation
- Index(es):
Relevant Pages
|