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

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
  ÕâÑù¾Í¿ÉÒÔÁË 
  лл¸÷λÀ²£¡~~~


Ïà¹ØÎÊ´ð£º

SQLSERVER 2000 ÔÚ RAID·þÎñÆ÷ÉÏ£¬¸ÃÈçºÎÅäÖã¿

ÏÖÒ»·þÎñÆ÷£¬Ö§³ÖRAID5/RAID1+0µÈ£¬ÓÐ4¿éÒ»ÑùÐͺŵÄÓ²ÅÌ£¬°²×°ÁËRAID¿¨¡£

ÎÒËÑË÷ÁËÂÛ̳£¬ÓÐ˵Ҫ°ÑÊý¾Ý¿âÎļþ·Ö²¼ÔÚ²»Í¬´ÅÅÌ£¬µ«ÊÇ£¬×öraid5»òraid10ºó£¬4¿éÓ²Å̺ÃÏñ³ÉΪһÌåÁË£¬ÎÒ·Ö3¸ö·ÖÇø£¬Îļþ·Ö²¼ÔÚ²»Í¬· ......

ÈçºÎ½«sqlserver ±íµÄÒ»¸ö×ֶεÄÖµ¶¼¼ÓÉÏͬһ¸öÖµ£¿

ÈçºÎ½«sqlserver ±íµÄÒ»¸ö×ֶεÄÖµ¼ÓÉÏͬһ¸öÖµ£¿

ÊÇÉí·ÝÖ¤µ¼³öexcel±ä¿Æѧ¼ÆÊý·¨£¬Ï뽫ÕâÒ»×ֶεÄÖµÖ±½Ó¼ÓÉÏÒ»¸ö ¡¯

ÇëÎÊÈçºÎд£¿
SQL code:
update ry set Éí·ÝÖ¤ºÅ=Éí·ÝÖ¤ºÅ+'*'

UPdateÒ»Ï ......

SqlServer ËøµÄÎÊÌâ

SQL code:
begin tran
update EB with(rowlock) set Name='abc123' where Code=12 waitfor delay '00:00:13'
commit tran


ÎÒÓÃrowlockÏëËø¶¨Ò»ÐУ¬¿ÉÊÇËü°ÑÕû¸ö±í¶¼Ëø¶¨ÁË¡£²»¹ÜÎÒ¸üÐÂÄÄÒ»ÌõÊý¾Ý¶¼ ......

sqlserver Êý¾ÝºÏ²¢ÎÊÌâ

ÏÈÓÉÈçÏÂsqlÓï¾ä
select  A,B,C from table1
union
select  A,B,C from table2
order by A, C asc
µÃµ½½á¹ûÈçÏ£º
  A        B      &nbs ......

200·ÖÇó´´½¨ÁÙʱ±í£¨sqlserver£©

±ÈÈç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 'Éê ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ