Something Besides Sql Server

I understand how nice Sql server express is, but I need to find a different way of storing data. I am trying to create a program that I can distribute without forcing the user to install a bunch of stuff (except the framework, of course).
I also understand that I could use xml, but I would need to learn a new way to program (I already know how to program against an SQL database).
Does anyone have any suggestions on what kind of database I could use, and any links on how to program against it?
[505 byte] By [timlshu] at [2008-2-2]
# 1
Access is probably what you need here. Just ship an MDB with your app.
cgraus at 2007-9-8 > top of Msdn Tech,Visual Studio Express Editions,Visual C# 2005 Express Edition...
# 2

That is what I was thinking about, but I can't figure out how to program against it. I know how to do the SQL, but how do I do the codebehind to connect to the database?
Any help?

timlshu at 2007-9-8 > top of Msdn Tech,Visual Studio Express Editions,Visual C# 2005 Express Edition...
# 4

Here is a small example to connect to an access database.



using System;
using System.Data;
using System.Data.OleDb;

public DataSet SelectFromDataBase()
{
OleDbConnection Conn = new OleDbConnection();
OleDbCommand Command = new OleDbCommand();
OleDbDataAdapter Adapter = new OleDbDataAdapter();
DataSet ds = new DataSet();
Conn.ConnectionString = ("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=F:\\access.mdb");
Adapter.SelectCommand = new OleDbCommand ("SELECT * FROM Orders", Conn);
ds.DataSetName = "Orders";
Adapter.Fill (ds, 0, 3, "Orders");

foreach (DataColumn dc in ds.Tables[0].Columns)
{
Console.Write("{0,-15}", dc.ColumnName);
}
Console.Write("\n");
for (int i=0; i<ds.Tables[0].Columns.Count; i++)
{
Str = dr//emoticons/emotion-55.gif" alt="Idea" />.ToString();
Str = Str.Trim();
Console.Write("{0,-15}" , Str);
}
Console.Write("\n");
return ds; // to the caller.. if any..
}

GlennWilson at 2007-9-8 > top of Msdn Tech,Visual Studio Express Editions,Visual C# 2005 Express Edition...
# 5
Have you everr tried Serializing your objects.
Usefull if not to much data and without the overhead of a database.
FrankDeKoninck at 2007-9-8 > top of Msdn Tech,Visual Studio Express Editions,Visual C# 2005 Express Edition...
# 6

Hi Frank,

We would like to get in touch with you. Could you please give us your email address?

Thank you,
Bhanu.

BhanuPrakashNunna-MSFT at 2007-9-8 > top of Msdn Tech,Visual Studio Express Editions,Visual C# 2005 Express Edition...
# 7

Bhanu,

dekoninckf@pandora.be

Please.

FrankDeKoninck at 2007-9-8 > top of Msdn Tech,Visual Studio Express Editions,Visual C# 2005 Express Edition...