Try this string path = "Data Source ="; path += System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase); path += "\\Database.sdf"; then myConnection = new SqlCeConnection(@path); cheers
D
Don Fizachi
@Don Fizachi