Click here to Skip to main content
15,888,351 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi All,

I'm writing a code that requires me to use a database. I decided to use sql server compact 3.5 database but can't link it up with my application.
Please, can someone help me with 1st how to and were to input the connection string(for a windows form application) and how to connect with the database.

Thanks in Advance.
Posted
Updated 17-May-11 2:28am
v2

1 solution

Try:
SqlCEConnection con = new SqlCEConnection(myConnectionString);
con.Open();
SqlCECommand com = new SqlCECOmmand("INSERT INTO myTable (myColumn1, myColumn2) VALUES (myColumn1Value, myColumn2Value)", con);
...
 
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