亚洲免费在线-亚洲免费在线播放-亚洲免费在线观看-亚洲免费在线观看视频-亚洲免费在线看-亚洲免费在线视频

C#操作 Advantage Database Server 數據庫

系統 2462 0

相關下載

http://devzone.advantagedatabase.com/dz/content.aspx?key=31

1.安裝數據庫:????? ?

Advantage Database Server

2.安裝數據庫工具:

Advantage Data Architect

3.安裝.NET數據訪問組件(Advantage.Data.Provider.dll?for .net 2.0或Advantage.Data.Entity.dll for 3.5以上):

Advantage .NET Data Provider

?

簡單Demo:

引用?D:\Program Files (x86)\Advantage 11.10\ado.net\2.0\Advantage.Data.Provider.dll

      using System;

using Advantage.Data.Provider;  



namespace ADSDemo

{

    class Program

    {

        static void Main(string[] args)

        {

            // create a connection object  

           // AdsConnection conn = new AdsConnection("data source=c:\\data;" + 

            //"ServerType=remote|local; TableType=ADT");



            //AdsConnection conn = new AdsConnection();

            //conn.ConnectionString = "data source=c:\\data\\Demo2.add; " +

            //"user id = adssys; password = '' " +

            //"ServerType=local; TrimTrailingSpaces = true";



            //AdsConnection conn = new AdsConnection();

            //conn.ConnectionString = "data source=c:\\data\\Demo2.add; " +

            //"user id = adssys;  " +

            //"ServerType=local; TrimTrailingSpaces = true";
      
//AdsConnection conn = new AdsConnection("Data Source=\\\\127.0.0.1:6262\\data\\Demo2.add;ServerType=REMOTE;
User ID=AdsSys;Password=XXXXX;"); AdsConnection conn = new AdsConnection(); conn.ConnectionString = "data source=c:\\data\\Demo2.add; " + "ServerType=local; TrimTrailingSpaces = true"; AdsCommand cmd; AdsDataReader reader; int iField; try { conn.Open(); // create a command object cmd = conn.CreateCommand(); // specify a simple SELECT statement cmd.CommandText = "select * from users"; // execute the statement and create a reader reader = cmd.ExecuteReader(); // dump the results of the query to the console while (reader.Read()) { for (iField = 0; iField < reader.FieldCount; iField++) Console.Write(reader.GetValue(iField) + " "); Console.WriteLine(); } conn.Close(); } catch (AdsException e) { Console.WriteLine(e.Message); } catch (System.Exception ex) { Console.WriteLine(ex.Message); } Console.ReadKey(); } } }

C#操作 Advantage Database Server 數據庫


更多文章、技術交流、商務合作、聯系博主

微信掃碼或搜索:z360901061

微信掃一掃加我為好友

QQ號聯系: 360901061

您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描下面二維碼支持博主2元、5元、10元、20元等您想捐的金額吧,狠狠點擊下面給點支持吧,站長非常感激您!手機微信長按不能支付解決辦法:請將微信支付二維碼保存到相冊,切換到微信,然后點擊微信右上角掃一掃功能,選擇支付二維碼完成支付。

【本文對您有幫助就好】

您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描上面二維碼支持博主2元、5元、10元、自定義金額等您想捐的金額吧,站長會非常 感謝您的哦!!!

發表我的評論
最新評論 總共0條評論
主站蜘蛛池模板: 欧美成人se01短视频在线看 | 国产区久久| 四虎永久在线日韩精品观看 | 黄 色 三 级 网站 | 日韩中字在线 | 国产高清国产专区国产精品 | 中文字幕亚洲视频 | 天天干天天操天天碰 | 欧美精品久久久亚洲 | 午夜视频www | 亚洲91在线 | 免费看一级特黄a大片 | 97国内精品久久久久久久影视 | 久久99蜜桃精品久久久久小说 | 特级毛片s级全部免费 | 欧美高清性刺激毛片 | 99在线看| 欧美成人看片黄a免费 | 一级特级欧美午夜片免费观看 | 国产久爱青草视频在线观看 | 久久久精品2021免费观看 | 寡妇野外啪啪一区二区 | 久久99精品视香蕉蕉 | www亚洲视频 | 中国精品久久精品三级 | 毛片毛片毛片毛片毛片毛片毛片 | 亚洲国产视频在线 | 日本成人不卡 | 精品免费久久久久久成人影院 | 欧美日韩视频在线播放 | 国产精品久久做爰 | 亚洲成人高清在线观看 | 欧美午夜寂寞影院安卓列表 | 精品国产成人三级在线观看 | 亚洲国产成人资源在线桃色 | 免费观看欧美精品成人毛片 | 国产福利在线观看视频 | 92国产福利久久青青草原 | 精品哟哟国产在线观看 | 国产高清国产专区国产精品 | 国产美女mm131爽爽爽免费 |