![]() |
![]() |
![]()
Post
#1
|
|
![]() Grupa: Zarejestrowani Postów: 1 173 Pomógł: 121 Dołączył: 24.09.2007 Skąd: Toruń Ostrzeżenie: (0%) ![]() ![]() |
Mam oto taki sobie kod:
Kod private void button2_Click(object sender, EventArgs e) { baza.sprawdzBaze(); StreamReader sr = File.OpenText(openFileDialog1.FileName); while (sr.EndOfStream == false) { string linia = sr.ReadLine(); string data = DateTime.Now.ToShortDateString(); string sql = "insert into strony values(NULL,'" + linia + "','" + data + "')"; baza.dodajDane(sql); } } I jest taki problem, że program wywala mi błąd, że nie istnieje tabela strony, choć w rzeczywistości jest ![]() Wiem, że to nie forum o C#, ale może komuś uda się znaleźć przyczynę. |
|
|
![]() ![]() |
![]() |
Aktualny czas: 20.08.2025 - 06:39 |