2011年1月10日 星期一
2010年12月21日 星期二
[SQL Server]使用者 'XXX' 的登入失敗。使用者與受信任的
Cause: 未開啟 SQL Server 驗證, 故無法使用 SQL Server 帳號登入
Solve:
1. 開啟SSMS
2. Engine 屬性->安全性, 選SQL Server及Windows驗證模式
Solve:
1. 開啟SSMS
2. Engine 屬性->安全性, 選SQL Server及Windows驗證模式
[SQL Server] java.sql.SQLException: "Network error
Cause: SQL Server TCP/IP 未開啟
Solve:
1. 至SQL Server組態設定->網路組態->通訊協定-TCP/IP, 內容->IPAll, TCP通訊埠要設定, 通常為1433
2. 回TCP/IP右鍵"啟用"
Solve:
1. 至SQL Server組態設定->網路組態->通訊協定-TCP/IP, 內容->IPAll, TCP通訊埠要設定, 通常為1433
2. 回TCP/IP右鍵"啟用"
2010年12月15日 星期三
2010年12月1日 星期三
[Javascript]一些資源
JS verifier
http://jslint.com/
JSMin js compressor
http://blog.miniasp.com/post/2007/11/09/Using-JSMin-compress-your-JavaScript-file.aspx
http://jslint.com/
JSMin js compressor
http://blog.miniasp.com/post/2007/11/09/Using-JSMin-compress-your-JavaScript-file.aspx
2010年11月28日 星期日
[SQL] join
可大致區分為inner join, left outer join, right outer join, full join, cross join
1. inner join: 只篩選出兩個table共同部份(取交集), 通常是以 WHERE... 方式, 也包含條件
2. left outer join: 以左邊 table 為主, 也就是左邊 table 的資料都要篩出來, 若右邊 table 沒有的值則為NULL 值, 寫法為 Select * from table1 Left outer join table2 on table1.FK = table2.PK
3. right outer join:以右邊table為主, 右邊 table 的資料都要篩出來, 若左邊 table 沒有的值則為NULL 值, 寫法為 Select * from table1 Right outer join table2 on table1.FK = table2.PK
4. full join: 左右兩邊table的資料都列出來, 沒有的值為NULL
5. cross join: 列出左有兩邊資料列相乘的後的結果
1. inner join: 只篩選出兩個table共同部份(取交集), 通常是以 WHERE... 方式, 也包含條件
2. left outer join: 以左邊 table 為主, 也就是左邊 table 的資料都要篩出來, 若右邊 table 沒有的值則為NULL 值, 寫法為 Select * from table1 Left outer join table2 on table1.FK = table2.PK
3. right outer join:以右邊table為主, 右邊 table 的資料都要篩出來, 若左邊 table 沒有的值則為NULL 值, 寫法為 Select * from table1 Right outer join table2 on table1.FK = table2.PK
4. full join: 左右兩邊table的資料都列出來, 沒有的值為NULL
5. cross join: 列出左有兩邊資料列相乘的後的結果
訂閱:
文章 (Atom)