SQL SERVERÊÂÎñ¸´ÖÆ££¹¤×÷ÔÀí²âÊÔ
ÈÕÖ¾¶ÁÈ¡Æ÷Ö»½«ÒѾCOMMITµÄÊÂÎñ´«Ë͵½·Ö·¢Êý¾Ý¿â¡£
²âÊÔ·½·¨£º
1. ÔÚ·¢²¼Êý¾Ý¿âÖ´ÐУº
begin tran
insert testTable2 (aaa,bbb,ddd,ccc)
values ('jawefwao','jfowijef','jaiwejfo','civjoiw')
insert testTable2 (aaa,bbb,ddd,ccc)
values ('jawefwao2','jfowijef2','jaiwejfo2','civjoiw2')
insert testTable2 (aaa,bbb,ddd,ccc)
values ('jawefwao3','jfowijef3','jaiwejfo3','civjoiw3')
insert testTable2 (aaa,bbb,ddd,ccc)
values ('jawefwao4','jfowijef4','jaiwejfo4','civjoiw4')
2. ÔÚ·¢²¼Êý¾Ý¿âÖ´ÐУº
sp_browsereplcmdsºóûÓз¢ÏÖеÄÃüÁî´ÓÈÕÖ¾¶ÁÈ¡Æ÷´«Ë͹ýÀ´¡£
3. ÔÚ·¢²¼Êý¾Ý¿âÖ´ÐУº
COMMIT
4. ÔÚ·¢²¼Êý¾Ý¿âÖ´ÐУº
sp_browsereplcmdsºó·¢ÏÖеÄÃüÁî´ÓÈÕÖ¾¶ÁÈ¡Æ÷´«Ë͹ýÀ´¡£
Ïà¹ØÎĵµ£º
ÔÚSQL SERVER2000ÆóÒµ¹ÜÀíÆ÷Ï£¬SQL Server×éÀïÒѾ¼ÓÈçÁË Ð½¨SQL Server ×¢²á
±ÈÈ磺ÔÚ¿ÉÓõķþÎñÆ÷(V)Îı¾¿òÖÐÊäÈëÁË:192.138.2.66È»ºóµã»÷ Ìí¼Óµ½·þÎñÆ÷£¬µ±×¢²á³É¹¦ºó
£¬µ±È»192.138.2.66ÀïÃæÓÐ Ò»¸öÃûΪ kangarooµÄÊý¾Ý¿â£¬ ÎÒÏÖÔÚµÄÎÊÌâÊÇ£º
Ôõô°Ñ ......
¡¡¡¡Ëæ»ú¶ÁÈ¡Èô¸ÉÌõ¼Ç¼£¬²âÊÔ¹ý
AccessÓï·¨£ºSELECT top 10 * from ±íÃû ORDER BY Rnd(id)
Sql server:select top n * from ±íÃû order by newid()
mysql select * from ±íÃû Order By rand() Limit n
¡¡¡¡ËµÃ÷£ºÑ¡Ôñ´Ó10µ½15µÄ¼Ç¼
select top 5 * from (select top 15 * from table order by id asc) table_±ðÃû or ......
·½·¨1£º
Ò»¡¢ÕÒÒ»ÕÅSQL server·þÎñÆ÷°æ¹âÅÌ£¬ÔÚ¹âÅÌÉÏÕÒµ½Ä¿Â¼“MSDE”²¢½øÈ룬ÔËÐÐSETUP.EXEÎļþ£¬²¢°´ÕÕ³ÌÐòÒªÇó½øÐа²×°¡£°²×°Íê³ÉÖØÐÂÆô¶¯¼ÆËã»ú¡£
¶þ¡¢ÔËÐйâÅÌÖеģ¬AUTORUN.EXEÎļþ£¬»òÈùâÅÌ×Ô¶¯ÔËÐУ¬´ò¿ª°²×°½çÃæºó£¬
µã»÷“°²×°SQL server 2000×é¼þ£¨C£©”-->“°²×°Êý¾Ý¿â·þÎñÆ ......
Ìá¸ßÊý¾Ý¿âSQLÓï¾ä²éѯËٶȵļ¸¸ö·½·¨
1¡¢³ÌÐòÖУ¬
±£Ö¤ÔÚʵÏÖ¹¦ÄܵĻù´¡ÉÏ£¬¾¡Á¿¼õÉÙ¶ÔÊý¾Ý¿âµÄ·ÃÎÊ´ÎÊý£»
ͨ¹ýËÑË÷²ÎÊý£¬¾¡Á¿¼õÉÙ¶Ô±íµÄ·ÃÎÊÐÐÊý,×îС»¯½á¹û¼¯£¬´Ó¶ø¼õÇáÍøÂ縺µ££»
Äܹ»·Ö¿ªµÄ²Ù×÷¾¡Á¿·Ö¿ª´¦Àí£¬Ìá¸ßÿ´ÎµÄÏìÓ¦Ëٶȣ»
ÔÚÊý¾Ý´°¿ÚʹÓÃSQLʱ£¬¾¡Á¿°ÑʹÓõÄË÷Òý·ÅÔÚÑ¡ÔñµÄÊ×ÁУ»
Ëã·¨µÄ½á¹¹¾¡Á¿¼òµ¥ ......
ÔÚʹÓÃsqlserver2005´´½¨×÷ҵʱ£¬´´½¨²»ÁË£¬Ìáʾ
ÎÞ·¨½«ÀàÐÍΪ“Microsoft.SqlServer.Management.Smo.SimpleObjectKey”µÄ¶ÔÏóÇ¿ÖÆת»»ÎªÀàÐÍ“Microsoft.SqlServer.Management.Smo.Agent.JobObjectKey”¡£ (Microsoft.SqlServer.Smo)
ÓÚÊǾÍgoogle£¬°Ù¶ÈÁËһϣ¬ºÃ¶àÎÄÕºÍÌù×Ó˵ÐèÒª° ......