使用ADODB連接同一台server上的不同資料庫

文章發佈於 : 2004-09-16 01:11:39 | 文章分類 : 程式相關
標籤 :

這個問題之前我同事有問過我,今天又有一個網友問我.
所以我就把這個修改方法貼上來,讓有需要的人都可以參考.

1. 修改 $adodb_path/drivers/adodb-mysql.inc.php
將 var $forceNewConnect = false; 改成 var $forceNewConnect = true;

2. 使用不同的連結方法
原本我們所使用的方法是 $db1->Connect("$mysql_host","$mysql_user","$mysql_pass","mysql");
將連結的方法改成 $db1->NConnect("$mysql_host","$mysql_user","$mysql_pass","mysql");

 Love is waiting so you don't have to. Join Date.com for free!
 Join Asia FriendFinder the Largest Asian Dating Site on the Web for FREE!
 Kaspersky Security for Internet Gateway 7.0
 Know when to sell on eBay using research

閱讀全文 | 回 應(0) |

 SQLite.NET wrapper

文章發佈於 : 2004-09-16 00:52:12 | 文章分類 : 程式相關
標籤 :

A couple of classes in C# to allow access to SQLite databases from C#.
Does not follow the ADO.NET style of data access,
instead going for a simpler method consisting of a client class, and a result set class.

:item2: View Detail
 Love is waiting so you don't have to. Join Date.com for free!
 Join Asia FriendFinder the Largest Asian Dating Site on the Web for FREE!
 Kaspersky Security for Internet Gateway 7.0
 Know when to sell on eBay using research

閱讀全文 | 回 應(0) |

 C# 連接 MySQL

文章發佈於 : 2004-09-16 00:49:33 | 文章分類 : 程式相關
標籤 :

我使用的是 MySQLDriverCS
這個code是阿維自己寫的,歡迎自由使用 (商業,非商業...隨便都可以啦! 不管怎麼用都不用給我錢!)

using MySQLDriverCS


// 建立資料庫連線 
MySQLConnection DBConn
DBConn = new MySQLConnection(new MySQLConnectionString("localhost","mysql","root","",3306).AsString); 
DBConn.Open(); 

// 執行查詢 
MySQLCommand DBComm
DBComm = new MySQLCommand("select Host,User from user",DBConn); 
          
// 讀取資料 
MySQLDataReader DBReader DBComm.ExecuteReaderEx(); 
          
// 顯示資料 
try 

  while (
DBReader.Read()) 
  { 
   
Console.WriteLine("Host = {0} and User = {1}"DBReader.GetString(0),DBReader.GetString(1)); 
  } 

finally 

   
DBReader.Close(); 
   
DBConn.Close(); 


// 關閉資料庫連線 
DBConn.Close(); 



:item2: 下載MySQLDriverCS
 Love is waiting so you don't have to. Join Date.com for free!
 Join Asia FriendFinder the Largest Asian Dating Site on the Web for FREE!
 Kaspersky Security for Internet Gateway 7.0
 Know when to sell on eBay using research

閱讀全文 | 回 應(11) |

 Mono 實作 C# ASP.net

文章發佈於 : 2004-09-14 22:40:34 | 文章分類 : 程式相關
標籤 :

還記得我在 Novell Linux Day 為大家所介紹的 Mono 嗎?
剛剛阿凱幫我們找到一篇 使用 Mono 實作 C# ASP.NET 的文章
這篇文章有詳細的說明,並且介紹了幾個相當不錯的參考網址.
想要再更進一步了解 Mono 嗎?
不要遲疑,就趁現在快點去看一下這篇文章

 Love is waiting so you don't have to. Join Date.com for free!
 Join Asia FriendFinder the Largest Asian Dating Site on the Web for FREE!
 Kaspersky Security for Internet Gateway 7.0
 Know when to sell on eBay using research

閱讀全文 | 回 應(0) |

 BlogShares Links Exchange

1. Step into the Nexus 2. Scary Personals 3. Scared Bunny
4. This Is A Cult 5. Its all about me 6. Webby's World
7. Flower Delivery 8. Mindblogging Stuff 9. Random Thoughts by R. U. Serious
10. Palmistry and Hand Analysis 11. Forward-and-Share 12. The Site With the Lamp
13. Free Sample Forager 14. Kosir 15. CRM Reports

 阿維推薦

1. ㄚ凱隨手記 2. ↖「懿」*瘋*堂↗ 3. A.D. Notepad 西元記事本
4. Liang's Blog 5. 硬是要學! 6. 北國風情
7. 綠色工廠 8. 淡淡的天空藍 9. 班大貓廢紙塗鴉部落格
10. 大豆剝落殼 11. SEO网站优化推广 12. lazy Guy
13. PHP 黑店 14. Meson手扎

 Back Links