inner join compare 的时候 

Cannot resolve the collation conflict between "SQL_Latin1_General_CP1_CI_AS" and "Chinese_PRC_CI_AS" in the equal to operation

解决方法是 : select count(*) from t1 inner join t2 on t1.code= t2.code collate DATABASE_DEFAULT;

是说 2 个表 column 格式不同, 自己开发通常是一样的,这种情况通常出现在项目换了外包公司要 migrate 数据.

refer 

https://stackoverflow.com/questions/5039211/what-does-collate-sql-latin1-general-cp1-ci-as-do/16288963

https://social.msdn.microsoft.com/Forums/sqlserver/en-US/a8347900-1d77-40ab-b655-eddd2054984f/cannot-resolve-the-collation-conflict-between-quotchineseprcciasquot-and?forum=transactsql

 

 

 

username password 进不到 :  https://msdn.microsoft.com/en-us/library/ms188670.aspx

pc account 进不到 : 有可能是service 没开启, 去 sql server configuration manager 里面检查

 

cascade 级联删除不能有2个

比如 : 

Users 

Products

Colors

洗掉 user , product and color 要洗掉

洗掉 product , color 要洗掉 

这里color 就有了2个 cascade , 是不允许的哦 

我还不清楚为什么 

 

posted @ 2015-07-22 16:40  兴杰  阅读(176)  评论(0)    收藏  举报