Comments (5)
I got the same error on one job execution.
from tigertoolbox.
The following fixed it for me:
This is due to CONVERT(money,ct2.[output]) in [dbo].[spGetPerfCountersFromPowerShell].
Replacing this by CONVERT(varchar(20),ct2.[output]) seems to do the job.
from tigertoolbox.
Hi all,
I've made a different change to the sproc to avoid subsequent conversion errors in the additional Reports.
So I'll work now with
SELECT REPLACE(REPLACE(REPLACE(ct.[output],'\'+@@ServerName+'',''),' :',''),'sqlserver:','')[CounterName] , convert(money,replace(ct2.output,',','.')) [CounterValue], GETDATE() [DateSampled]
from tigertoolbox.
I have merged @gkieffer83 proposed change in the solution which should avoid this issue in future.
from tigertoolbox.
Hello savjani,
I am not sure if converting to varchar is the final solution. You'll probably save unwanted values in the dba_local db. Sometimes you'll get a value with a negative Exponent back from the Performance Counters.
Then you'll have some entries with e-5 in it. This will definitely lead to new problems in the reports.
So I stick to the solution to replace a comma with a dot. Sometimes the Collector Job still Fails with Cannot convert a char value to money. The char value has incorrect Syntax but I do not have faulty values in the dba_local.
I already ran into repprting problems when I just used the convert to varchar method.
https://dirkhondong.wordpress.com/2017/04/26/sql-server-baseline-reports-perfmon-counter-collection-job-schlgt-fehl/
from tigertoolbox.
Related Issues (20)
- DB_NAME(@dbID) returns Null HOT 1
- Executing usp_AdaptiveIndexDefrag in a Azure Data Factory (ADF) activity
- This repo is missing important files HOT 1
- Running AdaptiveIndexDefrag on AWS RDS SQL Server
- Error to execute the script when default trace file is being written
- Columnstore Reorganize Option
- Run for a specific schema
- @sqlcmdRI variable short.
- Is 'optimize for ad hoc workloads'=ON still recommended?
- usp_AdaptiveIndexDefrag: incorrect duplicate objectId/objectName logged in tbl_AdaptiveIndexDefrag_log
- Index-Information - KeyCols_data_length_bytes also aggregates for included columns HOT 1
- Check_BP_Servers is not returning the correct information for SQL Server services account.
- Must declare the scalar variable "@sql"
- view_IndexCreation.sql has extra close bracket
- Guidance on running `3_job_AdaptiveIndexDefrag` on Azure SQL
- ChangeTrackingCleanup.sql doesn't work, it deletes nothing
- Fixing-VLFs accurate to 73728MB only
- AWS RDS instance limitations
- Arithmetic overflows in view_IndexInformation_CurrentDB; No data output HOT 1
- Cannot insert the value NULL into column 'CounterName', table 'dba_local.dbo.PerformanceCounter'; column does not allow nulls
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 tigertoolbox.