一、 只複製一個表結構,不複製資料 select top 0 * into [t1] from [t2] 二、 擷取資料庫中某個對象的建立指令碼 1、 先用下面的指令碼建立一個函數 if exists(select 1 from sysobjects where id=object_id('fgetscript') and objectproperty(id,'IsInlineFunction')=0) drop function fgetscript
有過相關經驗的朋友都知道,Jscript的效率畢竟有限,在數組中尋找資料時如果用常規的演算法來做執行起來會很慢。 例如在一個含500個字串的data數組裡,我們想要找到一個指定的字元(key),返回它的數組下標,如果用這樣的演算法: [Copy to clipboard]CODE: function usual_search(data,key) { var m=data.length for(i=0;i<m;i++) {if(data[i]==key)return i} }
1:首先在BIOS中把NumLock項設為Enable,然後在BIOS中將PnP With OS項亦設為Enable即可。不過登出使用者時NumLock小鍵盤鎖是關閉的,要手工開啟。 開啟登錄編輯程式,找到HKEY_USERS.DEFAULTControl PanelKeyboard,將它下面的InitialKeyboardIndicators的索引值改為“2”,退出登錄編輯程式,重新啟動電腦,你就會發現數字小鍵盤的燈不再熄滅了。
<script type="text/javascript" src="editor/fckeditor.js"></script> <script type="text/javascript"> <!-- // Automatically calculates the editor base path based on the _samples directory. // This is usefull only for these samples.
net use \\ip\ipc$ “ “ /user:“ “ 建立IPC空連結 net use \\ip\ipc$ “密碼“ /user:“使用者名稱“ 建立IPC非空連結 net use h: \\ip\c$ “密碼“ /user:“使用者名稱“ 直接登陸後映射對方C:到本地為H: net use h: \\ip\c$ 登陸後映射對方C:到本地為H: net use \\ip\ipc$ /del 刪除IPC連結 net use h: /del