System::String ^name_string;
SqlCeConnection ^sqlConnection = gcnew SqlCeConnection("Data Source=Northwind.sdf");
sqlConnection->Open();
SqlCeCommand comSelect = gcnew SqlCeCommand("SELECT * FROM tablo WHERE id = 33 ", sqlConnection);
SqlCeDataReader ^reader = comSelect->ExecuteReader();
name_string = reader["name"]->ToString();
sqlConnection->Close();
What's the mistake on the code above ?
:?: