Code Monkey home page Code Monkey logo

Comments (5)

tgspacelabs avatar tgspacelabs commented on July 23, 2024

I got the same error on one job execution.

from tigertoolbox.

gkieffer83 avatar gkieffer83 commented on July 23, 2024

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.

DiHo78 avatar DiHo78 commented on July 23, 2024

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.

savjani-zz avatar savjani-zz commented on July 23, 2024

I have merged @gkieffer83 proposed change in the solution which should avoid this issue in future.

from tigertoolbox.

DiHo78 avatar DiHo78 commented on July 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.