sqlserver µÄÊý¾Ý»¹Ô
»¹ÔµÄ±¨´íÐÅÏ¢: System.Data.SqlClient.SqlError: ±¸·Ý¼¯ÖеÄÊý¾Ý¿â±¸·ÝÓëÏÖÓÐµÄ 'chat_Data' Êý¾Ý¿â²»Í¬¡£ (Microsoft.SqlServer.Smo) Çë¸÷λ¸ßÊÖ°ïæ½â¾ö
»¹ÔµÄÊý¾Ý¿âÃû×ÖÓ뱸·ÝµÄÊý¾Ý¿â²»Ò»Ñù ¸Ä³ÉÒ»ÑùµÄ¾ÍÐÐÁË È·¶¨ÊÇͬһ¸öÊý¾Ý¿âµÄ±¸·ÝÎļþÂ𣿠ÊÔÒ»ÏÂÃüÁî»Ö¸´ Restore database chat_Data from 'C:\c.bak'ÒýÓà »¹ÔµÄÊý¾Ý¿âÃû×ÖÓ뱸·ÝµÄÊý¾Ý¿â²»Ò»Ñù ¸Ä³ÉÒ»ÑùµÄ¾ÍÐÐÁË ÊÇÒ»ÑùµÄ¡£¡£ ÎÒÊ×ÏÈûÁíÍ⽨¿â ºóÀ´Ìí¼Ó µÄ ÕÕ³µÄ¡£ÒýÓà ȷ¶¨ÊÇͬһ¸öÊý¾Ý¿âµÄ±¸·ÝÎļþÂ𣿠ÊÔÒ»ÏÂÃüÁî»Ö¸´ Restore database chat_Data from 'C:\c.bak' Õâ¸öÒ²ÊÔÁË Ò²Ã»Óà Restore database chat_Data from 'C:\c.bak' with replace Ïȼì²éһϱ¸·Ý¼¯ÖеÄÊý¾Ý¿âÃû£¬ÔÙ»¹Ô¡£ restore headeronly from disk='c:\c.bak' ÏȽ¨Ò»¸öͬÃûµÄÊý¾Ý¿â£¬ÓÃÒª»¹ÔÊý¾Ý¿â¸²¸ÇÏÖÓÐÊý¾Ý¿âÊÔÊÔ È·¶¨»¹Ô·¾¶Óëн¨µÄ·¾¶Ò»Ö ÊÔÊÔÒýÓà ÏȽ¨Ò»¸öͬÃûµÄÊý¾Ý¿â£¬ÓÃÒª»¹ÔÊý¾Ý¿â¸²¸ÇÏÖÓÐÊý¾Ý¿âÊÔÊÔ È·¶¨»¹Ô·¾¶Óëн¨µÄ·¾¶Ò»Ö ÊÔÊÔ Â·¾¶ÎÞ·¨Ò»Ö ÒÔÇ°µÄÊý¾Ý¿âÊǽ¨ÔÚfÅÌ ÏÖÔÚÎҵĵçÄÔûÓÐfÅÌ restore database chat_Data from disk='c:\MSSQL.bak' with replace ÕâÑù¾Í¿ÉÒÔÁË Ð»Ð»¸÷λÀ²£¡~~~
Ïà¹ØÎÊ´ð£º
ÏÖÒ»·þÎñÆ÷£¬Ö§³ÖRAID5/RAID1+0µÈ£¬ÓÐ4¿éÒ»ÑùÐͺŵÄÓ²ÅÌ£¬°²×°ÁËRAID¿¨¡£ ÎÒËÑË÷ÁËÂÛ̳£¬ÓÐ˵Ҫ°ÑÊý¾Ý¿âÎļþ·Ö²¼ÔÚ²»Í¬´ÅÅÌ£¬µ«ÊÇ£¬×öraid5»òraid10ºó£¬4¿éÓ²Å̺ÃÏñ³ÉΪһÌåÁË£¬ÎÒ·Ö3¸ö·ÖÇø£¬Îļþ·Ö²¼ÔÚ²»Í¬· ......
ÈçºÎ½«sqlserver ±íµÄÒ»¸ö×ֶεÄÖµ¼ÓÉÏͬһ¸öÖµ£¿ ÊÇÉí·ÝÖ¤µ¼³öexcel±ä¿Æѧ¼ÆÊý·¨£¬Ï뽫ÕâÒ»×ֶεÄÖµÖ±½Ó¼ÓÉÏÒ»¸ö ¡¯ ÇëÎÊÈçºÎд£¿ SQL code: update ry set Éí·ÝÖ¤ºÅ=Éí·ÝÖ¤ºÅ+'*' UPdateÒ»Ï ......
SQL code: begin tran update EB with(rowlock) set Name='abc123' where Code=12 waitfor delay '00:00:13' commit tran ÎÒÓÃrowlockÏëËø¶¨Ò»ÐУ¬¿ÉÊÇËü°ÑÕû¸ö±í¶¼Ëø¶¨ÁË¡£²»¹ÜÎÒ¸üÐÂÄÄÒ»ÌõÊý¾Ý¶¼ ......
ÏÈÓÉÈçÏÂsqlÓï¾ä select A,B,C from table1 union select A,B,C from table2 order by A, C asc µÃµ½½á¹ûÈçÏ£º A B &nbs ......
±ÈÈçsqlÓï¾äÊÇ£º SQL code: select top 300 CA01.A_id as '±ä¶¯´ÎÊý', CA01.A0188 as 'ÈËÔ±id', CA01.apname as 'ÉóÅúÕß', CA01.CA0100 as 'È·ÈÏ״̬', CA01.CA0101 as '±ä¶¯ÀàÐÍ', CA01.CA0102 as 'Éê ......