On Windows。
需先自行指定 IP,如果使用自動取得 IP 則無法設定,設定完成後 → 進階 →
IP 設定 → 新增 → 新增 IP 及子網路 → 確定。
flyfox 發表在 痞客邦 留言(0) 人氣(1,015)
網路介面卡 IP 位置已經被指派給另一個介面卡。
cmd → regedit → HKEY_LOCAL_MACHINE → SYSTEM → CurrentControlSet → Services →
Tcpip → Parameters → Interfaces
flyfox 發表在 痞客邦 留言(0) 人氣(62)
將 SQL bak 每天壓縮、備份至 FTP。
@echo on
@setLocal EnableDelayedExpansion
@rem =========================================
@rem Author: flyfox 20140101
@rem 使用需知
@rem 1. 需安裝 7-zip
@rem =========================================
flyfox 發表在 痞客邦 留言(1) 人氣(492)
於 Vista 之後版本會發生的問題。
Windows Vista Service Pack 1
解決方式:VSP1CLN。EXE
Windows Vista Service Pack 2 或 Windows Server 2008 Service Pack 2
解決方式:Compcln.exe
flyfox 發表在 痞客邦 留言(2) 人氣(1,603)
使用 Sysprep on Win 2003、Win 2008 R2。
不可貪圖方便透過遠端執行,否則可能會造成 Login Loop。
Windows 2003
載入光碟片於 E,在 E:\SUPPORT\TOOLS\DEPLOY.CAB 中複製 Setupcl.exe、sysprep.exe,
執行 sysprep → 確定 → 確認只有預設勾選的執行迷你安裝 → 關機模式選重新開機 →
重新封裝 → 確定
flyfox 發表在 痞客邦 留言(0) 人氣(350)
On SQL Server 2008 R2。於 Main 移除鏡像並將資料庫刪除
於 Mirror 將資料庫刪除
ALTER DATABASE MyDB SET PARTNER OFF
drop DATABASE MyDB
flyfox 發表在 痞客邦 留言(0) 人氣(485)
SQL Server 2008 R2。
新增查詢 → 查詢 → 查詢選項 → 執行 → 進階 → 勾選 set statistics time
結果 → 文字 → 勾選在結果集裡包含查詢
flyfox 發表在 痞客邦 留言(0) 人氣(2,304)
解決鏡像中斷連接。
select @@servername是查詢登錄值,而 SERVERPROPERTY('servername') 是傳回主機的名稱。
SELECT CONVERT(varchar(255),SERVERPROPERTY('servername'))
GO;
select @@servername
GO;
flyfox 發表在 痞客邦 留言(0) 人氣(1,586)
據說是因為這個 Bug 讓 ipod 佔了先機。
year = 1980;
while (days > 365)
{
if (IsLeapYear(year))
{
if (days > 366)
{
days -= 366;
year += 1;
}
}
else
{
days -= 365;
year += 1;
}
}
flyfox 發表在 痞客邦 留言(0) 人氣(41)
on windwos 2003。
查看目前分享資料夾 cmd → net share。
cmd → regedit → HKEY_LOCAL_MACHINE → System → CurrentControlSet → Services →
LanmanServer → Paramaters → 新增一個 REG_DWORD 形態的數值 AutoShareServer →
值設定為 0 → 重開機。
flyfox 發表在 痞客邦 留言(0) 人氣(652)