10/10/2010, 11:54
Aşağıda Sdf uzantılı veritabanı için yazılı komutları mdb uzantılı veritabanında çalışmasını nasıl sağlarız.
Dim sqlcmdtext1 As String = "select * from " & table_name 'Sorgu oluşturulması
Dim Command1 As New SqlServerCe.SqlCeCommand(sqlcmdtext1, Connection)
Dim DataAdapter1 As New SqlServerCe.SqlCeDataAdapter(Command1)
Dim CommandBuilder1 As SqlServerCe.SqlCeCommandBuilder
Dim DataTable1 As New DataTable
CommandBuilder1 = New SqlServerCe.SqlCeCommandBuilder(DataAdapter1)
DataAdapter1.Fill(DataTable1)
Dim row1 As DataRow = DataTable1.NewRow[/size]
Dim sqlcmdtext1 As String = "select * from " & table_name 'Sorgu oluşturulması
Dim Command1 As New SqlServerCe.SqlCeCommand(sqlcmdtext1, Connection)
Dim DataAdapter1 As New SqlServerCe.SqlCeDataAdapter(Command1)
Dim CommandBuilder1 As SqlServerCe.SqlCeCommandBuilder
Dim DataTable1 As New DataTable
CommandBuilder1 = New SqlServerCe.SqlCeCommandBuilder(DataAdapter1)
DataAdapter1.Fill(DataTable1)
Dim row1 As DataRow = DataTable1.NewRow[/size]