i am trying to to store some performance monitor counters into a SQl Server
Database (SQL 2005 Std, on a W2K3 cluster environment).
It seems to be working, using an ODBC Datasource with the SQLServer driver
(th native client is not compatible with an odbc feature according to a
message in the event viewer).
But, it cannot return on Physical Disk Queue Length. And the reason seams
quite simple : my server is French...thus there is a quote in "Longueur de
file d'attente", which produces this error. Same problem with any other
counter that includes a quote ' in its name.
And it doesn't seem that the performznce monitor sends tsql batch using
quotes, which would have help with the quoted_identifiers ON.
Do you have any work around for this problem ?
Thank you very much
X.M.
relog C:\Perflogs\YourTraceLogFile.blg -f SQL -o SQL:YourDSN!YourDescriptor
Type relog.exe /? for details on the commands.
--
Andrew J. Kelly SQL MVP
Solid Quality Mentors
"PetitGosaimass" <PetitGo...@discussions.microsoft.com> wrote in message
news:A61547C7-2655-4B44...@microsoft.com...
thank you for this answer.
Yes, I log striaght into SQL Server from Perfmon.
Following your advice, I used relog, but unfortunately, the same problem
occurs when it tries to insert the CounterDetail line with the containing the
quote mark.
Same problem as with the Performance Monitor. Same ODBC Problem I guess
regarding quotation mark and quoted identifiers.
You will find below the SQL Batch and the error caught in the SQL Profiler
Any other workaround ?
Xavier
SQL Error
Exception : Error: 105, Severity: 15, State: 1
USer Error Message : Ouvrez les guillemets après la chaîne de caractères
',NULL,NULL,NULL,10000000,0) Select @@Identity commit transaction
AddCounterDetails'.
SQL Batch
begin transaction AddCounterDetails insert into CounterDetails values
('\\MyServer','Disque physique','Long. moy. de file d'attente du
disque',5571840,2,'1 M:',NULL,NULL,NULL,10000000,0) Select @@Identity commit
transaction AddCounterDetails
--
Andrew J. Kelly SQL MVP
Solid Quality Mentors
"PetitGosaimass" <PetitGo...@discussions.microsoft.com> wrote in message
news:09E525D3-CE54-45EE...@microsoft.com...
I tried csv, tsv, blg and circular blg...it doesn't make any difference.
Still the ' error.
Any other possibilities ?
Xavier
--
Andrew J. Kelly SQL MVP
Solid Quality Mentors
"PetitGosaimass" <PetitGo...@discussions.microsoft.com> wrote in message
news:FFE6B1F0-33A8-4C3C...@microsoft.com...
but this doesn't seems to me a good solution : there will be hundreds of
lines in the files, and a lot of servers to manage in a very near future.
This solution would be just working temporarily (a few servers), but not on
a larger scale.
Do you know if MOM would allow to get all these perfomance counters for a
hundred servers ?
What price would it be ?
Thanks for your help.
XM
--
Andrew J. Kelly SQL MVP
Solid Quality Mentors
"PetitGosaimass" <PetitGo...@discussions.microsoft.com> wrote in message
news:6DF209C3-3BF1-408B...@microsoft.com...
Could this problem be assisgned to a bug, or referenced in the knowledge
base, since all French dba will have the same problem) ? I spent a few a
hours on this...that could help other people to be aware faster than i have
been.
Thanks a lot
Xavier Marcatel
--
Andrew J. Kelly SQL MVP
Solid Quality Mentors
"PetitGosaimass" <PetitGo...@discussions.microsoft.com> wrote in message
news:9A447D69-E621-4131...@microsoft.com...