Open GoogleCodeExporter opened 8 years ago
Ok, I figured it out that Application role has a password, so valid fix is this:
Index: DBDiff.Schema.SQLServer2005/Model/Role.cs
===================================================================
--- DBDiff.Schema.SQLServer2005/Model/Role.cs (revision 37)
+++ DBDiff.Schema.SQLServer2005/Model/Role.cs (working copy)
@@ -43,7 +43,8 @@
string sql = "";
sql += "CREATE " + ((type == RoleTypeEnum.ApplicationRole)?"APPLICATION":"") + " ROLE ";
sql += FullName + " ";
- sql += "WITH PASSWORD = N'" + password + "'";
+ if(!string.IsNullOrEmpty(password))
+ sql += "WITH PASSWORD = N'" + password + "'";
if (!String.IsNullOrEmpty(Owner))
sql += " ,DEFAULT_SCHEMA=[" + Owner + "]";
return sql.Trim() + "\r\nGO\r\n";
Original comment by kot.bege...@gmail.com
on 13 Sep 2010 at 9:53
Original issue reported on code.google.com by
kot.bege...@gmail.com
on 13 Sep 2010 at 9:48