VB.NET Compact Framework

  • Thread starter Nilesh Patel via .NET 247
  • Start date
N

Nilesh Patel via .NET 247

(Type your message here)

Hello Every one !

I have an problem during the fill Dataadapter with DataSet & table name when it's running that time it's gving SqlCeServer.dll Error.

and i writen the code like this

Private Const pi_ConnPath As String = "\My Documents\JMS.sdf"
Private pi_WeightDetailsConn As System.Data.SqlServerCe.SqlCeConnection
Private pi_WeightDetailsAdapter As System.Data.SqlServerCe.SqlCeDataAdapter
Private pi_WeightDataSet As DataSet
Private pi_SQL As String

Dim WeightDetails As String

pi_WeightDetailsConn = New SqlCeConnection("Data Source=" & pi_ConnPath)
pi_WeightDetailsConn.Open()

pi_SQL = "SELECT * from WeightMaster"
pi_WeightDetailsAdapter = New SqlCeDataAdapter("pi_SQL", pi_WeightDetailsConn)

pi_WeightDataSet = New DataSet

pi_WeightDetailsAdapter.Fill(pi_WeightDataSet, "WeightDetails")
DgWeightDetails.DataSource = pi_WeightDataSet.Tables("WeightDetails")
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,014
Latest member
BiancaFix3

Latest Threads

Top