Skip to content

Commit 4a2fbae

Browse files
authored
Remove SQL 2000 client-side debugging support (#2981)
1 parent 492d9c0 commit 4a2fbae

File tree

6 files changed

+45
-495
lines changed

6 files changed

+45
-495
lines changed

src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlConnection.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2307,13 +2307,6 @@ private static void ChangePassword(string connectionString, SqlConnectionString
23072307
SqlConnectionFactory.SingletonInstance.ClearPool(key);
23082308
}
23092309

2310-
//
2311-
// SQL DEBUGGING SUPPORT
2312-
//
2313-
2314-
// this only happens once per connection
2315-
// SxS: using named file mapping APIs
2316-
23172310
internal Task<T> RegisterForConnectionCloseNotification<T>(Task<T> outerTask, object value, int tag)
23182311
{
23192312
// Connection exists, schedule removal, will be added to ref collection after calling ValidateAndReconnect

src/Microsoft.Data.SqlClient/netfx/src/Microsoft.Data.SqlClient.csproj

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,6 @@
100100
</ItemGroup>
101101
<!-- Contains common items shared between NetFx and NetCore -->
102102
<ItemGroup>
103-
<Compile Include="$(CommonSourceRoot)Interop\Windows\AdvApi32\AdvApi32.netfx.cs">
104-
<Link>Interop\AdvApi32\AdvApi32.netfx.cs</Link>
105-
</Compile>
106103
<Compile Include="$(CommonSourceRoot)Interop\Windows\Kernel32\FileTypes.cs">
107104
<Link>Interop\Kernel32\FileTypes.cs</Link>
108105
</Compile>

src/Microsoft.Data.SqlClient/netfx/src/Microsoft/Data/SqlClient/SqlCommand.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5620,9 +5620,6 @@ private SqlDataReader RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavi
56205620
optionSettings = GetResetOptionsString(cmdBehavior);
56215621
}
56225622

5623-
// turn debugging on
5624-
_activeConnection.CheckSQLDebug();
5625-
56265623
// execute sp
56275624
Debug.Assert(_rpcArrayOf1[0] == rpc);
56285625
writeTask = _stateObj.Parser.TdsExecuteRPC(this, _rpcArrayOf1, timeout, inSchema, this.Notification, _stateObj, CommandType.StoredProcedure == CommandType, sync: !asyncWrite);

0 commit comments

Comments
 (0)