ÔÚÒø¹âÖйúÍø£¨SilverlightChina.Net£©ÓÐһƪ"SilverlightÓë³£ÓÃÊý¾Ý¿â»¥²Ù×÷ϵÁÐ"ÎÄÕ£¬ÆäÖнéÉÜÁËʹÓÃSilverlight´æÈ¡²»Í¬Êý¾Ý¿âµÄ·½·¨ºÍ²½Öè¡£µ«ÊǶÔÓÚSilverlight´æÈ¡MS SQL½éÉܵIJ»¹»È«Ã棬ÕâÀïÎÒÏë½éÉÜSilverlightÈçºÎͨ¹ýWCF·ÃÎÊMSSQLÊý¾Ý¿â´æ´¢¹ý³ÌµÄ¡£Ï£Íû¶Ô´ó¼ÒÄܹ»ÓÐËù°ïÖú¡£
ÎÒÃÇҪʵÏÖ£¬ Óû§ÊäÈëÓû§ÃûºÍÃÜÂëºó£¬µã»÷µÇ¼°´Å¥£¬´«µÝÓû§ÃûºÍÃÜÂëµ½·þÎñÆ÷¶Ë, ͨ¹ýWCF·ÃÎÊMSSQLÊý¾Ý¿â£¬µ÷Óô洢¹ý³Ì£¬ÔÚ·þÎñÆ÷¶Ë¶ÔÓû§ÃûºÍÃÜÂë½øÐÐÆ¥Å䣬ƥÅä³É¹¦£¬Ôò·µ»ØµÇ¼³É¹¦£¬·ñÔò£¬ÔòÊÇʧ°Ü¡£
ÔÚÎÄÕ¿ªÊ¼Ç°£¬ÎÒÃÇÐèÒª×öÒ»ÏÂ×¼±¸¹¤×÷£¬
¿ª·¢»·¾³ÐèÇó£º VS2008 SP1£¬ Silverlight 3 Develop Tools for VS2008 SP1£¬ ¿Í»§¶ËSilverlight 3 Runtime£¬ MSSQL 2005 SP3 £»
½¨Á¢Àý³ÌÊý¾Ý¿â SilverlightDemo£¬ÔÚÊý¾Ý¿âÖн¨Á¢Ò»¸öбí Users£¬°üº¬ÒÔÏÂ×ֶΣ»
Ìí¼ÓÄÚÈݵ½Users±í£¬ÎªÁË·½±ãÆð¼û£¬ÃÜÂëÈ«²¿Ê¹ÓÃÃ÷ÎÄ£¬ÔÚÕýʽÏîÄ¿ÖУ¬½¨Òé¶ÔÃÜÂë×ֶνøÐмÓÃÜʹÓá£
ÕâÀÎÒÃÇÑéÖ¤Óû§ÃûºÍÃÜÂ룬ÓÐÁ½ÖÖ¼òµ¥·½Ê½£¬
Ò»ÊÇʹÓô洢¹ý³Ì¶ÁÈ¡Óû§ÃûºÍÃÜÂ룬ȻºóÔÚ·þÎñÆ÷¶Ë½øÐÐÓû§ÃûºÍÃÜÂëÆ¥ÅäУÑ飬Èç¹û²éÕÒµ½Æ¥ÅäÊý¾Ý£¬Ôò·µ»ØµÇ¼³É¹¦£¬·ñÔò£¬ÔòÊǵǼʧ°Ü£»
¶þÊÇ´«ÓÃ ......
JspÁ¬½ÓMSSQL2000µÄÁ½ÖÖ·½·¨
×î½üÔÚѧϰJSPWeb£¨Tomcat·þÎñÆ÷£©Ó¦Óÿª·¢ºÍ»ùÓÚWeblogicºÍMyelcipseµÄJEE5µÄ¿ª·¢£¬ÔÚѧϰ¹ý³ÌÖÐÉæ¼°µ½Á¬½ÓSQL 2000 Êý¾Ý¿âʱ£¬ÓÉÓÚÈí¼þ»·¾³µÄ²îÒìÐÔºÍһЩ°æ±¾ÎÊÌ⣬»¨Á˺ô󹦷ò²ÅÁ¬ÉÏ£¬ËùÒÔÔÚ´Ë×÷¸ö×ܽᣬϣÍûÄܸø´ó¼ÒһЩ°ïÖú£¬²»ÒªÔÚ»ù±¾µÄ¶«Î÷ÉÏ»¨·ÑÌ«¶àµÄʱ¼ä¡£
·½·¨Ò»£ºÀûÓÃSQL Server 2000 For JDBC Çý¶¯³ÌÐòÁ¬½Ó
ÐèÒªÌõ¼þ£º£¨1£©ÏÂÔØ°²×°SQL Server 2000 For JDBCÇý¶¯³ÌÐò
£¨2£©ÅäÖû·¾³±äÁ¿
£¨3£©Èç¹ûͨ¹ýÇ°Á½²½Á¬²»Éϳ¢ÊÔһϸøSQL Server 2000´ò¸ö²¹¶¡
£¨SQL2000-KB884525-SP4-x86-CHS.EXE£©
¾ßÌå²½Ö裺
£¨1£©´Ó΢ÈíÍøÕ¾http://download.microsoft.comÉÏÏÂÔØÇý¶¯³ÌÐò£ºSQL Server 2000 For JDBC
ÈôÕÒ²»µ½ÔÙÌṩһ¸öÍøÖ·£º
http://download.microsoft.com/download/3/0/f/30ff65d3-a84b-4b8a-a570-27366b2271d8/setup.exe
Jdbc_setup.exe ĬÈϵݲװ·¾¶ÎªC:\Program Files\Microsoft SQL Server 2000 Driver for JDBC£¬°²×°Ä¿Â¼\lib\ϵÄÈý¸öjar ÎļþÊÇJDBC Ö§³ÖSQL Server Êý¾Ý¿âµÄÇý¶¯ºËÐÄ¡ ......
JspÁ¬½ÓMSSQL2000µÄÁ½ÖÖ·½·¨
×î½üÔÚѧϰJSPWeb£¨Tomcat·þÎñÆ÷£©Ó¦Óÿª·¢ºÍ»ùÓÚWeblogicºÍMyelcipseµÄJEE5µÄ¿ª·¢£¬ÔÚѧϰ¹ý³ÌÖÐÉæ¼°µ½Á¬½ÓSQL 2000 Êý¾Ý¿âʱ£¬ÓÉÓÚÈí¼þ»·¾³µÄ²îÒìÐÔºÍһЩ°æ±¾ÎÊÌ⣬»¨Á˺ô󹦷ò²ÅÁ¬ÉÏ£¬ËùÒÔÔÚ´Ë×÷¸ö×ܽᣬϣÍûÄܸø´ó¼ÒһЩ°ïÖú£¬²»ÒªÔÚ»ù±¾µÄ¶«Î÷ÉÏ»¨·ÑÌ«¶àµÄʱ¼ä¡£
·½·¨Ò»£ºÀûÓÃSQL Server 2000 For JDBC Çý¶¯³ÌÐòÁ¬½Ó
ÐèÒªÌõ¼þ£º£¨1£©ÏÂÔØ°²×°SQL Server 2000 For JDBCÇý¶¯³ÌÐò
£¨2£©ÅäÖû·¾³±äÁ¿
£¨3£©Èç¹ûͨ¹ýÇ°Á½²½Á¬²»Éϳ¢ÊÔһϸøSQL Server 2000´ò¸ö²¹¶¡
£¨SQL2000-KB884525-SP4-x86-CHS.EXE£©
¾ßÌå²½Ö裺
£¨1£©´Ó΢ÈíÍøÕ¾http://download.microsoft.comÉÏÏÂÔØÇý¶¯³ÌÐò£ºSQL Server 2000 For JDBC
ÈôÕÒ²»µ½ÔÙÌṩһ¸öÍøÖ·£º
http://download.microsoft.com/download/3/0/f/30ff65d3-a84b-4b8a-a570-27366b2271d8/setup.exe
Jdbc_setup.exe ĬÈϵݲװ·¾¶ÎªC:\Program Files\Microsoft SQL Server 2000 Driver for JDBC£¬°²×°Ä¿Â¼\lib\ϵÄÈý¸öjar ÎļþÊÇJDBC Ö§³ÖSQL Server Êý¾Ý¿âµÄÇý¶¯ºËÐÄ¡ ......
´æ´¢¹ý³ÌPagination£º
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo].[Pagination]
@tblName varchar(255), -- ±íÃû
@PKName varchar(255), -- ×Ö¶ÎÃû
@strGotFields varchar(1000) = '*' , --²éѯ×Ö¶ÎÃû
@PageSize int = 10, -- Ò³³ß´ç
@PageIndex int = 1, -- Ò³Âë
@OrderType bit = 0, -- ÉèÖÃÅÅÐòÀàÐÍ, ·Ç 0 ÖµÔò½µÐò
@strSort varchar(255) = '', --ÅÅÐò×Ö¶Î
@strWhere varchar(2000) = '', -- ²éѯÌõ¼þ (×¢Òâ: ²»Òª¼Ó where)
@isCount bit = 1 --È¡µÃ¼Ç¼ÌõÊý
AS
DECLARE @strSQL varchar(6000) -- Ö÷Óï¾ä
DECLARE @strTmp varchar(1000) -- ÁÙʱ±äÁ¿
DECLARE @strOrder varchar(500) -- ÅÅÐòÀàÐÍ
DECLARE @strCount varchar(1000)
DECLARE @fldName varchar(255)
DECLARE @sortName varchar(255)
DECLARE @countSQL varchar(1000)
SET @fldName = @PKName
IF @strSort != ''
BEGIN
SET @sortName = @strSort
END
ELSE
BEGIN
SET @sortName = @PKName
END
IF @isCount = 1
BEGIN
IF @strWhere != ''
BEGIN
SET @countSQL = 'select count(' + @fldName + ') from ' + @tblName + ' whe ......
ÈçºÎÇå³ýMSSQLÊÂÎñÈÕÖ¾Îļþ
ÈýÖÖ·½·¨£º
1¡¢É¾³ýLOG
1)£º·ÖÀëÊý¾Ý¿âÆóÒµ¹ÜÀíÆ÷££¾·þÎñÆ÷££¾Êý¾Ý¿â££¾ÓÒ¼ü££¾·ÖÀëÊý¾Ý¿â
2)£ºÉ¾³ýLOGÎļþ
3)£º¸½¼ÓÊý¾Ý¿âÆóÒµ¹ÜÀíÆ÷££¾·þÎñÆ÷££¾Êý¾Ý¿â££¾ÓÒ¼ü££¾¸½¼ÓÊý¾Ý¿â
´Ë·¨Éú³ÉеÄLOG£¬´óСֻÓÐ500¶àK
ÔÙ½«´ËÊý¾Ý¿âÉèÖÃ×Ô¶¯ÊÕËõ
2¡¢Çå¿ÕÈÕÖ¾
DUMP TRANSACTION ¿âÃû WITH NO_LOG
ÔÙ£ºÆóÒµ¹ÜÀíÆ÷ -- ÓÒ¼üÄãҪѹËõµÄÊý¾Ý¿â -- ËùÓÐÈÎÎñ -- ÊÕËõÊý¾Ý¿â -- ÊÕËõÎļþ -- Ñ¡ÔñÈÕÖ¾Îļþ -- ÔÚÊÕËõ·½Ê½ÀïÑ¡ÔñÊÕËõÖÁXXM,ÕâÀï»á¸ø³öÒ»¸öÔÊÐíÊÕËõµ½µÄ×îСMÊý,Ö±½ÓÊäÈëÕâ¸öÊý,È·¶¨¾Í¿ÉÒÔÁË
3¡¢Èç¹ûÏëÒ ......
×î½ü£¬¹¤×÷µÄÉÏÐèÒª´¦ÀíÒ»ÏÂÏîÄ¿Öеļ«ÉÙÁ¿Êý¾ÝµÄÖظ´ÎÊÌâ¡£¾¹ý·ÖÎö£¬½á¹û·¢ÏÖÊdzÌÐò²¢·¢Ã»Óд¦ÀíºÃ¶øµ¼Öµġ£¾¹ýÒ»·¬ÃþË÷£¬¶ÔÊý¾Ý¿âÖеÄËø¼°³ÌÐòµÄ²¢·¢ÓÐÁËÒ»µãµãСµÄÐĵá£ÌØдµ½´ËÀ´Óë´ó¼Ò·ÖÏíһϡ£
Ê×ÏÈ£¬ÎÒÃÇÀ´Á˽âÒ»ÏÂʲô½Ð×öËø¡£
ÎÒÃÇÔÙÀ´¿´¿´ËøµÄ·ÖÀà¡¢×÷Óü°Óë³ÌÐò²¢·¢ÐԵĹØϵ¡£
Á˽âÁËÕâô¶à¡£×îÖØÒªµÄµ±È»¾ÍÊÇÈçºÎʹÓÃËøÀ²¡£ÏÂÃæÎÒÃÇÒ»ÆðÀ´Á˽âÒ»ÏÂÈçºÎʹÓÃËø°É¡£ ......
×î½ü£¬¹¤×÷µÄÉÏÐèÒª´¦ÀíÒ»ÏÂÏîÄ¿Öеļ«ÉÙÁ¿Êý¾ÝµÄÖظ´ÎÊÌâ¡£¾¹ý·ÖÎö£¬½á¹û·¢ÏÖÊdzÌÐò²¢·¢Ã»Óд¦ÀíºÃ¶øµ¼Öµġ£¾¹ýÒ»·¬ÃþË÷£¬¶ÔÊý¾Ý¿âÖеÄËø¼°³ÌÐòµÄ²¢·¢ÓÐÁËÒ»µãµãСµÄÐĵá£ÌØдµ½´ËÀ´Óë´ó¼Ò·ÖÏíһϡ£
Ê×ÏÈ£¬ÎÒÃÇÀ´Á˽âÒ»ÏÂʲô½Ð×öËø¡£
ÎÒÃÇÔÙÀ´¿´¿´ËøµÄ·ÖÀà¡¢×÷Óü°Óë³ÌÐò²¢·¢ÐԵĹØϵ¡£
Á˽âÁËÕâô¶à¡£×îÖØÒªµÄµ±È»¾ÍÊÇÈçºÎʹÓÃËøÀ²¡£ÏÂÃæÎÒÃÇÒ»ÆðÀ´Á˽âÒ»ÏÂÈçºÎʹÓÃËø°É¡£ ......
ÔÚ´¦ÀíϵͳÓÅ»¯µÄʱºò£¬·¢ÏÖindexʹÓò»µ±µÄ»°£¬ÏµÍ³µÄÐÔÄܲ»Äܺܺ÷¢»Ó¡£
È磺½ñÌìµÄ·¢ÏÖµÄÒ»¸ösqlÓï¾ä£¬¾¹ý·ÖÎö£¬Ê¹ÓÃÁË2¸öindex¡£µ«ÊÇ2¸öindex·µ»ØµÄ¼Ç¼ÔÚ»¥ÏàÆ¥Åä¹ý³ÌÖкÄʱ×î¶à¡£ËùÒÔ£¬¼´Ê¹SQLÓï¾äʹÓÃindex£¬Ò²²»´ú±íÕâ¸öÓï¾äÔÚÐÔÄÜÉÏÊǺܺõġ£ ......