VS2008ÖÐC#²Ù×÷AccessÊý¾Ý¿â£¬ÍøÉÏÏÂÔØÁËÒ»¸öÀ࣬¿ÉÒÔÕý³£Á¬½Ó£¬¶ÁÈ¡Êý¾Ý£¬µ«ÊDzåÈëɾ³ý²Ù×÷ËƺõÓÐÎÊÌ⣬ÒÔÏÂÊDz¿·Ö´úÂ룺
Êý¾Ý¿âÀࣺ
namespace AccessDb
{
public class AccessDbClass
{
public AccessDbClass(string Dbpath)
{
ConnString = ......
ÎÒÏëдһ¸öµ¥»úͳ¼Æ¹¤×÷Á¿µÄ³ÌÐò£¬µ«Ö§³Ö¶àÕÊ»§Ê¹ÓÃ,·½±ãÐ޸ġ¢²éѯ¡¢Í³¼Æ¡£ËùÒÔÏëÓõ½Access,ÒªÔõô×ö±È½ÏºÃ£¬ÎÒ»¹Ã»ÓÐ×ö¹ý¹ØÓÚÊý¾Ý¿â·½ÃæµÄ³ÌÐò¡£Çë´ó¼Ò¸øÎÒÒ»¸ö˼·°¡!Ö÷ÒªÊÇÊý¾Ý¿âÕâÒ»¿é.
Ê×ÏÈÒª×öºÃÐèÇóµÄ·ÖÎö
¾ÍÊÇÄãҪʵÏÖʲôÑùµÄ¹¦ÄÜ
Òª¶ÔʲôÊý¾Ý½øÐвÙ×÷
¸ù¾ÝÊý¾Ý½¨Á¢ÄãµÄ±í
¶àÓû§£¬¿ØÖÆÔÚÓ¦Óòã
Êý¾Ý ......
1.ÿÕűí¿ÉÒÔ½¨Á¢¶àÉÙ¸ö×Ö¶Î
2.Ôõôдһ¸ösqlÓï¾ä½«Ä³¸ö×ֶζ¨ÒåΪ£¬¡°ÊÇ¡±£¬¡°·ñ¡±ÀàÐÍ
(1)ºÜ¶àºÜ¶à¡£
(2)ʹÓÃbitÀàÐÍ¡£
1.ÿÕűí¿ÉÒÔ½¨Á¢¶àÉÙ¸ö×Ö¶Î
Ó¦¸ÃÊÇ255¸ö
2.Ôõôдһ¸ösqlÓï¾ä½«Ä³¸ö×ֶζ¨ÒåΪ£¬¡°ÊÇ¡±£¬¡°·ñ¡±ÀàÐÍ
BIT
1£¬µ¥ÕűíµÄ×ֶθöÊýÏÞÖÆÊÇ255
2£¬ACCESSÖÐÊÇ¡°ÊÇ/·ñ¡±ÀàÐÍ£¬SQLÖÐÊÇbitÀàÐÍ
......
ÓÃVB ×öÁ˸öÊý¾Ý¿â ¹ÜÀíϵͳ£¬ÓõÄÊÇAccessÊý¾Ý¿â¡£¶ÁÊý¾ÝûÓÐÎÊÌ⣬¾ÍÊÇÔÚÊý¾Ý¿â²åÈëʱ£¬ÔËÐÐûÓÐÎÊÌ⣬µ«´ò¿ªÊý¾Ý¿âʱ£¬²¢Ã»ÓÐÊý¾ÝдÈë¡£Ôõô»ØÊ£¿
ºÇºÇ¡£ Äǿ϶¨ÊÇÄã´úÂëдµÄ²»¶Ô¿©¡£²»¿ÉÄܳöÏÖÕâÖÖÇé¿öµÄ¡£ ACCESS Êý¾Ý¿â¾ÍËã»úÆ÷ÉÏûװÓÃVB´ò°üºÃµÄ°²×°³ÌÐòÒ²ÊÇ¿ÉÒÔʹÓõÄŶ¡£·
ÕâµÃ¿´ÄãµÄ³ÌÐò´úÂëÁË£¬ÈçºÎÉ ......
SQL code:
select A.commandKey,A.enabled,A.commandFile,A.targetControl,A.rightId,A.type,[B].[value] as commandType,A.state,[C].[value] as commandState,A.parent,A.commandText,A.commandTipText,A.icon,A.description
from t_commands as A
inner join t_parameters as B on [A].[type]=[B].[code]
inne ......
ÎÒдÁËÒ»¶ÎºÜ¼òµ¥µÄÓÃado.netÁ¬½ÓÊý¾Ý¿âµÄ´úÂ룬¿ÉÊÇÔËÐкóÌáʾûÊ¿ɰ²×°µÄISAM£¡
ÕâÊÇʲôÒâ˼£¿ÎÒ¸ÃÔõô×ö²ÅÄÜÕý³£Á¬½Ó¡£
´úÂëÈçÏ£º
C# code:
static void Main(string[] args)
{
OleDbConnection thisConnection = new OleDbConnection(@"Provider=Microsoft.Jet.OLEDB.4.0;DataSo ......
×ܼǼÊý:990; ×ÜÒ³Êý:165; ÿҳ6 Ìõ;
Ê×Ò³ ÉÏÒ»Ò³ [2] [3] [4] [5] 6
[7] [8] [9] [10] [11] ÏÂÒ»Ò³ βҳ