Blending life, nature and technology.
Posts tagged data collection
SQL Server 2008 Data Collection..
Apr 25th
Setup steps involved in code and pictures:
1) Create a SQL login account to use for this.
USE [master]
GO
CREATE LOGIN [dwlogin] WITH PASSWORD=N’xxxxxx’,
DEFAULT_DATABASE=[master],
CHECK_EXPIRATION=OFF, CHECK_POLICY=OFF
GO
2)
- right click on data collection under your database instance/management group
- select configure management data warehouse
- next
- create a management data warehouse
- click on new
- enter a name for the data collection database, accept defauly options
- next
- select dwlogin, nt authority\system, nt service\sqlserveragent and assign role mdw_admin
- next
- finish
right click on data collection, configure management data warehouse, setup data collection
click next, then click finish
You will notice under sql agent -> jobs – that some Data collection related jobs eg collectionset_3_upload have been created for you.
You can access reports by going to:
Datacollection -> reports -> management data warehouse ->
- server activity history
- disk usage summary
- query statistics history
SQL Server 2008 R2 adds a new option for bringing Microsoft Server virtualization concepts to database servers – its called Utility information. Click here for a demo video explaining this.
Management -> Data collection -> Start data collection set – gives the below error. I’ll update this blog on resolving this.
TITLE: Microsoft.SqlServer.Management.Collector
——————————
Unable to start collection set Utility Information.
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=10.50.1447.4+((KJ_RTM).100213-0103+)&LinkId=20476
——————————
ADDITIONAL INFORMATION:
An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)
——————————
Caught error#: 14693, Level: 16, State: 1, in Procedure: sp_syscollector_start_collection_set, Line: 108, with Message: A collection set cannot start without a schedule. Specify a schedule for the collection set. (Microsoft SQL Server, Error: 14684)
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=10.50.1352&EvtSrc=MSSQLServer&EvtID=14684&LinkId=20476
——————————
BUTTONS:
OK
——————————
collection_set_3_upload job keeps failing on uploading Query Statistics – SQL Server 2008
Oct 13th
Keep getting the error messages below from the logs:
To view the detailed logs in SSMS 2008:
Drill down on
Management -> data collection -> query statistics -> view logs
====== Error Messages Below=====
Event
Data Code
Message
SSIS error. Component name: DFT – Upload collection snapshot, Code: -1073450974, Subcomponent: SSIS.Pipeline, Description: SSIS Error Code DTS_E_PROCESSINPUTFAILED. The ProcessInput method on component “ODS – Upload snapshots into active_sessions_and_requests table” (2686) failed with error code 0xC0209029 while processing input “OLE DB Destination Input” (2699). The identified component returned an error from the ProcessInput method. The error is specific to the component, but the error is fatal and will cause the Data Flow task to stop running. There may be error messages posted before this with more information about the failure.
.
============================
Message
SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0×80004005.
An OLE DB record is available. Source: “Microsoft SQL Server Native Client 10.0″ Hresult: 0×80004005 Description: “Invalid character value for cast specification”.
An OLE DB record is available. Source: “Microsoft SQL Server Native Client 10.0″ Hresult: 0×80004005 Description: “Invalid character value for cast specification”.
An OLE DB record is available. Source: “Microsoft SQL Server Native Client 10.0″ Hresult: 0×80004005 Description: “Invalid character value for cast specification”.
An OLE DB record is available. Source: “Microsoft SQL Server Native Client 10.0″ Hresult: 0×80004005 Description: “Invalid character value for cast specification”.
An OLE DB record is available. Source: “Microsoft SQL Server Native Client 10.0″ Hresult: 0×80004005 Description: “Invalid character value for cast specification”.
==========
Event OnError
Data Code -1071607780
Message
There was an error with input column “collection_time” (2778) on input “OLE DB Destination Input” (2699). The column status returned was: “Conversion failed because the data value overflowed the specified type.”.
==============
Package Execution ID
Event OnError
Data Code -1071607767
Message
SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR. The “input “OLE DB Destination Input” (2699)” failed because error code 0xC020907A occurred, and the error row disposition on “input “OLE DB Destination Input” (2699)” specifies failure on error. An error occurred on the specified object of the specified component. There may be error messages posted before this with more information about the failure.
================
Package Execution ID
Event OnError
Data Code -1073450974
Message
SSIS Error Code DTS_E_PROCESSINPUTFAILED. The ProcessInput method on component “ODS – Upload snapshots into active_sessions_and_requests table” (2686) failed with error code 0xC0209029 while processing input “OLE DB Destination Input” (2699). The identified component returned an error from the ProcessInput method. The error is specific to the component, but the error is fatal and will cause the Data Flow task to stop running. There may be error messages posted before this with more information about the failure.
Read the article on this link.
Solution above essentially worked for me, l changed my retries to 4 from 2 and re-ran the job. It ran okay. Still investigating this in depth.


