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

SqlServer µÄ´íÎó

  ÎÒµÄÊý¾Ý¿âͻȻ±¨Ò»¸öºÜÓôÃƵĴíÎ󣬵¼ÖÂÊý¾ÝÎÞ·¨²é¿´£¬
    ´íÎóÌáʾΪ£º
                  ÔÚÎļþ 'G:\data\ÆóÒµ¹ÜÀíÊý¾Ý¿â1_data.ndf' ÖС¢Æ«ÒÆÁ¿Îª 0x00000000020000 µÄλÖÃÖ´ÐÐ ¶ÁÈ¡ Æڼ䣬²Ù×÷ϵͳÒѾ­Ïò SQL Server ·µ»ØÁË´íÎó 21(É豸δ¾ÍÐ÷¡£)¡£SQL Server ´íÎóÈÕÖ¾ºÍϵͳʼþÈÕÖ¾ÖеÄÆäËûÏûÏ¢¿ÉÄÜÌṩÁ˸üÏêϸÐÅÏ¢¡£ÕâÊÇÒ»¸öÍþвÊý¾Ý¿âÍêÕûÐÔµÄÑÏÖØϵͳ¼¶´íÎóÌõ¼þ£¬±ØÐëÁ¢¼´¾ÀÕý¡£ÇëÖ´ÐÐÍêÕûµÄÊý¾Ý¿âÒ»ÖÂÐÔ¼ì²é(DBCC CHECKDB)¡£´Ë´íÎó¿ÉÒÔÓÉÐí¶àÒòËص¼Ö£»ÓйØÏêϸÐÅÏ¢£¬Çë²ÎÔÄ SQL Server Áª»ú´ÔÊé¡£

          Íû¸÷λÃ÷ʾ  СµÜÔÚ´ËÏÈлл¸÷λÀ²£¡



×öһϴÅÅÌɨÃè scandisk È»ºócheckdbÒ»ÏÂ

DBCC¼ì²éһϣ¡

DBCC CHECKDB ¿´¿´´íÎóËùÔÚ
ÓпÉÄÜÊÇË÷ÒýµÄÎÊÌâ

  ¸Ðл¸÷λµÄ¹Ø×¢£¬¸÷λÌáµ½µÄÎÒ¶¼ÊÔ¹ýÁË£¬µ«»¹ÊÇûÓÐÓ𡣬ÊDz»Êdz£¹æµÄµ÷ÖÆÊDz»Êǽâ¾ö²»ÁË£¿

    ûÈËÓöµ½¹ý´ËÎÊÌâÂð£¬Èç¹û½â¾öÁ˼ӷ֣¡

ÊÇÄãÊý¾Ý¿â³öÎÊÌâÁË Óб¸·Ýû ÓеĻ°ÖØл¹Ô­Ï¾ͺÃÁË

ËäȻûÓÐÕýÈ·´ð°¸£¬µ«ÊÇ»¹ÊÇлл´ó¼ÒÀ²


Ïà¹ØÎÊ´ð£º

jsp jdbcÁ¬½Ósqlserver 2000 ³öÏÖÎÊÌâ

´úÂ룺

try{
    Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver"); 
con= DriverManager.getConnection("jdbc:microsoft:sqlserver://localhost: ......

ÔÚ64λϵͳÉÏÓÃCÓïÑÔ²Ù×÷sqlserverÊý¾Ý¿âµÄÎÊÌâ

дÁËÒ»¸öÓÃCÓïÑÔ²Ù×÷sqlserverÊý¾Ý¿âµÄ³ÌÐò£¬ÔÚÎÒ×Ô¼ºµÄ¼ÆËã»úÉÏÔËÐÐûÎÊÌâ¡£µ«µ½Áíһ̨»úÆ÷ÉÏÔËÐÐʱ£¬SQLConnectº¯ÊýÁ¬½ÓÊý¾Ý¿âʧ°Ü£¬×Ðϸ¼ì²éÉèÖö¼Ã»Óз¢ÏÖÎÊÌ⣬µ«¸Ã»úÆ÷µÄ²Ù×÷ϵͳÊÇWindows Server 2003 Enterp ......

sqlserver´Óvarchar(50)´æ´¢¸ÄΪÓÃvarchar(10)µÄ»°

±ÈÈç Óû§Ãû£¬ÎÒ³ÌÐòµÄÒªÇóÊÇ10λ×Ö·ûÒÔÄÚ£¬ËùÒÔ£º
Èç¹ûÎÒsqlserver´Óvarchar(50)´æ´¢¸ÄΪÓÃvarchar(10)µÄ»°£¬

1.»á²»»á¼õÉÙÊý¾Ý¿Õ¼ä£¿
2.»á²»»áÌá¸ßÎÒ³ÌÐòµÄЧÂÊ£¿
3.ÓÐûÓбØÒª£¿

СµÜÏÈл ......

¼±ÇóÖúSqlserver´æ´í¹ý³Ì

CREATE PROCEDURE [dbo].[getNews]
@News_subject nvarchar(1000) =null,
@News_content nvarchar(max) =null,
@type int,
@FileName varchar(255) =null,
@descriptions nvarchar(1000) =null,
@ ......

sqlserver count,order by ²éѯÂý

±íÖÐÊý¾Ý 700ÍòÌõ×óÓÒ£¬29¸ö×ֶΣ¬×Ô¶¯Ôö³¤ÁÐÉèΪÖ÷¼ü£¬ ʹÓÃcount£¨1£© ²éѯ×ÜÌõÊýÐèÒª1·ÖÖÓ£¬
select top 1000 ×Ö¶ÎÃû  from ±í order by ʱ¼ä(¸Ã×Ö¶ÎÓÐÖظ´ÖµºÍnullÖµ)  ÕâÑùµÄÓï¾ä²éѯ¸üÊÇÂýµÃ»ù± ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ