坑
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
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 , 是不允许的哦
我还不清楚为什么