database query : add with(nolock)
This commit is contained in:
36
SubProject/FBS0000/dsMSSQL.Designer.cs
generated
36
SubProject/FBS0000/dsMSSQL.Designer.cs
generated
@@ -7290,12 +7290,13 @@ SELECT idx, stime, etime, title, place, contents, project, main, sub, memo, wuid
|
||||
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2];
|
||||
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[0].Connection = this.Connection;
|
||||
this._commandCollection[0].CommandText = "SELECT minutes.*\r\nFROM minutes";
|
||||
this._commandCollection[0].CommandText = "SELECT idx, stime, etime, title, place, contents, project, main, sub, memo, wuid" +
|
||||
", wdate\r\nFROM minutes WITH (NOLOCK)";
|
||||
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
|
||||
this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[1].Connection = this.Connection;
|
||||
this._commandCollection[1].CommandText = "SELECT contents, etime, idx, main, memo, place, project, stime, sub, title, wdate" +
|
||||
", wuid FROM minutes WHERE (idx = @idx)";
|
||||
this._commandCollection[1].CommandText = "SELECT contents, etime, idx, main, memo, place, project, stime, sub, title, wdat" +
|
||||
"e, wuid\r\nFROM minutes WITH (NOLOCK)\r\nWHERE (idx = @idx)";
|
||||
this._commandCollection[1].CommandType = global::System.Data.CommandType.Text;
|
||||
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idx", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
}
|
||||
@@ -7956,7 +7957,7 @@ SELECT idx, bidx, header, cate, title, contents, [file], guid, wuid, wdate FROM
|
||||
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[0].Connection = this.Connection;
|
||||
this._commandCollection[0].CommandText = "SELECT idx, bidx, header, cate, title, contents, [file], guid, wuid, wdate\r\nFROM" +
|
||||
" Board\r\nWHERE (bidx = @bidx)";
|
||||
" Board WITH (NOLOCK)\r\nWHERE (bidx = @bidx)";
|
||||
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
|
||||
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@bidx", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "bidx", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
}
|
||||
@@ -8664,7 +8665,7 @@ SELECT idx, cate, result, sdate, edate, term, title, contents, uid, tolist, mail
|
||||
this._commandCollection[0].Connection = this.Connection;
|
||||
this._commandCollection[0].CommandText = @"SELECT idx, cate, result, sdate, edate, term, title, contents, uid, tolist, mail, mailsend, reason, wuid, wdate, termDr, gcode, DrTime, CrTime, dbo.getUserName(uid) AS UserName, tag, extcate, extidx,
|
||||
lock
|
||||
FROM Holyday
|
||||
FROM Holyday WITH (NOLOCK)
|
||||
WHERE (sdate >= @sd) AND (gcode = @gcode) AND (uid LIKE @uid) AND (sdate <= @ed) AND (cate LIKE @cate)
|
||||
ORDER BY sdate, edate, uid, idx";
|
||||
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
|
||||
@@ -8677,7 +8678,7 @@ ORDER BY sdate, edate, uid, idx";
|
||||
this._commandCollection[1].Connection = this.Connection;
|
||||
this._commandCollection[1].CommandText = @"SELECT CrTime, DrTime, dbo.getUserName(uid) AS UserName, cate, contents, edate, extcate, extidx, gcode, idx, lock, mail, mailsend, reason, result, sdate, tag, term, termDr, title, tolist, uid, wdate,
|
||||
wuid
|
||||
FROM Holyday
|
||||
FROM Holyday WITH (NOLOCK)
|
||||
WHERE (gcode = @gcode) AND (sdate BETWEEN @sd AND @ed) OR
|
||||
(gcode = @gcode) AND (edate BETWEEN @sd AND @ed)
|
||||
ORDER BY sdate, edate, uid";
|
||||
@@ -8695,7 +8696,10 @@ ORDER BY sdate, edate, uid";
|
||||
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ed", global::System.Data.SqlDbType.Date, 3, global::System.Data.ParameterDirection.Input, 0, 0, "sdate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[3].Connection = this.Connection;
|
||||
this._commandCollection[3].CommandText = @"SELECT CrTime, DrTime, dbo.getUserName(uid) AS UserName, cate, contents, edate, extcate, extidx, gcode, idx, lock, mail, mailsend, reason, result, sdate, tag, term, termDr, title, tolist, uid, wdate, wuid FROM Holyday WHERE (gcode = @gcode) AND (idx = @idx)";
|
||||
this._commandCollection[3].CommandText = @"SELECT CrTime, DrTime, dbo.getUserName(uid) AS UserName, cate, contents, edate, extcate, extidx, gcode, idx, lock, mail, mailsend, reason, result, sdate, tag, term, termDr, title, tolist, uid, wdate,
|
||||
wuid
|
||||
FROM Holyday WITH (NOLOCK)
|
||||
WHERE (gcode = @gcode) AND (idx = @idx)";
|
||||
this._commandCollection[3].CommandType = global::System.Data.CommandType.Text;
|
||||
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idx", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
@@ -10256,8 +10260,8 @@ SELECT idx, cate, result, sdate, edate, term, title, contents, uid, tolist, mail
|
||||
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
|
||||
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[0].Connection = this.Connection;
|
||||
this._commandCollection[0].CommandText = "SELECT grp\r\nFROM EETGW_WorkTableUser\r\nWHERE (gcode = @gcode)\r\nGROUP BY grp\r" +
|
||||
"\nORDER BY grp";
|
||||
this._commandCollection[0].CommandText = "SELECT grp\r\nFROM EETGW_WorkTableUser WITH (NOLOCK)\r\nWHERE (gcode = @gcode)\r" +
|
||||
"\nGROUP BY grp\r\nORDER BY grp";
|
||||
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
|
||||
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
}
|
||||
@@ -10519,15 +10523,16 @@ SELECT idx, gcode, grp, seq, grade, empno, name, wuid, wdate, indate, email FROM
|
||||
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[0].Connection = this.Connection;
|
||||
this._commandCollection[0].CommandText = "SELECT idx, gcode, grp, seq, grade, empno, name, wuid, wdate, indate, email\r\nFRO" +
|
||||
"M EETGW_WorkTableUser\r\nWHERE (gcode = @gcode) AND (grp = @grp)\r\nORDER BY se" +
|
||||
"q";
|
||||
"M EETGW_WorkTableUser WITH (NOLOCK)\r\nWHERE (gcode = @gcode) AND (grp = @grp" +
|
||||
")\r\nORDER BY seq";
|
||||
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
|
||||
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@grp", global::System.Data.SqlDbType.VarChar, 100, global::System.Data.ParameterDirection.Input, 0, 0, "grp", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[1].Connection = this.Connection;
|
||||
this._commandCollection[1].CommandText = "SELECT email, empno, gcode, grade, grp, idx, indate, name, seq, wdate, wuid FROM " +
|
||||
"EETGW_WorkTableUser WHERE (gcode = @gcode) AND (empno = @empno)";
|
||||
this._commandCollection[1].CommandText = "SELECT email, empno, gcode, grade, grp, idx, indate, name, seq, wdate, wuid\r\nFRO" +
|
||||
"M EETGW_WorkTableUser WITH (NOLOCK)\r\nWHERE (gcode = @gcode) AND (empno = @e" +
|
||||
"mpno)";
|
||||
this._commandCollection[1].CommandType = global::System.Data.CommandType.Text;
|
||||
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@empno", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "empno", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
@@ -11488,8 +11493,9 @@ SELECT idx, pdate, free, memo, wuid, wdate FROM HolidayLIst WHERE (idx = @idx) O
|
||||
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
|
||||
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[0].Connection = this.Connection;
|
||||
this._commandCollection[0].CommandText = "SELECT uid, dbo.getUserName(uid) AS UserName\r\nFROM Holyday\r\nWHERE (gcode =" +
|
||||
" @gcode) AND (sdate >= @sd) AND (sdate <= @ed)\r\nGROUP BY uid\r\nORDER BY UserName";
|
||||
this._commandCollection[0].CommandText = "SELECT uid, dbo.getUserName(uid) AS UserName\r\nFROM Holyday WITH (NOLOCK)\r\nWH" +
|
||||
"ERE (gcode = @gcode) AND (sdate >= @sd) AND (sdate <= @ed)\r\nGROUP BY uid\r\nORDER" +
|
||||
" BY UserName";
|
||||
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
|
||||
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@sd", global::System.Data.SqlDbType.Date, 3, global::System.Data.ParameterDirection.Input, 0, 0, "sdate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
|
||||
Reference in New Issue
Block a user