SqlCeDataReader.SqlCeexeption Error

  • Thread starter Thread starter Nurten
  • Start date Start date
N

Nurten

Hi...
I have same problem too.. but I can't find the reason..
at the

"myconnection.open "

have an error

"An unhandled exception of type 'System.Data.SqlServerCe.SqlCeException'
occurred in System.Data.SqlServerCe.dll"

please help..I'm boring this error :)
 
Hi All,


Public back(.......) as Object
Dim strsql As String = "SELECT LNGFIELD1 FROM TBL1"
Dim BaglantiKur As New SqlCeCommand(strsql, Baglantim)
Baglantim.Open()
myReader = BaglantiKur.ExecuteReader
--> if my field is LONG ,in here i'm taking ( An Unhandled
Sqlceexception..) error.

But byte,Integer,String... don't problem
why?



Altan
 
What's the type of LNGFIELD1?

Use Try-Catch block to see the detailed exception.

Public function back(.......) as Object
try

'put Your Code here

Catch ex as Sqlceexception
For Each ex In ex.Errors
MsgBox(ex.NativeError.ToString() & ex.Message)
Next
end try
end function
 
Back
Top