Caute pouzivam SQL Server Compact cize sdf databazu. pre pripojenie a nasledne vlozenie dat pouzivam tento kod
Dim con As New OleDb.OleDbConnection("Data Source=|DataDirectory|\db_internat.sdf")
con.Open()
Dim com As New OleDb.OleDbCommand("insert into skupina (nazov_skupiny,id_vychovavatel) values ('" & nazov & "','" & vychovavatel & "')", con)
com.ExecuteNonQuery()
con.Close()
a ked dam vykonat tieto prikazy tak mi vyhodi chybu An OLE DB Provider was not specified in the ConnectionString. An example would be, 'Provider=SQLOLEDB;'. viem ze problem je v nadefinovani spojenia, len neviem ako presne to ma byt nadefinovane, mozete mi pomoct? vdaka cujan
|