﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Administering / SQL Server 2005  / Database backup failure:Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Sun, 19 May 2013 02:06:07 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Database backup failure:Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly</title><link>http://www.sqlservercentral.com/Forums/Topic726231-146-1.aspx</link><description>When I attempt to run an SSIS stored procedure, I am receiving the following error:[Execute SQL Task] Error: Executing the query "INSERT INTO tmpSQLXTABSOURCE                     ..." failed with the following error: "Error converting data type nvarchar to float.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.Here is the the particular query that is causing a problem:SELECT     AnalysisSetID, LegalEntityID, FieldID, PeerGroupID, FieldDataSetID, DataSetYear, BCTypeID, BCMnemonic, SUM(CAST(DataValue AS float)) AS DataValue,                      DataTable, SystemDataTypeIDFROM         dbo.qryXTABDataGROUP BY AnalysisSetID, LegalEntityID, FieldID, PeerGroupID, BCTypeID, DataSetYear, BCMnemonic, DataTable, FieldDataSetID, SystemDataTypeID, DataValueHAVING      (SystemDataTypeID = '{7FD263E9-E684-4C0B-A095-D4273182F295}') AND (AnalysisSetID = '6bac995b-b776-4bf3-bfeb-4264270450f1')    Then when I change it to the following, this particular query works!SELECT     AnalysisSetID, LegalEntityID, FieldID, PeerGroupID, FieldDataSetID, DataSetYear, BCTypeID, BCMnemonic, SUM(CAST(DataValue AS decimal)) AS DataValue,                      DataTable, SystemDataTypeIDFROM         dbo.qryXTABDataGROUP BY AnalysisSetID, LegalEntityID, FieldID, PeerGroupID, BCTypeID, DataSetYear, BCMnemonic, DataTable, FieldDataSetID, SystemDataTypeID, DataValueHAVING      (SystemDataTypeID = '{7FD263E9-E684-4C0B-A095-D4273182F295}') AND (AnalysisSetID = '6bac995b-b776-4bf3-bfeb-4264270450f1')    Does anyone have any idea as to why using the cast to float would fail but the cast to decimal succeeds?Then I try to update the appropriate view in SQL Server, but when I attempt to run the entire code from the stored procedure, I receive the following error:Msg 2627, Level 14, State 1, Line 1Violation of PRIMARY KEY constraint 'PK__tmpSQLXT__2C3AA4296EAEBD9A'. Cannot insert duplicate key in object 'dbo.tmpSQLXTABSOURCE'.The statement has been terminated.Does anyone have any suggestions?TIA.</description><pubDate>Tue, 15 Sep 2009 16:03:36 GMT</pubDate><dc:creator>john_1726</dc:creator></item><item><title>RE: Database backup failure:Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly</title><link>http://www.sqlservercentral.com/Forums/Topic726231-146-1.aspx</link><description>[quote]N'I:\\backup\\RestoreAdminData_Forest\\RestoreAdminData_Forest_backup_200905272100.bak' [/quote]Are you trying to run this job on the SQL server or through SSMS on your client machine? Have you tried going straight to it with using the UNC path, just "\\&lt;hostname&gt;\backup..." instead of the drive letter?  Do you have other jobs pointing to this network share?</description><pubDate>Sun, 31 May 2009 23:37:15 GMT</pubDate><dc:creator>Shawn Melton</dc:creator></item><item><title>RE: Database backup failure:Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly</title><link>http://www.sqlservercentral.com/Forums/Topic726231-146-1.aspx</link><description>This is happening because you are backing up across the network and there is a blip on the network.  The ideal solution is to backup locally and copy to the network storage instead.However, that may not be an option - so you need to identify the OS error (64, 995, etc...) and search the support site at Microsoft for possible fixes.</description><pubDate>Sat, 30 May 2009 13:55:51 GMT</pubDate><dc:creator>Jeffrey Williams 3188</dc:creator></item><item><title>Database backup failure:Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly</title><link>http://www.sqlservercentral.com/Forums/Topic726231-146-1.aspx</link><description>The backup job in the MP is failing due to the following reason:Executing the query "BACKUP DATABASE [RestoreAdminData_Forest] TO  DISK = N'I:\\backup\\RestoreAdminData_Forest\\RestoreAdminData_Forest_backup_200905272100.bak' WITH NOFORMAT, NOINIT,  NAME = N'RestoreAdminData_Forest_backup_20090527210006', SKIP, REWIND, NOUNLOAD,  STATS = 10" failed with the following error: "A transport-level error has occurred when receiving results from the server. (provider: TCP Provider, error: 0 - The specified network name is no longer available.)10 percent processed.20 percent processed.30 percent processed.40 percent processed.50 percent processed.60 percent processed.70 percent processed.80 percent processed.90 percent processed.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.Any iDea why this is happening? the databases are in SIMPLE recovery mode</description><pubDate>Sat, 30 May 2009 11:56:10 GMT</pubDate><dc:creator>jeet_personal</dc:creator></item></channel></rss>