Hi Dave,
As far I know you can run a sql query like above on your smart objects through the ado.net data provider...
Some example code:
SOConnection conn = new SOConnection(“blackpearl”, 5555);
SOCommand cmd = new SOCommand();
cmd.Connection = conn;
cmd.CommandText = “INSERT INTO [Employee] (FirstName) VALUES (@FirstName)”;
cmd.Parameters.Add(new SOParameter(“FirstName”, FirstNameTextBox.Text));
int recordsInserted = cmd.ExecuteNonQuery();
I think there are some limits to the SQL commands you can use - the last I heard the limits where:
- No nested queries
- No aggregate functions
- and no TOP syntax.
These things will be possible in the feuture too, not sure in which release..
Ciao,
Gerhard
-----------------------------------------------------------------------------