Hej försöker connecta access får detta felmess: No inputs specified(CS2008) Hej!No inputs specified??
vad kan det bero på?? kör med Sharpdevelop
så här ser koden ut
using System;
using System.Data.OleDb;
class OleDbTest{
public static void Main(args[])
{
OleDbConnection conn = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\\seko.mdb");
OleDbCommand comm = new OleDbCommand("select * from tabell1", conn);
try
{
conn.Open();
OleDbDataReader hitta = comm.ExecuteReader();
while(hitta.Read())
{
Console.WriteLine(hitta.GetInt32(0).ToString());
}
hitta.Close();
conn.Close();
}
catch(OleDbException e)
{
Console.WriteLine("Error: {0}", e.Errors[0].Message);
}
}
}Sv: No inputs specified??
Testa att ändra din connectionstring till:
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\\seko.mdb;User Id=admin;Password=;"