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

ÈçºÎÓÃÃüÁîÉú³ÉSQL SERVER½Å±¾

ÈçºÎÓÃÃüÁîÉú³ÉSQL   SERVER½Å±¾  
   
  --ÒÔÏÂÉú³ÉÕû¸öÊý¾Ý¿âµÄSQL½Å±¾£¬ÎÒ²âÊÔÁË£¬Ï൱ºÃÓᣠ 
  --(scptxfr.exeµÄ·¾¶ÒªÕýÈ·ÒÔÏÂÊÇÎҵķ¾¶)  
  declare   @cMd   varchar(1000)  
  set   @cmd   =   'master.dbo.xp_cmdshell   '   +    
  '''c:\"Microsoft   '   +  
  'SQL   Server"'   +  
  '\MSSQL\Upgrade\scptxfr.exe   '   +  
  '   /s   YourServerName   /p   YourSAPassword   /I   /d   YourDBName   /f   '   +  
  'c:\YourDBName.sql'''  
  exec   (@cmd)  
   
  ÃüÁîÐÐÓï·¨:  
  SCPTXFR   /s   <·þÎñÆ÷>   /d   <Êý¾Ý¿â>   {[/I]   |   [/P   <ÃÜÂë>]}  
  {[/F   <½Å±¾ÎļþĿ¼>]   |   [/f   <µ¥¸ö½Å±¾Îļþ>]}  
  /q   /r   /O   /T   /A   /E   /C   <CodePage>   /N   /X   /H   /G   /Y   /?  
   
  /s   —   ָʾҪÁ¬½Óµ½µÄÔ´·þÎñÆ÷¡£  
  /d   —   ָʾҪΪ֮±àд½Å±¾µÄÔ´Êý¾Ý¿â¡£  
  /I   —   ʹÓü¯³É°²È«ÐÔ¡£  
  /P   —   sa   ÒªÓõÄÃÜÂë¡£Çë×¢ÒâµÇ¼   ID   ʼÖÕΪ   sa¡£  
  Èô/P²»Ê¹Óûò±êÖ¾ºóÃæûÓÐÃÜÂ룬  
  Ôò½«Ê¹ÓÿÕÃÜÂë¡£²»Óë   /I   ¼æÈÝ¡£  
  /F   —   ½Å±¾ÎļþÓ¦Éú³Éµ½µÄĿ¼¡£  
  ÕâÒâζ×ÅΪÿ¸ö¶ÔÏó·ÖÀàÉú³ÉÒ»¸öÎļþ¡£  
  /f   —   ËùÓнű¾½«±£´æµ½µÄµ¥¸öÎļþ¡£  
  ²»Óë   /F   ¼æÈÝ¡£  
  /q   —   ÔÚËùÉú³ÉµÄ½Å±¾ÖÐʹÓñ»ÒýÓõıêʶ·û¡£  
  /r   —   Ϊ½Å±¾ÖеĶÔÏó°üÀ¨   drop   Óï¾ä¡£  
&


Ïà¹ØÎĵµ£º

ÔõôÔö¼ÓSQL ServerÁ¬½ÓÊý

ÔõôÔö¼ÓSQL ServerÁ¬½ÓÊý
1. ¿´²Ù×÷ƽ̨µÄ連½Ó數ÊǶàÉÙ
   ¿ØÖÆ̨µÄÊÚ權¿´¿´
2. 進GENERAL¿´¿´SQL SERVER USERS CONNECTIONS
    Ôö´ó¼´¿É
sp_configure 'number of connection'
go ......

SQLÓïÑԵIJ¼¾ÖºÍIllegalArgumentException

ºÍjava.lang.IllegalArgumentException: org.hibernate.QueryException: JPA-style positional param was not an integral ordinalÕ½¶·ÁË°ëÌ죬º¹°¡£¡
ʹÓÃjpa + strut+ hibernate ¾Í±¨org.hibernate.QueryException: JPA-style positional param was not an integral ordinal
Ò»°ã°ÑhqlÓï¾äдÔÚÒ»ÐУ¬»áºÜ³¤£¬ÔÚideÖÐÐèÒ ......

¹ØÓÚSQL ServerËÀËø

transaction 1:
------------------------------------------------------
 begin transaction
  update table1 set cola = 'str1'
  Waitfor time '10:12:00'
  update table2 set colb = 'str2'
 rollback transaction
 
transaction 2:
---- ......

sqlÊý¾Ý¿â£ºÈçºÎÔÚÒ»¸ö±íÖÐÌî¼Ó»òÕßɾ³ýÒ»¸ö×ֶΣ¡


ÈçÒªÔÚÒ»¸öhwsp±íÖÐÌî¼Ó×ֶΣºylxs
alter table hwsp add column ylxs
ALTER TABLE ±í {ADD ADD{COLUMN ×Ö¶ÎÀàÐÍ [ (×Ö³¤)] [NOT NULL]     [CONSTRAINT Ë÷Òý ] |
     ALTER COLUMN ×Ö¶ÎÀàÐÍ [(×Ö³¤)] |
     CONSTRAINT ¶àÖØ×Ö¶ÎË÷Òý } |
 &nbs ......

oracle sql ʱ¼ä¼ä¸ô¼ÆËã

¼ÆËã¼ä¸ôʱ¼ä£º
select f_date,f_cstime,f_cetime, (((SYSDATE- TO_DATE(f_date||f_cstime,'YYYYMMDDHH24MISS')) * 86400000)-((SYSDATE- TO_DATE(f_date||f_cetime,'YYYYMMDDHH24MISS')) * 86400000))/1000  CURRENT_MILLI from ycsq_t_hauthlog where f_cstime<>'999999'
½«×Ö·û´®×ª»»³ÉÈÕÆÚÀà:SYSDATE- TO_ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ