Ê×Ò³£º
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>ÎÞ±êÌâÒ³</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<table style="width:600; text-align: left;">
<tr>
<td colspan="3" style="height: 77px">
<asp:Label ID="Label1" runat="server"></asp:Label>
</td>
......
Ê×Ò³£º
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>ÎÞ±êÌâÒ³</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<table style="width:600; text-align: left;">
<tr>
<td colspan="3" style="height: 77px">
<asp:Label ID="Label1" runat="server"></asp:Label>
</td>
......
ÈçºÎÔÚ Access ÖвåÈëÒ»ÌõеļǼʱ,Ô¤ÏÈÖªµÀËûµÄ×Ô¶¯±àºÅIDÄØ?
Õâ¸öÎÊÌâÀ§ÈÅÁËÎҺܾÃ
ºóÀ´ÎÒÏëÁËÒ»¸öºÜ±¿°ì·¨
¾ÍÊÇÏȲåÈëÒ»Ìõ ËæÒâµÄÊý¾Ý µ±È»ÀïÃæÓÐÓÐÒ»¸öÄãʵÏÖÔ¤¶¨ºÃµÄ±êʶ
±ÈÈç
insert into cmd (classID,cmdType,cmd) values('temp','temp','temp')
È»ºóÕÒµ½Ëü ¶ÁÈ¡ËüµÄID
select * from cmd where classID='temp'
ÔÙ¸üÐÂËü
update cmd set classID=*,cmdType=*,cmd='*
ÕâÑùÕâ¸öID¾Í³öÀ´À²....
ºÃÓôÃÆ°¡ ¾õµÃÕâ¸ö°ì·¨Ì«´ÀÁË
ÓÐûÓиßÈËÓбȽϺõķ½·¨ »¹ÍûÖ¸½Ì!! ......
1.´ò¿ªSQL server enterprise mananger “ÆóÒµ¹ÜÀíÆ÷”
ÔÚÄãÒªµ¼³öµÄSQLÊý¾Ý¿âÉÏÊó±êÓÒ¼ü²Ëµ¥£ºËùÓÐÈÎÎñ-¡·µ¼³öÊý¾Ý
2.»Ø³öÏÖÒ»¸öµ¼³öÏòµ¼´°¿Ú¡£
Ñ¡Ôñ±»µ¼³öµÄÊý¾ÝÔ´£¬ÎªÄã¸Õ²ÅËùÑ¡ÔñµÄÊý¾Ý¿â£¬Èç¹û·¢ÏÖ²»¶ÔÓ¦×ÔÐÐÐ޸ġ£
3.½øÈëµ¼³öµ½Ä¿±êÊý¾ÝÔ´µÄÑ¡Ôñ£¬ÕâÀïÎÒÃÇҪת³ÉACCESSµÄÊý¾Ý¿â¡£×¢ÒâÑ¡ÔñÊý¾ÝÔ´ÀàÐÍΪ“Microsoft Access¡£µã “ÎļþÃû(F)” ºóÃæµÄ°´Å¥Ñ¡ÔñÄ¿±ê.MDBÎļþ¡£
4.Ñ¡Ôñ“´ÓÊý¾Ý¿â¸´ÖƱíºÍÊÓͼ”¡£
5.ÎÒÃÇ×¢ÒâÕâÀïÑ¡±íµÄʱºòÓÒ±ßÓÐÒ»¸ö“ת»»”ÁС£SQLµ¼³öֻת»»Êý¾ÝÀàÐͲ¢²»¿¼ÂÇÆäËû½Å±¾ËùÒÔÎÒÃÇÓöµ½µÄ×Ô¶¯±àºÅÎÊÌâÒ²¾Í³öÔÚÕâÀï¡£ÓÐ×Ô¶¯±àºÅµÄÒ»¶¨ÒªµãÑ¡“ת»»”¡£
6.ÎÒÃǻؿ´µ½Ò»¸ö“ÁÐÓ³ÉäºÍת»»”¶Ô»°¿ò¡£ÓÐ×¢Òâµ½×ÔÔöµÄemployeeid int ×ÔÔöÕâÀï±ä³ÉÁËAccessÀïµÄlongÕâ¿Ï¶¨²»¶Ô£¬long²¢²»ÊÇ×Ô¶¯±àºÅ£¬Ö»ºÃÐ޸Ľ¨±í½Å±¾£¬Í¼Æ¬ÉÏÄǸöºìȦÀïµÄ°´Å¥“±à¼SQL”¡£
¿ªÒ»¸öС´°create talbe
ºìȦÖеĽű¾¾ÍÊÇemployeeid µÄ Access½¨±í½Å±¾£¬ÔÚ “NOT NULL” Ç°Ãæ¼ÓÉÏ “IDENTITY (1, 1)”¡£
7.Á¢¼´Ö´ÐС£
ÏÂͼ±íʾ½¨±í¸´ÖÆÒѳɹ¦
8.ÎÒÃÇ´ò¿ªMDBÎļ ......
1.´ò¿ªSQL server enterprise mananger “ÆóÒµ¹ÜÀíÆ÷”
ÔÚÄãÒªµ¼³öµÄSQLÊý¾Ý¿âÉÏÊó±êÓÒ¼ü²Ëµ¥£ºËùÓÐÈÎÎñ-¡·µ¼³öÊý¾Ý
2.»Ø³öÏÖÒ»¸öµ¼³öÏòµ¼´°¿Ú¡£
Ñ¡Ôñ±»µ¼³öµÄÊý¾ÝÔ´£¬ÎªÄã¸Õ²ÅËùÑ¡ÔñµÄÊý¾Ý¿â£¬Èç¹û·¢ÏÖ²»¶ÔÓ¦×ÔÐÐÐ޸ġ£
3.½øÈëµ¼³öµ½Ä¿±êÊý¾ÝÔ´µÄÑ¡Ôñ£¬ÕâÀïÎÒÃÇҪת³ÉACCESSµÄÊý¾Ý¿â¡£×¢ÒâÑ¡ÔñÊý¾ÝÔ´ÀàÐÍΪ“Microsoft Access¡£µã “ÎļþÃû(F)” ºóÃæµÄ°´Å¥Ñ¡ÔñÄ¿±ê.MDBÎļþ¡£
4.Ñ¡Ôñ“´ÓÊý¾Ý¿â¸´ÖƱíºÍÊÓͼ”¡£
5.ÎÒÃÇ×¢ÒâÕâÀïÑ¡±íµÄʱºòÓÒ±ßÓÐÒ»¸ö“ת»»”ÁС£SQLµ¼³öֻת»»Êý¾ÝÀàÐͲ¢²»¿¼ÂÇÆäËû½Å±¾ËùÒÔÎÒÃÇÓöµ½µÄ×Ô¶¯±àºÅÎÊÌâÒ²¾Í³öÔÚÕâÀï¡£ÓÐ×Ô¶¯±àºÅµÄÒ»¶¨ÒªµãÑ¡“ת»»”¡£
6.ÎÒÃǻؿ´µ½Ò»¸ö“ÁÐÓ³ÉäºÍת»»”¶Ô»°¿ò¡£ÓÐ×¢Òâµ½×ÔÔöµÄemployeeid int ×ÔÔöÕâÀï±ä³ÉÁËAccessÀïµÄlongÕâ¿Ï¶¨²»¶Ô£¬long²¢²»ÊÇ×Ô¶¯±àºÅ£¬Ö»ºÃÐ޸Ľ¨±í½Å±¾£¬Í¼Æ¬ÉÏÄǸöºìȦÀïµÄ°´Å¥“±à¼SQL”¡£
¿ªÒ»¸öС´°create talbe
ºìȦÖеĽű¾¾ÍÊÇemployeeid µÄ Access½¨±í½Å±¾£¬ÔÚ “NOT NULL” Ç°Ãæ¼ÓÉÏ “IDENTITY (1, 1)”¡£
7.Á¢¼´Ö´ÐС£
ÏÂͼ±íʾ½¨±í¸´ÖÆÒѳɹ¦
8.ÎÒÃÇ´ò¿ªMDBÎļ ......
PBÖÐÁ¬½ÓAccessÊý¾Ý¿âµÄÈýÖÖ·½·¨
·½Ê½Ò»£º
SQLCA.DBMS = "ODBC"
SQLCA.AutoCommit = False
SQLCA.DBParm = "ConnectString='driver=Microsoft Access Driver (*.mdb);DBQ=c:\foodmart.mdb'"
CONNECT;
IF SQLCA.SQLCode <> 0 THEN
MessageBox("Êý¾Ý¿âÁ¬½Óʧ°Ü","ÇëÓë¹ÜÀíÔ±ÁªÏµ¡£´íÎóºÅ:" + String(SQLCA.SQLCode) + "~r~n´íÎóÔÒò:" + SQLCA.SQLErrText)
RETURN
else
MessageBox("Êý¾Ý¿âÁ¬½Ó³É¹¦","ÏÖÔÚ½øÈëϵͳ... ...")
end if
·½Ê½¶þ£º
SQLCA.DBMS = "OLE DB"
SQLCA.AutoCommit = False
SQLCA.DBParm = "PROVIDER='Microsoft.Jet.OLEDB.4.0',DATASOURCE='C:\foodmart.mdb'"
CONNECT;
·½Ê½Èý£º
½¨Á¢DSN£¬Í¨¹ýODBCÁ¬½Ó¡£Õâ¸ö¾Í²»Óöà˵ÁË¡£
ÀýÈç:
// Profile my_ass
SQLCA.DBMS = "ODBC"
SQLCA.AutoCommit = False
SQLCA.DBParm = "ConnectString='DSN=my_ass'"
catalog tables could not be created and are&nb ......
¹ÊÕÏÏÖÏó:
Windows 2008 64λϵͳ,aspÍøÒ³·ÃÎÊaccessÊý¾Ý¿â±¨ÈçÏ´íÎó.
Ïà¹Ø´úÂë
set conn=server.CreateObject("adodb.connection")
set rs=server.CreateObject("adodb.recordset")
connstr="provider=microsoft.jet.oledb.4.0;data source="&server.mappath("db/db.mdb")
conn.open connstr
sql="select * from sort where sort_id=1"
rs.open sql,conn,3,3
»òÕßÌáʾ 500 ´íÎó
½â¾ö·½·¨:
ÎÊÌâ³öÔÚ64λÊý¾Ý¿âÁ¬½ÓÇý¶¯ÉÏ,Ð޸ĔÆôÓÃ32λӦÓóÌÐò”ΪTrue¼´¿É½â¾öÎÊÌâ.
´ò¿ªIIS£¬´ò¿ªÓ¦ÓóÌÐò³Ø£¬ÕÒµ½¶ÔÓ¦ÍøÕ¾µÄÃû×Ö£¬Ñ¡Ôñ"¸ß¼¶ÉèÖÃ"
ÔÌùÄÚÈÝ:
http://www.duxt.net/article.asp?id=36
......
Éý»ªÌṩÖÕÉíÃâ·ÑASP+access PHP+mysqlÐéÄâÖ÷»ú
Ò»£ºÉý»ªÍøÂç¿Æ¼¼ÓÐÏÞ¹«Ë¾,ÓëÉý»ªÍ¬ÔÚÕ¾³¤ÖÕÉíÃâ·Ñ¿Õ¼ä·ö³Ö¼Æ»®.
1¡¢×ð¾´µÄÓû§ÄúºÃ,Ò²ÐíÄú»¹ÔÚΪÿÄêÒ»½»µÄ¿Õ¼ä·ÑÓ÷¢³î,Ò²ÐíÄúÏë»ñµÃÒ»¸ö¸üÓÅÖʵĿռäÈ´²»ÏëͶÈëÌ«¶à,´ÓÏÖÔÚÆð ÕâЩÎÊÌ⽫ÓÈжø½â→Éý»ªÍøÂç←ÓëÉý»ªÍ¬ÔÚÕ¾³¤·ö³Ö¼Æ»®È«ÃæÆô¶¯¡£
2¡¢Ã»ÓÐ×¢²á¹«Ë¾µÄ·þÎñÉ̲»ÊÇÕý¹æµÄ£¬Ã»ÓÐICPµçÐÅÔöÖµÒµÎñÐí¿ÉÖ¤µÄ¹«Ë¾ÊDz»¹ýÓ²µÄ¡£
3¡¢Éý»ªÈÏΪҪ×öµ½µÄËĵ㣺1¡¢¿Õ¼äÎȶ¨ 2¡¢ÊÛºó·þÎñ 3¡¢¿Õ¼äËÙ¶È 4¡¢¿Õ¼ä°²È« ÕâËĵãÊÇÒÔÎÒÃǵľÑé¶øÅÅÁгöµÄÇáÖØ»º¼±Ë³Ðò¡£
-----------------------------------------------------------------------------------
¶þ£º½ÓÊÜÔÞÖúÒªÇó:
1¡¢ÓÐ×Ô¼ºµÄÓòÃûºÍÍøÕ¾£¬ÇÒÓòÃûÒÑͨ¹ý±¸°¸£¡
2¡¢ÍøÕ¾µ×²¿ÐèÌí¼Ó“Éý»ªÐéÄâÖ÷»úÓÑÇéÌṩ”²¢Á¬½ÓÖÁ±¾Õ¾
3¡¢²»Î¥·´µØ·½»ò¹ú¼Ò·¨ÂÉ·¨¹æ¡£
4¡¢ÓÅÐãÕ¾¿É¼Ó´ó¿Õ¼ä´óС¡¢IIS²¢·¢Êý¡¢ÓòÃû°óÊý¡£
¹¤×÷ʱ¼ä: 10:00--22:00
QQ¢Ù:464667978 QQ¢Ú£º464669267 µç»°£º0391-6113388(¹¤×÷ʱ¼ä) 6506898(Ï°àʱ¼ä)
http://Www.ShengHua.Biz
-----------------------------------------------------------------------------------
Èý£ºÉý»ªÃâ·Ñ ......
Éý»ªÌṩÖÕÉíÃâ·ÑASP+access PHP+mysqlÐéÄâÖ÷»ú
Ò»£ºÉý»ªÍøÂç¿Æ¼¼ÓÐÏÞ¹«Ë¾,ÓëÉý»ªÍ¬ÔÚÕ¾³¤ÖÕÉíÃâ·Ñ¿Õ¼ä·ö³Ö¼Æ»®.
1¡¢×ð¾´µÄÓû§ÄúºÃ,Ò²ÐíÄú»¹ÔÚΪÿÄêÒ»½»µÄ¿Õ¼ä·ÑÓ÷¢³î,Ò²ÐíÄúÏë»ñµÃÒ»¸ö¸üÓÅÖʵĿռäÈ´²»ÏëͶÈëÌ«¶à,´ÓÏÖÔÚÆð ÕâЩÎÊÌ⽫ÓÈжø½â→Éý»ªÍøÂç←ÓëÉý»ªÍ¬ÔÚÕ¾³¤·ö³Ö¼Æ»®È«ÃæÆô¶¯¡£
2¡¢Ã»ÓÐ×¢²á¹«Ë¾µÄ·þÎñÉ̲»ÊÇÕý¹æµÄ£¬Ã»ÓÐICPµçÐÅÔöÖµÒµÎñÐí¿ÉÖ¤µÄ¹«Ë¾ÊDz»¹ýÓ²µÄ¡£
3¡¢Éý»ªÈÏΪҪ×öµ½µÄËĵ㣺1¡¢¿Õ¼äÎȶ¨ 2¡¢ÊÛºó·þÎñ 3¡¢¿Õ¼äËÙ¶È 4¡¢¿Õ¼ä°²È« ÕâËĵãÊÇÒÔÎÒÃǵľÑé¶øÅÅÁгöµÄÇáÖØ»º¼±Ë³Ðò¡£
-----------------------------------------------------------------------------------
¶þ£º½ÓÊÜÔÞÖúÒªÇó:
1¡¢ÓÐ×Ô¼ºµÄÓòÃûºÍÍøÕ¾£¬ÇÒÓòÃûÒÑͨ¹ý±¸°¸£¡
2¡¢ÍøÕ¾µ×²¿ÐèÌí¼Ó“Éý»ªÐéÄâÖ÷»úÓÑÇéÌṩ”²¢Á¬½ÓÖÁ±¾Õ¾
3¡¢²»Î¥·´µØ·½»ò¹ú¼Ò·¨ÂÉ·¨¹æ¡£
4¡¢ÓÅÐãÕ¾¿É¼Ó´ó¿Õ¼ä´óС¡¢IIS²¢·¢Êý¡¢ÓòÃû°óÊý¡£
¹¤×÷ʱ¼ä: 10:00--22:00
QQ¢Ù:464667978 QQ¢Ú£º464669267 µç»°£º0391-6113388(¹¤×÷ʱ¼ä) 6506898(Ï°àʱ¼ä)
http://Www.ShengHua.Biz
-----------------------------------------------------------------------------------
Èý£ºÉý»ªÃâ·Ñ ......
Éý»ªÌṩÖÕÉíÃâ·ÑASP+access PHP+mysqlÐéÄâÖ÷»ú
Ò»£ºÉý»ªÍøÂç¿Æ¼¼ÓÐÏÞ¹«Ë¾,ÓëÉý»ªÍ¬ÔÚÕ¾³¤ÖÕÉíÃâ·Ñ¿Õ¼ä·ö³Ö¼Æ»®.
1¡¢×ð¾´µÄÓû§ÄúºÃ,Ò²ÐíÄú»¹ÔÚΪÿÄêÒ»½»µÄ¿Õ¼ä·ÑÓ÷¢³î,Ò²ÐíÄúÏë»ñµÃÒ»¸ö¸üÓÅÖʵĿռäÈ´²»ÏëͶÈëÌ«¶à,´ÓÏÖÔÚÆð ÕâЩÎÊÌ⽫ÓÈжø½â→Éý»ªÍøÂç←ÓëÉý»ªÍ¬ÔÚÕ¾³¤·ö³Ö¼Æ»®È«ÃæÆô¶¯¡£
2¡¢Ã»ÓÐ×¢²á¹«Ë¾µÄ·þÎñÉ̲»ÊÇÕý¹æµÄ£¬Ã»ÓÐICPµçÐÅÔöÖµÒµÎñÐí¿ÉÖ¤µÄ¹«Ë¾ÊDz»¹ýÓ²µÄ¡£
3¡¢Éý»ªÈÏΪҪ×öµ½µÄËĵ㣺1¡¢¿Õ¼äÎȶ¨ 2¡¢ÊÛºó·þÎñ 3¡¢¿Õ¼äËÙ¶È 4¡¢¿Õ¼ä°²È« ÕâËĵãÊÇÒÔÎÒÃǵľÑé¶øÅÅÁгöµÄÇáÖØ»º¼±Ë³Ðò¡£
-----------------------------------------------------------------------------------
¶þ£º½ÓÊÜÔÞÖúÒªÇó:
1¡¢ÓÐ×Ô¼ºµÄÓòÃûºÍÍøÕ¾£¬ÇÒÓòÃûÒÑͨ¹ý±¸°¸£¡
2¡¢ÍøÕ¾µ×²¿ÐèÌí¼Ó“Éý»ªÐéÄâÖ÷»úÓÑÇéÌṩ”²¢Á¬½ÓÖÁ±¾Õ¾
3¡¢²»Î¥·´µØ·½»ò¹ú¼Ò·¨ÂÉ·¨¹æ¡£
4¡¢ÓÅÐãÕ¾¿É¼Ó´ó¿Õ¼ä´óС¡¢IIS²¢·¢Êý¡¢ÓòÃû°óÊý¡£
¹¤×÷ʱ¼ä: 10:00--22:00
QQ¢Ù:464667978 QQ¢Ú£º464669267 µç»°£º0391-6113388(¹¤×÷ʱ¼ä) 6506898(Ï°àʱ¼ä)
http://Www.ShengHua.Biz
-----------------------------------------------------------------------------------
Èý£ºÉý»ªÃâ·Ñ ......
Éý»ªÌṩÖÕÉíÃâ·ÑASP+access PHP+mysqlÐéÄâÖ÷»ú
Ò»£ºÉý»ªÍøÂç¿Æ¼¼ÓÐÏÞ¹«Ë¾,ÓëÉý»ªÍ¬ÔÚÕ¾³¤ÖÕÉíÃâ·Ñ¿Õ¼ä·ö³Ö¼Æ»®.
1¡¢×ð¾´µÄÓû§ÄúºÃ,Ò²ÐíÄú»¹ÔÚΪÿÄêÒ»½»µÄ¿Õ¼ä·ÑÓ÷¢³î,Ò²ÐíÄúÏë»ñµÃÒ»¸ö¸üÓÅÖʵĿռäÈ´²»ÏëͶÈëÌ«¶à,´ÓÏÖÔÚÆð ÕâЩÎÊÌ⽫ÓÈжø½â→Éý»ªÍøÂç←ÓëÉý»ªÍ¬ÔÚÕ¾³¤·ö³Ö¼Æ»®È«ÃæÆô¶¯¡£
2¡¢Ã»ÓÐ×¢²á¹«Ë¾µÄ·þÎñÉ̲»ÊÇÕý¹æµÄ£¬Ã»ÓÐICPµçÐÅÔöÖµÒµÎñÐí¿ÉÖ¤µÄ¹«Ë¾ÊDz»¹ýÓ²µÄ¡£
3¡¢Éý»ªÈÏΪҪ×öµ½µÄËĵ㣺1¡¢¿Õ¼äÎȶ¨ 2¡¢ÊÛºó·þÎñ 3¡¢¿Õ¼äËÙ¶È 4¡¢¿Õ¼ä°²È« ÕâËĵãÊÇÒÔÎÒÃǵľÑé¶øÅÅÁгöµÄÇáÖØ»º¼±Ë³Ðò¡£
-----------------------------------------------------------------------------------
¶þ£º½ÓÊÜÔÞÖúÒªÇó:
1¡¢ÓÐ×Ô¼ºµÄÓòÃûºÍÍøÕ¾£¬ÇÒÓòÃûÒÑͨ¹ý±¸°¸£¡
2¡¢ÍøÕ¾µ×²¿ÐèÌí¼Ó“Éý»ªÐéÄâÖ÷»úÓÑÇéÌṩ”²¢Á¬½ÓÖÁ±¾Õ¾
3¡¢²»Î¥·´µØ·½»ò¹ú¼Ò·¨ÂÉ·¨¹æ¡£
4¡¢ÓÅÐãÕ¾¿É¼Ó´ó¿Õ¼ä´óС¡¢IIS²¢·¢Êý¡¢ÓòÃû°óÊý¡£
¹¤×÷ʱ¼ä: 10:00--22:00
QQ¢Ù:464667978 QQ¢Ú£º464669267 µç»°£º0391-6113388(¹¤×÷ʱ¼ä) 6506898(Ï°àʱ¼ä)
http://Www.ShengHua.Biz
-----------------------------------------------------------------------------------
Èý£ºÉý»ªÃâ·Ñ ......