database query : add with(nolock)
This commit is contained in:
@@ -51,7 +51,7 @@ SELECT dept, gcode, path_kj, permission, advpurchase, advkisul, managerinfo, dev
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>SELECT dept, gcode, path_kj, permission, advpurchase, advkisul, managerinfo, devinfo
|
||||
FROM UserGroup</CommandText>
|
||||
FROM UserGroup WITH (nolock)</CommandText>
|
||||
<Parameters />
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
@@ -103,7 +103,7 @@ SELECT dept, gcode, path_kj, permission, advpurchase, advkisul, managerinfo, dev
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="true">
|
||||
<CommandText>SELECT advkisul, advpurchase, dept, devinfo, gcode, managerinfo, path_kj, permission
|
||||
FROM UserGroup
|
||||
FROM UserGroup WITH (nolock)
|
||||
WHERE (gcode = @gcode)</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="gcode" ColumnName="gcode" DataSourceName="EE.dbo.UserGroup" DataTypeServer="varchar(10)" DbType="AnsiString" Direction="Input" ParameterName="@gcode" Precision="0" ProviderType="VarChar" Scale="0" Size="10" SourceColumn="gcode" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
@@ -115,7 +115,7 @@ WHERE (gcode = @gcode)</CommandText>
|
||||
</TableAdapter>
|
||||
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="UsersTableAdapter" GeneratorDataComponentClassName="UsersTableAdapter" Name="Users" UserDataComponentName="UsersTableAdapter">
|
||||
<MainSource>
|
||||
<DbSource ConnectionRef="gwcs (Settings)" DbObjectName="GroupWare.dbo.Users" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
|
||||
<DbSource ConnectionRef="gwcs (Settings)" DbObjectName="EE.dbo.Users" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
|
||||
<DeleteCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>DELETE FROM [Users] WHERE (([id] = @Original_id) AND ((@IsNull_password = 1 AND [password] IS NULL) OR ([password] = @Original_password)) AND ((@IsNull_nameE = 1 AND [nameE] IS NULL) OR ([nameE] = @Original_nameE)) AND ((@IsNull_name = 1 AND [name] IS NULL) OR ([name] = @Original_name)) AND ((@IsNull_dept = 1 AND [dept] IS NULL) OR ([dept] = @Original_dept)) AND ((@IsNull_grade = 1 AND [grade] IS NULL) OR ([grade] = @Original_grade)) AND ((@IsNull_email = 1 AND [email] IS NULL) OR ([email] = @Original_email)) AND ((@IsNull_level = 1 AND [level] IS NULL) OR ([level] = @Original_level)) AND ((@IsNull_indate = 1 AND [indate] IS NULL) OR ([indate] = @Original_indate)) AND ((@IsNull_outdate = 1 AND [outdate] IS NULL) OR ([outdate] = @Original_outdate)) AND ((@IsNull_tel = 1 AND [tel] IS NULL) OR ([tel] = @Original_tel)) AND ((@IsNull_hp = 1 AND [hp] IS NULL) OR ([hp] = @Original_hp)) AND ((@IsNull_place = 1 AND [place] IS NULL) OR ([place] = @Original_place)) AND ((@IsNull_ads_employNo = 1 AND [ads_employNo] IS NULL) OR ([ads_employNo] = @Original_ads_employNo)) AND ((@IsNull_ads_title = 1 AND [ads_title] IS NULL) OR ([ads_title] = @Original_ads_title)) AND ((@IsNull_ads_created = 1 AND [ads_created] IS NULL) OR ([ads_created] = @Original_ads_created)) AND ((@IsNull_memo = 1 AND [memo] IS NULL) OR ([memo] = @Original_memo)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate))</CommandText>
|
||||
@@ -187,8 +187,8 @@ SELECT id, password, nameE, name, dept, grade, email, level, indate, outdate, te
|
||||
</InsertCommand>
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>SELECT Users.*
|
||||
FROM Users</CommandText>
|
||||
<CommandText>SELECT id, gcode, password, nameE, name, dept, grade, email, level, indate, outdate, tel, hp, place, ads_employNo, ads_title, ads_created, memo, wuid, wdate, processs
|
||||
FROM Users WITH (nolock)</CommandText>
|
||||
<Parameters />
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
@@ -276,12 +276,20 @@ SELECT id, password, nameE, name, dept, grade, email, level, indate, outdate, te
|
||||
<Mapping SourceColumn="memo" DataSetColumn="memo" />
|
||||
<Mapping SourceColumn="wuid" DataSetColumn="wuid" />
|
||||
<Mapping SourceColumn="wdate" DataSetColumn="wdate" />
|
||||
<Mapping SourceColumn="gcode" DataSetColumn="gcode" />
|
||||
<Mapping SourceColumn="processs" DataSetColumn="processs" />
|
||||
</Mappings>
|
||||
<Sources>
|
||||
<DbSource ConnectionRef="gwcs (Settings)" DbObjectName="EE.dbo.Users" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillBySearch" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetBySearch" GeneratorSourceName="FillBySearch" GetMethodModifier="Public" GetMethodName="GetBySearch" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetBySearch" UserSourceName="FillBySearch">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>SELECT ads_created, ads_employNo, ads_title, dept, email, gcode, grade, hp, id, indate, level, memo, name, nameE, outdate, password, place, processs, tel, wdate, wuid FROM Users WHERE (ISNULL(nameE, N'') LIKE @search) OR (ISNULL(name, N'') LIKE @search) OR (ISNULL(dept, N'') LIKE @search) OR (ISNULL(email, '') LIKE @search) ORDER BY dept, name, email</CommandText>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="true">
|
||||
<CommandText>SELECT ads_created, ads_employNo, ads_title, dept, email, gcode, grade, hp, id, indate, level, memo, name, nameE, outdate, password, place, processs, tel, wdate, wuid
|
||||
FROM Users WITH (nolock)
|
||||
WHERE (ISNULL(nameE, N'') LIKE @search) OR
|
||||
(ISNULL(name, N'') LIKE @search) OR
|
||||
(ISNULL(dept, N'') LIKE @search) OR
|
||||
(ISNULL(email, '') LIKE @search)
|
||||
ORDER BY dept, name, email</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="search" ColumnName="" DataSourceName="" DataTypeServer="unknown" DbType="String" Direction="Input" ParameterName="@search" Precision="0" Scale="0" Size="1024" SourceColumn="" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
@@ -356,7 +364,7 @@ SELECT idx, [user], gcode, purchase, holyday, project, jobreport, savecost, sche
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>SELECT idx, [user], gcode, purchase, holyday, project, jobreport, savecost, scheapp, equipment, kusul, otconfirm, kuntae, holyreq, account, purchaseEB
|
||||
FROM Auth
|
||||
FROM Auth WITH (nolock)
|
||||
WHERE (gcode = @gcode)
|
||||
ORDER BY [user]</CommandText>
|
||||
<Parameters>
|
||||
@@ -414,7 +422,7 @@ SELECT idx, [user], gcode, purchase, holyday, project, jobreport, savecost, sche
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_account" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="account" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_purchaseEB" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="purchaseEB" SourceColumnNullMapping="true" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_purchaseEB" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="purchaseEB" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="idx" ColumnName="idx" DataSourceName="EE.dbo.Auth" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@idx" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="idx" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="idx" ColumnName="idx" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@idx" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="idx" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</UpdateCommand>
|
||||
@@ -445,13 +453,13 @@ SELECT idx, [user], gcode, purchase, holyday, project, jobreport, savecost, sche
|
||||
</DataSource>
|
||||
</xs:appinfo>
|
||||
</xs:annotation>
|
||||
<xs:element name="DSUser" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true" msprop:Generator_UserDSName="DSUser" msprop:Generator_DataSetName="DSUser">
|
||||
<xs:element name="DSUser" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:Generator_UserDSName="DSUser" msprop:EnableTableAdapterManager="true" msprop:Generator_DataSetName="DSUser">
|
||||
<xs:complexType>
|
||||
<xs:choice minOccurs="0" maxOccurs="unbounded">
|
||||
<xs:element name="UserGroup" msprop:Generator_RowEvHandlerName="UserGroupRowChangeEventHandler" msprop:Generator_RowDeletedName="UserGroupRowDeleted" msprop:Generator_RowDeletingName="UserGroupRowDeleting" msprop:Generator_RowEvArgName="UserGroupRowChangeEvent" msprop:Generator_TablePropName="UserGroup" msprop:Generator_RowChangedName="UserGroupRowChanged" msprop:Generator_RowChangingName="UserGroupRowChanging" msprop:Generator_TableClassName="UserGroupDataTable" msprop:Generator_RowClassName="UserGroupRow" msprop:Generator_TableVarName="tableUserGroup" msprop:Generator_UserTableName="UserGroup">
|
||||
<xs:element name="UserGroup" msprop:Generator_RowClassName="UserGroupRow" msprop:Generator_RowEvHandlerName="UserGroupRowChangeEventHandler" msprop:Generator_RowDeletedName="UserGroupRowDeleted" msprop:Generator_RowDeletingName="UserGroupRowDeleting" msprop:Generator_RowEvArgName="UserGroupRowChangeEvent" msprop:Generator_TablePropName="UserGroup" msprop:Generator_RowChangedName="UserGroupRowChanged" msprop:Generator_UserTableName="UserGroup" msprop:Generator_RowChangingName="UserGroupRowChanging" msprop:Generator_TableClassName="UserGroupDataTable" msprop:Generator_TableVarName="tableUserGroup">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="dept" msprop:Generator_ColumnPropNameInRow="dept" msprop:Generator_ColumnPropNameInTable="deptColumn" msprop:Generator_ColumnVarNameInTable="columndept" msprop:Generator_UserColumnName="dept">
|
||||
<xs:element name="dept" msprop:Generator_UserColumnName="dept" msprop:Generator_ColumnPropNameInTable="deptColumn" msprop:Generator_ColumnPropNameInRow="dept" msprop:Generator_ColumnVarNameInTable="columndept">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="100" />
|
||||
@@ -492,10 +500,10 @@ SELECT idx, [user], gcode, purchase, holyday, project, jobreport, savecost, sche
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="Users" msprop:Generator_RowEvHandlerName="UsersRowChangeEventHandler" msprop:Generator_RowDeletedName="UsersRowDeleted" msprop:Generator_RowDeletingName="UsersRowDeleting" msprop:Generator_RowEvArgName="UsersRowChangeEvent" msprop:Generator_TablePropName="Users" msprop:Generator_RowChangedName="UsersRowChanged" msprop:Generator_RowChangingName="UsersRowChanging" msprop:Generator_TableClassName="UsersDataTable" msprop:Generator_RowClassName="UsersRow" msprop:Generator_TableVarName="tableUsers" msprop:Generator_UserTableName="Users">
|
||||
<xs:element name="Users" msprop:Generator_RowClassName="UsersRow" msprop:Generator_RowEvHandlerName="UsersRowChangeEventHandler" msprop:Generator_RowDeletedName="UsersRowDeleted" msprop:Generator_RowDeletingName="UsersRowDeleting" msprop:Generator_RowEvArgName="UsersRowChangeEvent" msprop:Generator_TablePropName="Users" msprop:Generator_RowChangedName="UsersRowChanged" msprop:Generator_UserTableName="Users" msprop:Generator_RowChangingName="UsersRowChanging" msprop:Generator_TableClassName="UsersDataTable" msprop:Generator_TableVarName="tableUsers">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="id" msprop:Generator_ColumnPropNameInRow="id" msprop:Generator_ColumnPropNameInTable="idColumn" msprop:Generator_ColumnVarNameInTable="columnid" msprop:Generator_UserColumnName="id">
|
||||
<xs:element name="id" msprop:Generator_UserColumnName="id" msprop:Generator_ColumnPropNameInTable="idColumn" msprop:Generator_ColumnPropNameInRow="id" msprop:Generator_ColumnVarNameInTable="columnid">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="20" />
|
||||
@@ -615,14 +623,28 @@ SELECT idx, [user], gcode, purchase, holyday, project, jobreport, savecost, sche
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="wdate" msprop:Generator_ColumnPropNameInRow="wdate" msprop:Generator_ColumnPropNameInTable="wdateColumn" msprop:Generator_ColumnVarNameInTable="columnwdate" msprop:Generator_UserColumnName="wdate" type="xs:dateTime" />
|
||||
<xs:element name="wdate" msprop:Generator_UserColumnName="wdate" msprop:Generator_ColumnPropNameInTable="wdateColumn" msprop:Generator_ColumnPropNameInRow="wdate" msprop:Generator_ColumnVarNameInTable="columnwdate" type="xs:dateTime" />
|
||||
<xs:element name="gcode" msprop:Generator_ColumnPropNameInRow="gcode" msprop:Generator_ColumnPropNameInTable="gcodeColumn" msprop:Generator_ColumnVarNameInTable="columngcode" msprop:Generator_UserColumnName="gcode" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="10" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="processs" msprop:Generator_ColumnPropNameInRow="processs" msprop:Generator_ColumnPropNameInTable="processsColumn" msprop:Generator_ColumnVarNameInTable="columnprocesss" msprop:Generator_UserColumnName="processs" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="100" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="Auth" msprop:Generator_RowEvHandlerName="AuthRowChangeEventHandler" msprop:Generator_RowDeletedName="AuthRowDeleted" msprop:Generator_RowDeletingName="AuthRowDeleting" msprop:Generator_RowEvArgName="AuthRowChangeEvent" msprop:Generator_TablePropName="Auth" msprop:Generator_RowChangedName="AuthRowChanged" msprop:Generator_RowChangingName="AuthRowChanging" msprop:Generator_TableClassName="AuthDataTable" msprop:Generator_RowClassName="AuthRow" msprop:Generator_TableVarName="tableAuth" msprop:Generator_UserTableName="Auth">
|
||||
<xs:element name="Auth" msprop:Generator_RowClassName="AuthRow" msprop:Generator_RowEvHandlerName="AuthRowChangeEventHandler" msprop:Generator_RowDeletedName="AuthRowDeleted" msprop:Generator_RowDeletingName="AuthRowDeleting" msprop:Generator_RowEvArgName="AuthRowChangeEvent" msprop:Generator_TablePropName="Auth" msprop:Generator_RowChangedName="AuthRowChanged" msprop:Generator_UserTableName="Auth" msprop:Generator_RowChangingName="AuthRowChanging" msprop:Generator_TableClassName="AuthDataTable" msprop:Generator_TableVarName="tableAuth">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="idx" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnPropNameInRow="idx" msprop:Generator_ColumnPropNameInTable="idxColumn" msprop:Generator_ColumnVarNameInTable="columnidx" msprop:Generator_UserColumnName="idx" type="xs:int" />
|
||||
<xs:element name="idx" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_UserColumnName="idx" msprop:Generator_ColumnPropNameInTable="idxColumn" msprop:Generator_ColumnPropNameInRow="idx" msprop:Generator_ColumnVarNameInTable="columnidx" type="xs:int" />
|
||||
<xs:element name="user" msprop:Generator_ColumnPropNameInTable="userColumn" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInRow="user" msprop:Generator_UserColumnName="user" msprop:Generator_ColumnVarNameInTable="columnuser" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
@@ -649,7 +671,7 @@ SELECT idx, [user], gcode, purchase, holyday, project, jobreport, savecost, sche
|
||||
<xs:element name="kuntae" msprop:Generator_ColumnPropNameInTable="kuntaeColumn" msprop:nullValue="0" msprop:Generator_ColumnPropNameInRow="kuntae" msprop:Generator_UserColumnName="kuntae" msprop:Generator_ColumnVarNameInTable="columnkuntae" type="xs:int" minOccurs="0" />
|
||||
<xs:element name="holyreq" msprop:Generator_ColumnPropNameInTable="holyreqColumn" msprop:nullValue="0" msprop:Generator_ColumnPropNameInRow="holyreq" msprop:Generator_UserColumnName="holyreq" msprop:Generator_ColumnVarNameInTable="columnholyreq" type="xs:int" minOccurs="0" />
|
||||
<xs:element name="account" msprop:Generator_ColumnPropNameInTable="accountColumn" msprop:nullValue="0" msprop:Generator_ColumnPropNameInRow="account" msprop:Generator_UserColumnName="account" msprop:Generator_ColumnVarNameInTable="columnaccount" type="xs:int" minOccurs="0" />
|
||||
<xs:element name="purchaseEB" msprop:nullValue="0" msprop:Generator_ColumnPropNameInTable="purchaseEBColumn" msprop:Generator_ColumnVarNameInTable="columnpurchaseEB" msprop:Generator_UserColumnName="purchaseEB" msprop:Generator_ColumnPropNameInRow="purchaseEB" type="xs:int" minOccurs="0" />
|
||||
<xs:element name="purchaseEB" msprop:Generator_ColumnPropNameInTable="purchaseEBColumn" msprop:nullValue="0" msprop:Generator_ColumnPropNameInRow="purchaseEB" msprop:Generator_UserColumnName="purchaseEB" msprop:Generator_ColumnVarNameInTable="columnpurchaseEB" type="xs:int" minOccurs="0" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
Reference in New Issue
Block a user