firebird Embedded模式(.net 3.5)
更新時間:2008年12月25日 15:00:24 作者:
實現(xiàn)的關(guān)鍵:copy fbembed.dll icudt30.dll icuuc30.dll到system32文件夾下
復制代碼 代碼如下:
Dim connectionString = New FbConnectionStringBuilder()
connectionString.ClientLibrary = "fbembed.dll"
connectionString.ServerType = FbServerType.Embedded
connectionString.Database = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Test.Fdb")
connectionString.Pooling = True
connectionString.Dialect = 3
Dim conn As New FbConnection(connectionString.ToString)
Dim comm As New FbCommand("select first 10 * from test", conn)
conn.Open()
Dim fp As New FbDataAdapter(comm)
Dim ds As New DataSet
fp.Fill(ds)
fp.Dispose()
comm.Dispose()
conn.Close()
Repeater1.DataSource = ds.Tables(0)
Repeater1.DataBind()
ds.Dispose()
文件下載
相關(guān)文章
自寫一個模仿Dictionary與Foreach的實現(xiàn)及心得總結(jié)
利用閑暇時間自己寫一個類模仿Dictionary實現(xiàn),如果一個類進行foreach的話,該類必須實現(xiàn)IEnumerable,集合要支持foreach方式的遍歷,必須實現(xiàn)IEnumerable接口,感興趣的你可不要錯過了哈2013-02-02
如何使用ASP.NET創(chuàng)建網(wǎng)站并設(shè)計web頁面
這篇文章主要介紹了如何使用ASP.NET創(chuàng)建網(wǎng)站,幫助大家更好的理解和學習使用ASP.NET技術(shù),感興趣的朋友可以了解下2021-04-04
jQuery調(diào)用WebService返回JSON數(shù)據(jù)及參數(shù)設(shè)置注意問題
.NET Framework 3.5的發(fā)布解決了WebService調(diào)用中json問題,本文將介紹jQuery調(diào)用基于.NET Framework 3.5的WebService返回JSON數(shù)據(jù),感興趣的朋友可以了解下,希望本文對你有所幫助2013-01-01
ASP .NET調(diào)用javascript中Response.Write和ClientScript.RegisterSta
最近在用ASP .NET的code behind 調(diào)用javascript中發(fā)現(xiàn)Response.Write不能拿到form的值,而ClientScript.RegisterStartupScript可以。2010-12-12

