select * from sys.dm_tran_locks,sysobjects
where sys.dm_tran_locks.resource_associated_entity_id=sysobjects.id


Posted by chinkao at 痞客邦 PIXNET 留言(0) 引用(0) 人氣()

 

 

Workaround:
1) Enable file growth for the first data file
2) Add new file
3) Disable file growth for the first data file

http://connect.microsoft.com/SQLServer/feedback/details/524945/can-not-add-data-file-to-the-database-with-fixed-size-files


Posted by chinkao at 痞客邦 PIXNET 留言(0) 引用(0) 人氣()

netsh int tcp set global autotuninglevel=disabled
netsh int tcp set global chimney=disabled


Posted by chinkao at 痞客邦 PIXNET 留言(0) 引用(0) 人氣()

http://support.microsoft.com/kb/246133/zh-tw

 

----- Begin Script, Create sp_help_revlogin procedure -----

USE master

Posted by chinkao at 痞客邦 PIXNET 留言(0) 引用(0) 人氣()

http://support.microsoft.com/kb/906954

 

對於具名執行個體

osql -E -S <LinkedServerName>\<InstanceName> -i <Location>\instcat.sql

Posted by chinkao at 痞客邦 PIXNET 留言(0) 引用(0) 人氣()

20090913 


Posted by chinkao at 痞客邦 PIXNET 留言(0) 引用(0) 人氣()

20090906.png 


Posted by chinkao at 痞客邦 PIXNET 留言(0) 引用(0) 人氣()


Posted by chinkao at 痞客邦 PIXNET 留言(0) 引用(0) 人氣()


Posted by chinkao at 痞客邦 PIXNET 留言(0) 引用(0) 人氣()

c:\set devmgr_show_nonpresent_devices=1
c:\ start devmgmt.msc

show hidden device-->remove it


Posted by chinkao at 痞客邦 PIXNET 留言(0) 引用(0) 人氣()

 

 

host oerr ora 04062
04062, 00000, "%s of %s has been changed"
// *Cause:  Attempt to execute a stored procedure to serve

Posted by chinkao at 痞客邦 PIXNET 留言(0) 引用(0) 人氣()

SELECT SERVERPROPERTY('productversion'), SERVERPROPERTY ('productlevel'),
SERVERPROPERTY ('edition')


Posted by chinkao at 痞客邦 PIXNET 留言(0) 引用(0) 人氣()

SQL> exec dbms_system.set_sql_trace_in_session(sid,serial#,true)

PL/SQL procedure successfully completed.

SQL> exec dbms_system.set_sql_trace_in_session(sid,serial#,false)

Posted by chinkao at 痞客邦 PIXNET 留言(0) 引用(0) 人氣()

find /ABC -mtime +200 -type f -print -exec rm -f {} \;

 


find /ABC -mtime +300 -type f -print|xargs tar cvf /tmp/uat2_300.tar


Posted by chinkao at 痞客邦 PIXNET 留言(0) 引用(0) 人氣()

SYSADMIN->Security->ORACLE->Register

metalink Doc ID:  394555.1

 

 

Use the following command to gather schema statistics:

Posted by chinkao at 痞客邦 PIXNET 留言(0) 引用(0) 人氣()

1 23