Click here to Skip to main content
15,892,674 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi i want to store the following information in Sqlce3.5 database from window mobile6.0 Application Form
i have two problem.

1: it show the Error "Database path is nor correct ",
my database path is "C:\Users\SHAMS\Documents\app.sdf "

please make the connection .

2: i want to store the following information of New user in to
USER Table in sqlce3.5 database from window mobile6.o application Form.

1 user name
2 user address
3 user country
4 user NIC


PLEASE HELP ME
Posted
Updated 11-Oct-10 19:09pm
v3
Comments
DavidKiryazi 30-Sep-10 5:22am    
Bit hard to understand :S

Are you trying to actually get the user registered in the database, ie. there is a new user and you want them to click on #Quote#Register#Quote# or some other button like that and then send the details into the database?

1 solution

1. Open SQL connection. Remember, we are using SQLCE not normal SQL so you need to add the SQLCE namespace, I think it is using System.Data.Sqlce;

2. Create SQLCe command object and write the insert query "INSERT INTO Users VALUES ('username, address, country, NIC)

3. call ExecuteNonQuery on the SQLCE command object.

Dave
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900