1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386
|
<?xml version="1.0" encoding="utf-8"?>
<Type Name="SqlError" FullName="System.Data.SqlClient.SqlError">
<TypeSignature Language="C#" Value="public sealed class SqlError" Maintainer="auto" />
<AssemblyInfo>
<AssemblyName>System.Data</AssemblyName>
<AssemblyPublicKey>[00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00]</AssemblyPublicKey>
<AssemblyVersion>1.0.3300.0</AssemblyVersion>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ThreadSafetyStatement>Gtk# is thread aware, but not thread safe; See the <link location="node:gtk-sharp/programming/threads">Gtk# Thread Programming</link> for details.</ThreadSafetyStatement>
<Base>
<BaseTypeName>System.Object</BaseTypeName>
</Base>
<Interfaces />
<Docs>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>This class is created by the .NET Framework Data Provider for SQL Server when an error occurs. An instance of <see cref="T:System.Data.SqlClient.SqlError" /> is created and managed by the <see cref="T:System.Data.SqlClient.SqlErrorCollection" />, which in turn is created by the <see cref="T:System.Data.SqlClient.SqlException" /> class.</para>
<para>Messages with a severity level of 10 or less are informational and indicate problems caused by mistakes in information that a user has entered. Severity levels from 11 through 16 are generated by the user, and can be corrected by the user. Severity levels from 17 through 25 indicate software or hardware errors. When a level 17, 18, or 19 error occurs, you can continue working, although you might not be able to execute a particular statement.</para>
<para>The <see cref="T:System.Data.SqlClient.SqlConnection" /> remains open when the severity level is 19 or less. When the severity level is 20 or greater, the server usually closes the <see cref="T:System.Data.SqlClient.SqlConnection" />. However, the user can reopen the connection and continue. In both cases, a <see cref="T:System.Data.SqlClient.SqlException" /> is generated by the method executing the command.</para>
<para>For more information on errors generated by ssNoVersion, see <see cref="http://msdn.microsoft.com/library/ms365262.aspx">Cause and Resolution of Database Engine Errors</see>. For more information about severity levels, see <see cref="http://msdn.microsoft.com/en-us/library/ms164086.aspx">Database Engine Error Severities</see>.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Collects information relevant to a warning or error returned by SQL Server.</para>
</summary>
</Docs>
<Members>
<Member MemberName="Class">
<MemberSignature Language="C#" Value="public byte Class { get; }" />
<MemberType>Property</MemberType>
<ReturnValue>
<ReturnType>System.Byte</ReturnType>
</ReturnValue>
<Docs>
<value>To be added: an object of type 'byte'</value>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Messages with a severity level of 10 or less are informational and indicate problems caused by mistakes in information that a user has entered. Severity levels from 11 through 16 are generated by the user, and can be corrected by the user. Severity levels from 17 through 25 indicate software or hardware errors. When a level 17, 18, or 19 error occurs, you can continue working, although you might not be able to execute a particular statement.</para>
<para>The <see cref="T:System.Data.SqlClient.SqlConnection" /> remains open when the severity level is 19 or less. When the severity level is 20 or greater, the server usually closes the <see cref="T:System.Data.SqlClient.SqlConnection" />. However, the user can reopen the connection and continue. In both cases, a <see cref="T:System.Data.SqlClient.SqlException" /> is generated by the method executing the command.</para>
<para>For more information on errors generated by SQL Server, see SQL Server Books Online.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Gets the severity level of the error returned from SQL Server.</para>
</summary>
</Docs>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
</Member>
<Member MemberName="LineNumber">
<MemberSignature Language="C#" Value="public int LineNumber { get; }" />
<MemberType>Property</MemberType>
<ReturnValue>
<ReturnType>System.Int32</ReturnType>
</ReturnValue>
<Docs>
<value>To be added: an object of type 'int'</value>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Line numbering starts at 1. If the value is 0, the line number is not applicable.</para>
<para>For more information on errors generated by SQL Server, see SQL Server Books Online.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Gets the line number within the Transact-SQL command batch or stored procedure that contains the error.</para>
</summary>
</Docs>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
</Member>
<Member MemberName="Message">
<MemberSignature Language="C#" Value="public string Message { get; }" />
<MemberType>Property</MemberType>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Docs>
<value>To be added: an object of type 'string'</value>
<remarks>To be added</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Gets the text describing the error.</para>
</summary>
</Docs>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
</Member>
<Member MemberName="Number">
<MemberSignature Language="C#" Value="public int Number { get; }" />
<MemberType>Property</MemberType>
<ReturnValue>
<ReturnType>System.Int32</ReturnType>
</ReturnValue>
<Docs>
<value>To be added: an object of type 'int'</value>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The following table describes the possible values for this property:</para>
<list type="table">
<listheader>
<item>
<term>
<para>Source of Error</para>
</term>
<description>
<para>SqlError.Number</para>
</description>
<description>
<para>SqlError.State</para>
</description>
<description>
<para>SqlException has inner Win32Exception (beginning with.NET Framework 4.5)</para>
</description>
</item>
</listheader>
<item>
<term>
<para>Error from server</para>
</term>
<description>
<para>Server error code</para>
<para>This number corresponds to an entry in the master.dbo.sysmessages table.</para>
</description>
<description>
<para>Typically greater than 0</para>
</description>
<description>
<para>No</para>
</description>
</item>
<item>
<term>
<para>Connection timeout</para>
</term>
<description>
<para>-2</para>
</description>
<description>
<para>0</para>
</description>
<description>
<para>Yes (Number = 258)</para>
</description>
</item>
<item>
<term>
<para>Communication error (non-LocalDB)</para>
</term>
<description>
<para>Win32 error code</para>
</description>
<description>
<para>0</para>
</description>
<description>
<para>Yes (Number = Win32 error code)</para>
</description>
</item>
<item>
<term>
<para>Communication error (LocalDB)</para>
</term>
<description>
<para>Win32 error code</para>
</description>
<description>
<para>0</para>
</description>
<description>
<para>No</para>
</description>
</item>
<item>
<term>
<para>Encryption capability mismatch</para>
</term>
<description>
<para>20</para>
</description>
<description>
<para>0</para>
</description>
<description>
<para>No</para>
</description>
</item>
<item>
<term>
<para>Failed to start LocalDB</para>
</term>
<description>
<para>Win32 error code</para>
</description>
<description>
<para>0</para>
</description>
<description>
<para>No</para>
</description>
</item>
<item>
<term>
<para>Read-only routing failure</para>
</term>
<description>
<para>0</para>
</description>
<description>
<para>0</para>
</description>
<description>
<para>No</para>
</description>
</item>
<item>
<term>
<para>Server had severe error processing query</para>
</term>
<description>
<para>0</para>
</description>
<description>
<para>0</para>
</description>
<description>
<para>No</para>
</description>
</item>
<item>
<term>
<para>Processed cancellation while parsing results</para>
</term>
<description>
<para>0</para>
</description>
<description>
<para>0</para>
</description>
<description>
<para>No</para>
</description>
</item>
<item>
<term>
<para>Failed to create user instance</para>
</term>
<description>
<para>0</para>
</description>
<description>
<para>0</para>
</description>
<description>
<para>No</para>
</description>
</item>
</list>
<para>For more information on errors generated by SQL Server, see SQL Server Books Online.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Gets a number that identifies the type of error.</para>
</summary>
</Docs>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
</Member>
<Member MemberName="Procedure">
<MemberSignature Language="C#" Value="public string Procedure { get; }" />
<MemberType>Property</MemberType>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Docs>
<value>To be added: an object of type 'string'</value>
<remarks>To be added</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Gets the name of the stored procedure or remote procedure call (RPC) that generated the error.</para>
</summary>
</Docs>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
</Member>
<Member MemberName="Server">
<MemberSignature Language="C#" Value="public string Server { get; }" />
<MemberType>Property</MemberType>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Docs>
<value>To be added: an object of type 'string'</value>
<remarks>To be added</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Gets the name of the instance of SQL Server that generated the error.</para>
</summary>
</Docs>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
</Member>
<Member MemberName="Source">
<MemberSignature Language="C#" Value="public string Source { get; }" />
<MemberType>Property</MemberType>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Docs>
<value>To be added: an object of type 'string'</value>
<remarks>To be added</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Gets the name of the provider that generated the error.</para>
</summary>
</Docs>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
</Member>
<Member MemberName="State">
<MemberSignature Language="C#" Value="public byte State { get; }" />
<MemberType>Property</MemberType>
<ReturnValue>
<ReturnType>System.Byte</ReturnType>
</ReturnValue>
<Docs>
<value>To be added: an object of type 'byte'</value>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>State is only set for errors that are received from the server.</para>
<para>For more information on errors generated by ssNoVersion, see <see cref="http://msdn.microsoft.com/library/ms165761.aspx">Understanding Database Engine Errors</see>.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Some error messages can be raised at multiple points in the code for the Database Engine. For example, an 1105 error can be raised for several different conditions. Each specific condition that raises an error assigns a unique state code.</para>
</summary>
</Docs>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
</Member>
<Member MemberName="ToString">
<MemberSignature Language="C#" Value="public override string ToString ();" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The string is in the form "SqlError:", followed by the <see cref="P:System.Data.SqlClient.SqlError.Message" />, and the stack trace. For example: </para>
<para>SqlError:UserId or Password not valid. <stack trace> </para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Gets the complete text of the error message.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The complete text of the error.</para>
</returns>
</Docs>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
</Member>
</Members>
</Type>
|