PC Review


Reply
Thread Tools Rate Thread

Could not load type 'System.Data.SqlServerCe.SqlCeConnection' from assembly 'System.Data.SqlServerCe, Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91'.

 
 
yogeshvc@gmail.com
Guest
Posts: n/a
 
      11th Sep 2006
Hi,

I m new bie to VS 2005 pocket pc development. I m trying to connect to
SQL CE database which will be created locally and used locally by
pocket pc application and nothing to do with sql server 2005 database.

Added Reference - System.Data.SqlServerCe

Dim engine As New SqlCeEngine("Data Source = \My Documents\test.sdf")
engine.CreateDatabase()

Dim ssceconn As New SqlCeConnection("Data Source = \My
Documents\test.sdf")
ssceconn.Open()

Dim sqlCreateTable As SqlCeCommand = ssceconn.CreateCommand()
sqlCreateTable.CommandText = "CREATE TABLE People(people_id int
IDENTITY(0,1) PRIMARY KEY, f_name ntext, l_name ntext)"
sqlCreateTable.ExecuteNonQuery()

Dim sqlInsertRow As SqlCeCommand = ssceconn.CreateCommand()
sqlInsertRow.CommandText = "INSERT INTO People(f_name, l_name)
VALUES('John', 'Doe')"
sqlInsertRow.ExecuteNonQuery()
ssceconn.Close()

And along with this, I cannt see Microsoft SQL Server Mobile Edition
while adding datasource in my project.
Data | Add New Data Source.

Guys please guide me thr' this.

Yogesh

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Could not load file or assembly 'System.Transactions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. Access is denied Ken Microsoft ASP .NET 0 5th May 2007 01:30 AM
System.Security.SecurityException: Error de solicitud de permiso de tipo System.Net.WebPermission, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089. Luis Esteban Valencia Microsoft ASP .NET 0 14th Jul 2005 02:43 PM
System.Data.SqlServerCE =?Utf-8?B?RGF2aWQgSA==?= Microsoft Dot NET Framework 3 24th Nov 2004 11:11 PM
correct version of System.Data.SqlServerCe.dll =?Utf-8?B?Q2hhcmxlcyBXYW5n?= Microsoft Dot NET Compact Framework 2 5th Sep 2004 03:22 AM
Type.GetType doesn't work with System.Data.SqlServerCe C. Vollmer Microsoft Dot NET Compact Framework 0 31st Jul 2003 09:32 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:59 AM.