Exforsys

Online Training

SQL SERVER CE

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 ...


Go Back   Exforsys > Articles and Tutorials > Microsoft .NET Tutorials and Articles

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-18-2004, 04:32 AM
Member
 
Join Date: Apr 2004
Posts: 37
NareshShroff
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\&quot Then
\'File.Delete(\"\\My Downloads\\ssce.sdf\&quot
\' End If
\'Dim sqlEngine As New SqlCeEngine(\"Data Source=\\My Downloads\\ssce.sdf\&quot
\'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\&quot
MsgBox(\"Pull Operation Completed\", MsgBoxStyle.Information, \"Pull\&quot
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:
\"My Downloadsssce.sdf\"
there is a backslash b/n my downloads and sssce.sdf

Post edited by: NareshShroff, at: 2004/08/18 04:33

Post edited by: NareshShroff, at: 2004/08/18 04:36
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools

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

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


Similar Threads

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


All times are GMT -4. The time now is 07:21 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2004 - 2007 Exforsys Inc. All rights reserved.