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

SQL Server ÒÆÖ²µ½Oralce ÏîĿʵս

ÏîÄ¿±³¾°
         ÒÆÖ²Ò»¸öÏÖÓÐϵͳµ½Oracle¡£Ô­ÏµÍ³»ùÓÚ.Net Framework 1.1, SQL Server 2000Êý¾Ý¿â£¬Êý¾Ý²Ù×÷»ù±¾È«²¿Ê¹ÓÃStore Procedure£¬×ÜÊýÓâǧ£¬Òò´Ë×ÜÌåÉæ¼°µÄPL SQL ¿ª·¢Á¿±È½Ï´ó¡£
 
         ÓÅÏȼ¶¸ß£¬¿ª·¢Ê±³Ì¶Ì£¬²ÎÓëÈËÔ±¶à£¬ÊÇÕâ¸öÏîÄ¿µÄÏÔÖøÌص㡣±¾ÈË×÷ΪÏîÄ¿¸ºÔðÈË£¬Ö÷Òª°´ÕÕÏÂÁв½Öè½øÐУ¬×îÖÕÔ²Âú´ï³ÉÄ¿±ê¡£
 
µÚÒ»²½    ÆÀ¹À
1.       È·ÈÏÐèÒªÒÆÖ²µÄ¹¦ÄÜÁбí
2.       ÆÀ¹ÀÖ÷Òª¹¤×÷Á¿
¹¤×÷ÖصãÔÚÓÚÒÆÖ²SQL Server SPµ½ Oracle Package£¬Ô¤¹ÀÒÆÖ²Ò»¸öSPËùÐèƽ¾ùʱ¼äµÈ
 
µÚ¶þ²½    Ç°ÆÚ×¼±¸
1.       È·¶¨Ä¿±êOracleÊý¾Ý¿âµÄ°æ±¾(Oracle10.1.0.5.0)ºÍ±àÂë(ACTUTF8)
Êý¾Ý¿âµÄ±àÂëÈ·¶¨·Ç³£ÖØÒª£¬ÓÉÓÚԭϵͳ֧³Ö¶àÓïÑÔ´æ´¢£¬ËùÒÔOracleÎÒÃÇÑ¡ÔñÁËACTUTF8¡£ÕâÖÖ±àÂë¶ÔÓ¦µÄSQL Server ÖУ¬1¸ö×Ö·ûÕ¼3¸ö×Ö½Ú¡£
2.       Oracle Êý¾Ý¿âÉè¼Æ(×ÉѯOracle DBA)
3.       ÆÀ¹À¼¼ÊõÄѵ㣬ÕÒ½â¾ö·½°¸
1)       IdentityÀ¸Î»ÊµÏÖ
ʹÓÃTrigger
2)       ÁÙʱ±íʵÏÖ
ʹÓÃOracleµÄÁÙʱ±í(8iºóÒÑÌṩ)
3)       .Net OracleÇý¶¯³ÌÐò
²ÉÓÃODP.NET
4.       È·¶¨SQL Server -> Oracle ±í / À¸Î»Ó³Éä¹Øϵ£¬ÐγÉSQL Server/Oracle ±í¶ÔÕÕÎĵµ
1)       Ò»°ãÔ­Ôò£¬Ô­¶ÔÏóµÄÃû³Æ²»×ö¸Ä±ä£»
2)       À¸Î»ÀàÐÍ£¬×Ö·ûÀàÐÍ -> VARCHAR2,  Êý×ÖÀàÐÍ -> NUMBER(m, n)£»
3)       À¸Î»³¤¶È£¬×î´ó³¤¶È *3£¬ ±£´æ¹Ì¶¨³¤¶ÈIDµÄÀ¸Î»³¤¶È²»×ö±ä¸ü£»
4)       ÔÚOracle Öн¨Á¢¶ÔÓ¦±í£¬Í¨¹ýSQL Server DTSµ¼Èë»ù´¡Êý¾Ý
5.       SPʹÓÃPackage×éÖ¯£¬²¢ÖØÐÂÃüÃû£¬ÐγÉSQL Server/Oracle SP¶ÔÕÕÎĵµ¡£
ÒòΪOracle ¶ÔÏóÃû³Æ³¤¶È²»Äܳ¬¹ý30£¬SQL Server µÄSP³¤¶ÈÆձ鳬¹ý30£¬Òò´ËÐèÒªÖØÐÂÃüÃû²¢·Ö×é¡£
6.     &nb


Ïà¹ØÎĵµ£º

SQL SERVER ÖÐdatetime ºÍ smalldatetimeÀàÐÍ


<!--
/* Font Definitions */
@font-face
{font-family:ËÎÌå;
panose-1:2 1 6 0 3 1 1 1 1 1;
mso-font-alt:SimSun;
mso-font-charset:134;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:3 135135232 16 0 262145 0;}
@font-face
{font-family:"\@ËÎÌå" ......

Microsoft SQL Server ¹ÜÀí £¨³£ÓùÜÀí¼°Î¬»¤ÃüÁ


--²éѯµ±Ç°Á¬½ÓµÄʵÀýÃû
select @@servername
--²ì¿´ÈκÎÊý¾Ý¿âÊôÐÔ
sp_helpdb master
--ÉèÖõ¥Óû§Ä£Ê½£¬Í¬Ê±Á¢¼´¶Ï¿ªËùÓÐÓû§
alter database Northwind set single_user with rollback immediate
--»Ö¸´Õý³£
alter database Northwind set multi_user
--²ì¿´Êý¾Ý¿âÊôÐÔ
sp_helpdb
--²ì¿´Êý¾Ý¿â»Ö¸´Ä£Ê½
sel ......

ÈçºÎɾ³ý SQL Server ±íÖеÄÖظ´ÐÐ

    Microsoft SQL Server ±í²»Ó¦¸Ã°üº¬Öظ´ÐкͷÇΨһÖ÷¼ü¡£Îª¼ò½àÆð¼û£¬ÔÚ±¾ÎÄÖÐÎÒÃÇÓÐʱ³ÆÖ÷¼üΪ“¼ü”»ò“PK”£¬µ«ÕâʼÖÕ±íʾ“Ö÷¼ü”¡£Öظ´µÄ PK Î¥·´ÁËʵÌåÍêÕûÐÔ£¬ÔÚ¹ØϵϵͳÖÐÊDz»ÔÊÐíµÄ¡£SQL Server Óи÷ÖÖÇ¿ÖÆÖ´ÐÐʵÌåÍêÕûÐԵĻúÖÆ£¬°üÀ¨Ë÷Òý¡¢Î¨Ò»Ô¼Êø¡¢Ö÷¼üÔ¼Êøº ......

SQL·Ö×éÅÅÐò

 
½ñÌìÓöµ½¸öÓÐÒâ˼µÄÎÊÌ⣬ÊÇÒ»¸ö·Ö×éÅÅÐòµÄÎÊÌ⣬²»¹ýÒªÇó·Ö×éºÍ·Ö×é¼äÒ²ÒªÅÅÐò£¬Èç¹ûÕâ¸ö×éÄÚÓÐÒ»ÌõÊý¾ÝÊÇ×î½ü¸üеģ¬ÄÇôÕâÕû¸ö×鶼Ӧ¸ÃÅÅÔÚÇ°Ãæ¡£
ÏÂÃæÒÔOracleµÄHRʾÀýSchemaÖеÄemployees±íΪÀý£º
Óï¾ä°´²¿ÃÅ·Ö×飬·Ö×éÖ®¼äµÄÅÅÐòÊÇÕâÑùµÄ£ºÈç¹ûÕû¸ö·Ö×éÖÐÓÐÒ»¸öÔ±¹¤µÄhire_dateÊÇ×îеģ¬ÄÇôÕâ¸ö·Ö×é¾ÍÓ¦ ......

ÓÃADO¹ÜÀíSQL SERVER £¡

      ÔÚÈí¼þ¿ª·¢ÖУ¬³£³£ÐèҪΪ³ÌÐò½¨Á¢Sql ServerÊý¾Ý¿âµÄÔËÐл·¾³¡£Íê³ÉÈçÔÚSQL ServerÊý¾Ý¿âÖн¨Á¢É豸£¬½¨Á¢Êý¾Ý¿â£¬½¨Á¢±í¸ñ£¬·ÖÅäȨÏ޵ȹ¦ÄÜ£¬ÈçºÎ·½±ãµÄ½¨Á¢Ó¦ÓóÌÐòËùÐèSql Server»·¾³µÄÊý¾Ý¿â»·¾³£¬¶ø²»ÓÃÆô¶¯SQL Enterprise ManagerÄØ£¿
ÏÂÃæÀ´¿´£º 
¡¡¡¡Æô¶¯VB6.0£¬Ð½¨Ò»¸ö¹¤ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ