This is the first time I\'ve used SQL and this is probably a stupid question but I\'ve done some research and I don\'t think I\'m finding what I\'m looking for.
What
You'll want to look at SQL Server Compact Edition
SQLite is great to use too, fast, lightweight ...
Just for getting a grip (VS 2010):
The code:
using System.Data.SqlServerCe;
namespace ConsoleApplication6
{
class Program
{
static void Main(string[] args)
{
using (var cn = new SqlCeConnection("Data Source=MyDB.sdf"))
{
cn.Open();
using (var cmd = cn.CreateCommand())
{
cmd.CommandText = "select * from MyTable where Field2 like '%AB%'";
using (var reader = cmd.ExecuteReader())
{
while (reader.Read())
{
Console.WriteLine("Field1: {0}", reader[0]);
}
}
}
}
Console.ReadKey();
}
}
}
Will output fox jumps the lazy.
BUT, I would go with SQlite for simple purposes. Wrapper is here: http://system.data.sqlite.org/index.html/doc/trunk/www/index.wiki
Yes, there is http://en.wikipedia.org/wiki/SQL_Server_Compact for such purpose.