49 references to Number
System.Activities.DurableInstancing (7)
System\Activities\DurableInstancing\SqlCommandAsyncResult.cs (6)
161
TD.SqlExceptionCaught(this.eventTraceActivity, exception.
Number
.ToString(CultureInfo.InvariantCulture), exception.Message);
177
if (this.CheckRetryCountAndTimer() && ShouldRetryForSqlError(exception.
Number
, RetryErrorOptions.RetryOnEnd))
183
TD.RetryingSqlCommandDueToSqlError(this.eventTraceActivity, exception.
Number
.ToString(CultureInfo.InvariantCulture));
295
TD.SqlExceptionCaught(this.eventTraceActivity, exception.
Number
.ToString(null, CultureInfo.InvariantCulture), exception.Message);
303
if (!this.CheckRetryCount() || !ShouldRetryForSqlError(exception.
Number
, RetryErrorOptions.RetryOnBegin))
310
TD.RetryingSqlCommandDueToSqlError(this.eventTraceActivity, exception.
Number
.ToString(CultureInfo.InvariantCulture));
System\Activities\DurableInstancing\TestVersionAndRunAsyncResult.cs (1)
103
if (se != null && se.
Number
== 2812)
System.Data (12)
fx\src\data\System\Data\SqlClient\SqlCommand.cs (7)
1148
sqlExceptionNumber = ex.
Number
;
1203
sqlExceptionNumber = ex.
Number
;
1477
sqlExceptionNumber = e.
Number
;
1717
sqlExceptionNumber = ex.
Number
;
1900
sqlExceptionNumber = e.
Number
;
2041
sqlExceptionNumber = e.
Number
;
2108
sqlExceptionNumber = e.
Number
;
fx\src\data\System\Data\SqlClient\SqlException.cs (2)
114
if (
Number
!= 0) {
116
sb.AppendFormat(SQLMessage.ExErrorNumberStateClass(),
Number
, State, Class);
fx\src\data\System\Data\SqlClient\SqlInternalConnectionTds.cs (3)
1448
return (TdsEnums.LOGON_FAILED == exc.
Number
) // actual logon failed, i.e. bad password
1449
|| (TdsEnums.PASSWORD_EXPIRED == exc.
Number
) // actual logon failed, i.e. password isExpired
1450
|| (TdsEnums.IMPERSONATION_FAILED == exc.
Number
) // Insuficient privelege for named pipe, among others
System.Web (28)
Cache\SqlCacheDependency.cs (10)
919
"\nNumber=" + sqlExpt.
Number
);
921
dbState._pollSqlError = sqlExpt.
Number
;
1558
"\nNumber=" + sqlExpt.
Number
);
1560
if (sqlExpt.
Number
== SqlCacheDependencyManager.SQL_EXCEPTION_SP_NOT_FOUND) {
1584
else if (sqlExpt.
Number
== SqlCacheDependencyManager.SQL_EXCEPTION_PERMISSION_DENIED_ON_OBJECT ||
1585
sqlExpt.
Number
== SqlCacheDependencyManager.SQL_EXCEPTION_PERMISSION_DENIED_ON_DATABASE ||
1586
sqlExpt.
Number
== SqlCacheDependencyManager.SQL_EXCEPTION_PERMISSION_DENIED_ON_USER ||
1587
sqlExpt.
Number
== SqlCacheDependencyManager.SQL_EXCEPTION_NO_GRANT_PERMISSION) {
1616
else if (sqlExpt.
Number
== SqlCacheDependencyManager.SQL_EXCEPTION_ADHOC &&
1704
sqlExpt.
Number
== SqlCacheDependencyManager.SQL_EXCEPTION_SP_NOT_FOUND) {
Management\SqlServices.cs (4)
450
"\nNumber=" + sqlExpt.
Number
);
468
if (sqlExpt.
Number
== expectedError) {
474
file, sqlExpt.
Number
.ToString(CultureInfo.CurrentCulture), sqlExpt.Message),
616
if (e.
Number
!= 2812)
Security\SQLMembershipProvider.cs (3)
387
if (sqlEx.
Number
== 2627 || sqlEx.
Number
== 2601 || sqlEx.
Number
== 2512) {
State\sqlstateclientmanager.cs (6)
792
ex.
Number
== SQL_ERROR_PRIMARY_KEY_VIOLATION &&
817
ex.
Number
== SQL_CANNOT_OPEN_DATABASE_FOR_LOGIN ||
818
ex.
Number
== SQL_TIMEOUT_EXPIRED)) {
1203
(e.
Number
== SQL_LOGIN_FAILED ||
1204
e.
Number
== SQL_LOGIN_FAILED_2 ||
1205
e.
Number
== SQL_LOGIN_FAILED_3))
UI\WebControls\SqlDataSourceView.cs (2)
681
if ((sqlException.
Number
== MustDeclareVariableSqlExceptionNumber) ||
682
(sqlException.
Number
== ProcedureExpectsParameterSqlExceptionNumber)) {
UI\WebParts\SqlPersonalizationProvider.cs (3)
946
if (userName != null && (sqlEx.
Number
== 2627 || sqlEx.
Number
== 2601 || sqlEx.
Number
== 2512)) {
System.Workflow.Runtime (2)
Hosting\SqlWorkflowPersistenceService.cs (1)
1138
if (se.
Number
== _deadlock)
Tracking\SqlTrackingWorkflowInstance.cs (1)
829
if ((_deadlock == se.
Number
) && (++count < _retries))