This is a discussion on SQL SERVER CE within the Microsoft .NET Tutorials and Articles forums, part of the Articles and Tutorials category; hmm some one help me ( My final project is to develop an application for a pocket pc using sql server ...
|
|||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
SQL SERVER CE
hmm some one help me
(My final project is to develop an application for a pocket pc using sql server ce and vb.net. since 2 days im struggling hard to just make the connection work, but till now im not able to get it done. I just copied the example code for pull method from msdn still not working. I tested my SQL Server virtual directory configuration. and is fine. This is the error im getting =========================== SQL Server CE encountered problems in opening the SQL Server CE database =========================== COde Private Sub btnPull_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnPull.Click \' If File.Exists(\"\\My Downloads\\ssce.sdf\" Then\'File.Delete(\"\\My Downloads\\ssce.sdf\" ![]() \' End If \'Dim sqlEngine As New SqlCeEngine(\"Data Source=\\My Downloads\\ssce.sdf\" ![]() \'sqlEngine.CreateDatabase() Dim rdaOleDbConnectString As String = \"Provider=sqloledb; Data Source=NARESH;Initial Catalog=NorthWind; User ID=;Password=\" Dim rda As SqlCeRemoteDataAccess = Nothing Try rda = New SqlCeRemoteDataAccess rda.InternetLogin = \"\" rda.InternetPassword = \"\" rda.InternetUrl = \"http://NARESH/SQLCE/sscesa20.dll\" rda.LocalConnectionString = \"Provider=Micrsoft.SQLSERVER.OLEDB.CE.2.0;Data Source=\\My Downloads\\ssce.sdf\" rda.Pull(\"Employees\", \"Select * from Employees\", rdaOleDbConnectString, RdaTrackOption.TrackingOnWithIndexes, \"ErrorTable\" ![]() MsgBox(\"Pull Operation Completed\", MsgBoxStyle.Information, \"Pull\" ![]() Catch ex As SqlCeException MessageBox.Show(ex.Message) Finally rda.Dispose() End Try End Sub ===================== On searching google i understood that the problem is with the connection string or SQL Server 2000 user account. I didnt find much info about this error. Please someone who knows about pocket pc development help me out. I need to finish this project asap. I searched all the forums and articles but could able to fix it. It would be very very greatfull if someone can guide me thru in SQL Server CE Database connectivity. Thank You, Naresh P.S. Quote:
Post edited by: NareshShroff, at: 2004/08/18 04:33 Post edited by: NareshShroff, at: 2004/08/18 04:36 |
![]() |
| Thread Tools | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Mail Archive Server software list | Piero Serini | Tech FAQ | 0 | 10-19-2005 12:36 AM |
| XFree86 Frequently Asked Questions | Joe Moss | Tech FAQ | 0 | 07-30-2004 12:29 AM |