Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

´´½¨SQL SERVER 2005ÐÂÕË»§

 Ô­ÎÄ£ºhttp://hi.baidu.com/scoful/blog/item/963339d793cfe92506088b11.html
ÈçºÎ´´½¨ SQL Server 2005 ÐÂÕË»§£¿
Ê×ÏÈÒªÉèÖÃSQL Server 2005µÄ·ÃÎÊ·½Ê½
1´ò¿ªSQL Server Management Studio
2·þÎñÆ÷Ãû³ÆÉÏÓÒ¼üÑ¡Ôñ“ÊôÐÔ”£¬´ò¿ª“·þÎñÆ÷ÊôÐÔ”¶Ô»°¿ò£¬ÔÚ“Ñ¡ÔñÒ³”ÀïÑ¡Ôñ“°²È«ÐÔ”£¬ÔÚ“·þÎñÆ÷Éí·ÝÑéÖ¤”ÀïÑ¡Ôñ“SQL ServerºÍWindows Éí·ÝÑé֤ģʽ”£¬µ¥»÷“È·¶¨”£¬Íê³É¡£
È»ºóÌí¼ÓÒ»¸öеĵǽÃûºÍÃÜÂë
1´ò¿ªSQL Server Management Studio
2Ñ¡Ôñ“°²È«ÐÔ→µÇ¼Ãû”£¬ÓÒ»÷“µÇ¼Ãû”£¬Ñ¡Ôñ“н¨µÇ¼Ãû”£¬´ò¿ª“µÇ¼Ãû-н¨”¶Ô»°¿ò£¬ÔÚ“³£¹æ”Ñ¡ÏÖУ¬ÊäÈëµÇ¼Ãû£¬Èç“aaa”,Ñ¡Ôñ“SQL Server Éí·ÝÑéÖ¤”£¬ÊäÈëÃÜÂëºÍÈ·ÈÏÃÜÂ룬ȥµô“Ç¿ÖÆʵʩÃÜÂë²ßÂÔ”¡¢“Ç¿ÖÆÃÜÂë¹ýÆÚ”¡¢“Óû§ÔÚÏ´εǼʱ±ØÐë¸ü¸ÄÃÜÂë”Ç°µÄ¹´£¬Ñ¡ÔñĬÈÏÊý¾Ý¿â£¬Ä¬ÈÏÓïÑÔÑ¡Ôñ“Simplified Chinese”
3Ñ¡Ôñ“·þÎñÆ÷½ÇÉ«”Ñ¡Ï£¬Ñ¡Ôñ“sysadmin”£¬·þÎñÆ÷½ÇÉ«Ãû½âÊÍ¿´SQL Server 2005 ·þÎñÆ÷½ÇÉ«ºÍÊý¾Ý¿â½ÇÉ«ÃûÈ«½â¡£
4Ñ¡Ôñ“Óû§Ó³Éä”Ñ¡Ï£¬Ñ¡ÔñÒªÇóµÄÊý¾Ý¿â£¬¸ù¾Ý¸öÈËÒªÇó¶àÑ¡»òÊǵ¥Ñ¡¡£
5Ñ¡Ôñ“״̬”Ñ¡Ï£¬“ÉèÖÔÀï“ÊÇ·ñÔÊÐíÁ¬½Óµ½Êý¾Ý¿âÒýÇæ”Ñ¡Ôñ“ÊÚÓ蔣¬“µÇ¼”ÀïÑ¡Ôñ“ÆôÓÔ£¬µ¥»÷“È·¶¨”£¬Íê³É¡£
×îºóÍ˳ö·þÎñÆ÷£¬ÓÃн¨µÄµÇ¼Ãû“aaa”µÇ¼·þÎñÆ÷£¬³É¹¦£¡
ÇмǣºÒ»¶¨Òª°ÑSQL Server 2005 ·þÎñÖØÆô²ÅÉúЧ
ÈçºÎ»¹²»ÐеĻ°£¬¾Íµ½“·þÎñÆ÷ºÍÁ¬½ÓµÄÍâΧӦÓÃÅäÖÃÆ÷”ÀïÑ¡ÖГͬʱʹÓÃTCP/IPºÍnamed pipes”


Ïà¹ØÎĵµ£º

ÈçºÎ´Ó PL/SQL ´æ´¢º¯Êý·µ»ØÊý×é

ÈÕÆÚ£º2003 Äê 2 Ô 19 ÈÕ
Íê³É´Ë·½·¨Ö¸ÄϺó£¬ÄúÓ¦¸ÃÄܹ»£º
ÔÚ Oracle Êý¾Ý¿âÖд´½¨ VARRAY
ʹÓà oracle.sql.ARRAY Àà
´Ó Java ·ÃÎÊ VARRAY
¼ò½é
±¾ÎĵµÑÝʾÈçºÎ´Ó PL/SQL º¯Êý·µ»ØÊý×é²¢´Ó java Ó¦ÓóÌÐò·ÃÎÊËü¡£Êý×éÊÇÒ»×éÓÐÐòµÄÊý¾ÝÔªËØ¡£ VARRAY ÊÇ´óС¿É±äµÄÊý×é¡£Ëü¾ßÓÐÊý¾ÝÔªËصÄÅÅÁм¯£¬²¢ÇÒËùÓÐÔªËØÊôÓÚ ......

¶¯Ì¬sqlÓï¾ä»ù±¾Óï·¨

1 :ÆÕͨSQLÓï¾ä¿ÉÒÔÓÃExecÖ´ÐÐ
      Àý:      Select * from tableName
                Exec('select * from tableName')
        & ......

C# Ö´ÐÐSQLÊÂÎñʵÀý´úÂë

 [C#]
public void RunSqlTransaction(string myConnString)
{
    SqlConnection myConnection = new SqlConnection(myConnString);
    myConnection.Open();
    SqlCommand myCommand = myConnection.CreateCommand();
    SqlTransaction m ......

SQLÏÂÈÕÆÚº¯ÊýʹÓÃ

ÕâÁ½Ììдһ¸öºÍͳ¼ÆÊý¾ÝÓйصĴ洢¹ý³Ì£¬ÀïÃæÒªÀûÓÃÈÕÆÚ½øÐÐһЩ¼ÆËãºÍÅжϣ¬Ò²×ÔȻҪÀûÓÃSQLµÄһЩÈÕÆÚÏà¹ØµÄº¯Êý¡£ÕâÀïÂÔ¼Çһϣ¬µ±ÊǸ´Ï°Ò»ÏÂSQL¡£
ÀûÓÃSQL½Å±¾ÄÚÖõļ¸¸öº¯Êý£¬ÎÒÃÇÄÜÁé»îµÄ¶ÔÈÕÆÚ½øÐмÆËãºÍ±È½Ï¡£³£Óõļ¸¸öº¯Êý£ºGETDATE(),DATEDIFF(),DATEADD()
GETDATE() µ±È»¹ËÃû˼Ò壬µÃµ½µ±Ç°µÄÈÕÆÚ£¬·µ»ØÀàÐÍÊ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ