sync
This commit is contained in:
Binary file not shown.
@@ -0,0 +1,22 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# SQL Server Management Studio Solution File, Format Version 18.00
|
||||
VisualStudioVersion = 15.0.28307.421
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{4F2E2C19-372F-40D8-9FA7-9D2138C6997A}") = "OCTPDBA-512 - connections issues", "OCTPDBA-512 - connections issues.ssmssqlproj", "{41C5DF07-51DF-4DB7-8AAC-8DCB2C4AA6BB}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Default|Default = Default|Default
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{41C5DF07-51DF-4DB7-8AAC-8DCB2C4AA6BB}.Default|Default.ActiveCfg = Default
|
||||
{A506E95A-4A86-4621-BE53-67AF3BCAAD2F}.Default|Default.ActiveCfg = Default
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {031F148C-E5D3-4F17-B5D1-E98403BD9E44}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
@@ -0,0 +1,82 @@
|
||||
<?xml version="1.0"?>
|
||||
<SqlWorkbenchSqlProject xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Name="OCTPDBA-512 - connections issues">
|
||||
<Items>
|
||||
<LogicalFolder Name="Connections" Type="2" Sorted="true">
|
||||
<Items>
|
||||
<ConnectionNode Name="ama219aps:CENTRALINFRA\ua208700">
|
||||
<Created>2023-03-07T15:47:22.1919172+01:00</Created>
|
||||
<Type>SQL</Type>
|
||||
<Server>ama219aps</Server>
|
||||
<UserName />
|
||||
<Authentication>Windows Authentication</Authentication>
|
||||
<InitialDB>master</InitialDB>
|
||||
<LoginTimeout>30</LoginTimeout>
|
||||
<ExecutionTimeout>0</ExecutionTimeout>
|
||||
<ConnectionProtocol>NotSpecified</ConnectionProtocol>
|
||||
<ApplicationName>Microsoft SQL Server Management Studio - Query</ApplicationName>
|
||||
</ConnectionNode>
|
||||
<ConnectionNode Name="ama274aps:CENTRALINFRA\ua208700">
|
||||
<Created>2023-03-03T15:56:26.9023973+01:00</Created>
|
||||
<Type>SQL</Type>
|
||||
<Server>ama274aps</Server>
|
||||
<UserName />
|
||||
<Authentication>Windows Authentication</Authentication>
|
||||
<InitialDB>master</InitialDB>
|
||||
<LoginTimeout>30</LoginTimeout>
|
||||
<ExecutionTimeout>0</ExecutionTimeout>
|
||||
<ConnectionProtocol>NotSpecified</ConnectionProtocol>
|
||||
<ApplicationName>Microsoft SQL Server Management Studio - Query</ApplicationName>
|
||||
</ConnectionNode>
|
||||
<ConnectionNode Name="cvi817aps:CENTRALINFRA\ua208700">
|
||||
<Created>2023-03-03T15:56:52.8153226+01:00</Created>
|
||||
<Type>SQL</Type>
|
||||
<Server>cvi817aps</Server>
|
||||
<UserName />
|
||||
<Authentication>Windows Authentication</Authentication>
|
||||
<InitialDB />
|
||||
<LoginTimeout>30</LoginTimeout>
|
||||
<ExecutionTimeout>0</ExecutionTimeout>
|
||||
<ConnectionProtocol>NotSpecified</ConnectionProtocol>
|
||||
<ApplicationName />
|
||||
</ConnectionNode>
|
||||
<ConnectionNode Name="sun511aps:CENTRALINFRA\ua208700">
|
||||
<Created>2023-03-03T15:57:00.7172505+01:00</Created>
|
||||
<Type>SQL</Type>
|
||||
<Server>sun511aps</Server>
|
||||
<UserName />
|
||||
<Authentication>Windows Authentication</Authentication>
|
||||
<InitialDB />
|
||||
<LoginTimeout>30</LoginTimeout>
|
||||
<ExecutionTimeout>0</ExecutionTimeout>
|
||||
<ConnectionProtocol>NotSpecified</ConnectionProtocol>
|
||||
<ApplicationName />
|
||||
</ConnectionNode>
|
||||
</Items>
|
||||
</LogicalFolder>
|
||||
<LogicalFolder Name="Queries" Type="0" Sorted="true">
|
||||
<Items>
|
||||
<FileNode Name="extended event session.sql">
|
||||
<AssociatedConnectionMoniker>8c91a03d-f9b4-46c0-a305-b5dcc79ff907:ama274aps:True</AssociatedConnectionMoniker>
|
||||
<AssociatedConnSrvName>ama274aps</AssociatedConnSrvName>
|
||||
<AssociatedConnUserName />
|
||||
<FullPath>extended event session.sql</FullPath>
|
||||
</FileNode>
|
||||
<FileNode Name="SQLQuery1.sql">
|
||||
<AssociatedConnectionMoniker>8c91a03d-f9b4-46c0-a305-b5dcc79ff907:ama219aps:True</AssociatedConnectionMoniker>
|
||||
<AssociatedConnSrvName>ama219aps</AssociatedConnSrvName>
|
||||
<AssociatedConnUserName />
|
||||
<FullPath>SQLQuery1.sql</FullPath>
|
||||
</FileNode>
|
||||
<FileNode Name="trying to reproduce.sql">
|
||||
<AssociatedConnectionMoniker>8c91a03d-f9b4-46c0-a305-b5dcc79ff907:ama219aps:True</AssociatedConnectionMoniker>
|
||||
<AssociatedConnSrvName>ama219aps</AssociatedConnSrvName>
|
||||
<AssociatedConnUserName />
|
||||
<FullPath>trying to reproduce.sql</FullPath>
|
||||
</FileNode>
|
||||
</Items>
|
||||
</LogicalFolder>
|
||||
<LogicalFolder Name="Miscellaneous" Type="3" Sorted="true">
|
||||
<Items />
|
||||
</LogicalFolder>
|
||||
</Items>
|
||||
</SqlWorkbenchSqlProject>
|
||||
0
OCTPDBA-512 - connections issues/SQLQuery1.sql
Normal file
0
OCTPDBA-512 - connections issues/SQLQuery1.sql
Normal file
38
OCTPDBA-512 - connections issues/extended event session.sql
Normal file
38
OCTPDBA-512 - connections issues/extended event session.sql
Normal file
@@ -0,0 +1,38 @@
|
||||
|
||||
IF EXISTS(
|
||||
SELECT *
|
||||
FROM sys.dm_xe_sessions s
|
||||
WHERE s.name = 'tsc_octpdba-512'
|
||||
)
|
||||
BEGIN
|
||||
ALTER EVENT SESSION [tsc_octpdba-512] ON SERVER STATE = STOP;
|
||||
END
|
||||
|
||||
IF EXISTS(
|
||||
SELECT *
|
||||
FROM sys.server_event_sessions s
|
||||
WHERE s.name = 'tsc_octpdba-512'
|
||||
)
|
||||
BEGIN
|
||||
DROP EVENT SESSION [tsc_octpdba-512] ON SERVER;
|
||||
END
|
||||
GO
|
||||
|
||||
|
||||
|
||||
CREATE EVENT SESSION [tsc_octpdba-512] ON SERVER
|
||||
ADD EVENT sqlserver.connectivity_ring_buffer_recorded(
|
||||
ACTION(package0.last_error,sqlserver.client_app_name,sqlserver.client_connection_id,sqlserver.client_hostname,sqlserver.context_info,sqlserver.server_principal_name,sqlserver.session_id)),
|
||||
ADD EVENT sqlserver.dtc_transaction(
|
||||
ACTION(package0.last_error,sqlserver.client_app_name,sqlserver.client_hostname)),
|
||||
ADD EVENT sqlserver.errorlog_written(
|
||||
ACTION(package0.last_error,sqlserver.client_app_name,sqlserver.client_hostname)),
|
||||
ADD EVENT sqlserver.login(SET collect_options_text=(1)
|
||||
ACTION(package0.last_error,sqlserver.client_app_name,sqlserver.client_connection_id,sqlserver.client_hostname,sqlserver.context_info,sqlserver.server_instance_name,sqlserver.server_principal_name)),
|
||||
ADD EVENT sqlserver.logout(
|
||||
ACTION(package0.last_error,sqlserver.client_app_name,sqlserver.client_connection_id,sqlserver.client_hostname,sqlserver.context_info,sqlserver.server_instance_name,sqlserver.server_principal_name,sqlserver.session_id))
|
||||
ADD TARGET package0.event_file(SET filename=N'd:\tsc_octpdba-512')
|
||||
WITH (MAX_MEMORY=4096 KB,EVENT_RETENTION_MODE=ALLOW_SINGLE_EVENT_LOSS,MAX_DISPATCH_LATENCY=30 SECONDS,MAX_EVENT_SIZE=0 KB,MEMORY_PARTITION_MODE=NONE,TRACK_CAUSALITY=ON,STARTUP_STATE=ON)
|
||||
GO
|
||||
|
||||
ALTER EVENT SESSION [tsc_octpdba-512] ON SERVER STATE = START;
|
||||
30
OCTPDBA-512 - connections issues/trying to reproduce.sql
Normal file
30
OCTPDBA-512 - connections issues/trying to reproduce.sql
Normal file
@@ -0,0 +1,30 @@
|
||||
BEGIN TRANSACTION
|
||||
DECLARE @q NVARCHAR(MAX) ='
|
||||
begin transaction
|
||||
begin try
|
||||
print ''go!'';
|
||||
--waitfor delay ''00:01:15'';
|
||||
raiserror(''test'',20,1);
|
||||
end try
|
||||
begin catch
|
||||
print ''in catch''
|
||||
if @@trancount > 1 begin
|
||||
ROLLBACK TRANSACTION;
|
||||
print ''rollback!''
|
||||
end
|
||||
print ''exit catch''
|
||||
end catch
|
||||
rollback transaction;
|
||||
print ''done''
|
||||
'
|
||||
EXEC(@q) AT wam219a02
|
||||
ROLLBACK TRANSACTION
|
||||
|
||||
SELECT *
|
||||
FROM Arizona.INFORMATION_SCHEMA.TABLES t
|
||||
WHERE t.TABLE_NAME LIKE '%request%'
|
||||
|
||||
SELECT TOP 100 *
|
||||
FROM Arizona.wkl.OrderRequest
|
||||
WHERE CreatedOn BETWEEN '20230307 13:31:30' AND '20230307 13:33:00'
|
||||
ORDER BY OrderRequestId DESC
|
||||
Reference in New Issue
Block a user