Comments (9)
Update: In the repository database the sqlwatch_logger_xes_query_processing-table doesn't show entries for this partical instance.
But...
So, there was another sql_instance with particular data with exactly the same timestamp.
That must be causing this. Do we need a modification of the index. With multiple instances events can occur at exactly the same time.
from sqlwatch.
Continue:
I tried issuing this on the repository-database:
update sqlwatch_logger_xes_query_processing set event_time='2022-01-27 19:26:49.136' where event_time='2022-01-27 19:26:49.137'
This results in 1 row affected and committed, but when querying again it still shows the old value.
So tried it on the server which can't pass the information but this results in the same.
As the information is not that important I did a delete of the culprit on the server with problems and ran SQLWatchimport again, and this time it complains about the next entry in the table with the timestamp 5 minutes later.
Next step:
Now no errors on this table anymore. But the next table :
2022-02-01 17:43:52.170 ERROR Failed to merge table "[server0978].dbo.sqlwatch_logger_xes_iosubsystem"
at Cannot insert duplicate key row in object 'dbo.sqlwatch_logger_xes_iosubsystem' with unique index 'idx_sqlwatch_xes_iosubsystem_event_time'. The duplicate key value is (Jan 27 2022 7:26PM).
;merge dbo.sqlwatch_logger_xes_iosubsystem as target
using (
select s.* from [#dbo.sqlwatch_logger_xes_iosubsystem] s
inner join dbo.sqlwatch_logger_snapshot_header h
on s.[snapshot_time] = h.[snapshot_time]
and s.[snapshot_type_id] = h.[snapshot_type_id]
and s.[sql_instance] = h.[sql_instance]) as source
on (source.[snapshot_time] = target.[snapshot_time] and source.[snapshot_type_id] = target.[snapshot_type_id] and source.[sql_instance] = target.[sql_instance] and source.[event_time] = target.[event_time])
when not matched
then insert ([event_time],[io_latch_timeouts],[total_long_ios],[longest_pending_request_file],[longest_pending_request_duration],[snapshot_time],[snapshot_type_id],[sql_instance])
values (source.[event_time],source.[io_latch_timeouts],source.[total_long_ios],source.[longest_pending_request_file],source.[longest_pending_request_duration],source.[snapshot_time],source.[snapshot_type_id],source.[sql_instance]);
Another index modification:
This time Sqlwatchimport.exe completes without errors:
from sqlwatch.
Update: I'm moving stuff from DickUMCG to my other account and will close the other one. Inconvenient to use 2 accounts. Forked repository has also been transferred.
from sqlwatch.
Another thing. Discovered now that in the repository database there were about 170 tables named _DUMP_20220201_timestamp_server_tablename . Had to remove those manually (fortunately with one statement :-) ).
from sqlwatch.
This has already been explained in: #394 (comment)
from sqlwatch.
@marcingminski but shouldn't the index-definitions be changed to prevent this?
from sqlwatch.
To prevent errors? Are those errors caused by the index?
from sqlwatch.
Yep. As event_time might be the same for more sql_instances.
from sqlwatch.
Made a new pullrequest to remove some typos
from sqlwatch.
Related Issues (20)
- Visual Studio version and project compatibility. HOT 5
- Is this project still alive? HOT 3
- SQLWATCH 4.3 - Power BI Report failing to run against Central Database, Grafana works fine.
- SQLWATCH 4.3: Is [dbo].[sqlwatch_config_snapshot_type].[collect] working? HOT 1
- SQLWATCH 4.3: usp_sqlwatch_logger_disk_utilisation: sp_spaceused returns non-numeric data HOT 2
- Invalid unused measure in Power BI report
- SQL-Watch does not count secondary not readable replicas HOT 3
- Grafana-Dashboard does not show the correct Database-Count HOT 4
- Grafana SQL Instance Overview Dashboards produce errors on certain metrics.
- SQLWATCH 4.5 XES "SQLWATCH_query_problems" slows performance of database creation HOT 12
- error with SQLwatchImport HOT 5
- missing file HOT 1
- Incredible High Waits on Always on Cluster HOT 2
- Older files in the latest release
- dbatools install broken on some Standard Edition HOT 1
- SQLwatch on RDS HOT 5
- SQLWATCH-LOGGER-PERFORMANCE job doesn't work if SQL Server uses binary collation
- Long Queries Stops Collecting Randomly HOT 1
- New dashboards HOT 1
- sqlserver.optimizer_timeout" is invalid or the object cannot be found
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sqlwatch.