PC Review


Reply
Thread Tools Rate Thread

Error on Update

 
 
vovan
Guest
Posts: n/a
 
      16th Apr 2007
I'm trying to run SQL Server Stored Procedure to update a single record in
DB from VB 2005 application.
I'm using 2 testing SQL Servers. With the first one there is no problem. I
detached the database from the first server and attached it to the second
one. With the second server I get an error:
"System.Data.SqlClient.SqlException: A severe error occurred on the current
command. The results, if any, should be discarded.
A severe error occurred on the current command. The results, if any, should
be discarded.
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception,
Boolean breakConnection)
at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException
exception, Boolean breakConnection)
at
System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject
stateObj)
at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand
cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet
bulkCopyHandler, TdsParserStateObject stateObj)
at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds,
RunBehavior runBehavior, String resetOptionsString)
at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior
cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior
cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method,
DbAsyncResult result)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult
result, String methodName, Boolean sendToPipe)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at CMS.Client.UpdateInsertLocation(Int32 IsNew) in
G:\_CMS\CMS04162007\Client.vb:line 767"

Why could it happen? All Select SPs are working fine. I'm using the same
connection object (of cource with different connection string).

Any help please

vovan


 
Reply With Quote
 
 
 
 
rowe_newsgroups
Guest
Posts: n/a
 
      16th Apr 2007
On Apr 16, 10:26 am, "vovan" <some...@vovan.com> wrote:
> I'm trying to run SQL Server Stored Procedure to update a single record in
> DB from VB 2005 application.
> I'm using 2 testing SQL Servers. With the first one there is no problem. I
> detached the database from the first server and attached it to the second
> one. With the second server I get an error:
> "System.Data.SqlClient.SqlException: A severe error occurred on the current
> command. The results, if any, should be discarded.
> A severe error occurred on the current command. The results, if any, should
> be discarded.
> at System.Data.SqlClient.SqlConnection.OnError(SqlException exception,
> Boolean breakConnection)
> at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException
> exception, Boolean breakConnection)
> at
> System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject
> stateObj)
> at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand
> cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet
> bulkCopyHandler, TdsParserStateObject stateObj)
> at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds,
> RunBehavior runBehavior, String resetOptionsString)
> at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior
> cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
> at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior
> cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method,
> DbAsyncResult result)
> at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult
> result, String methodName, Boolean sendToPipe)
> at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
> at CMS.Client.UpdateInsertLocation(Int32 IsNew) in
> G:\_CMS\CMS04162007\Client.vb:line 767"
>
> Why could it happen? All Select SPs are working fine. I'm using the same
> connection object (of cource with different connection string).
>
> Any help please
>
> vovan


Can you run the sproc from enterprise manager or query analyzer? You
might also check the event logs on the server to see if it gives a
better description of the error.

Thanks,

Seth Rowe

 
Reply With Quote
 
vovan
Guest
Posts: n/a
 
      16th Apr 2007
No problem with executing from Enterprise Manager. I also did not find any
record in Log file related to this problem. I was looking for time when
error happened as well as for anything else related to the problem.

vovan

"rowe_newsgroups" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> On Apr 16, 10:26 am, "vovan" <some...@vovan.com> wrote:
>> I'm trying to run SQL Server Stored Procedure to update a single record
>> in
>> DB from VB 2005 application.
>> I'm using 2 testing SQL Servers. With the first one there is no problem.
>> I
>> detached the database from the first server and attached it to the second
>> one. With the second server I get an error:
>> "System.Data.SqlClient.SqlException: A severe error occurred on the
>> current
>> command. The results, if any, should be discarded.
>> A severe error occurred on the current command. The results, if any,
>> should
>> be discarded.
>> at System.Data.SqlClient.SqlConnection.OnError(SqlException exception,
>> Boolean breakConnection)
>> at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException
>> exception, Boolean breakConnection)
>> at
>> System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject
>> stateObj)
>> at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior,
>> SqlCommand
>> cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet
>> bulkCopyHandler, TdsParserStateObject stateObj)
>> at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds,
>> RunBehavior runBehavior, String resetOptionsString)
>> at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior
>> cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean
>> async)
>> at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior
>> cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String
>> method,
>> DbAsyncResult result)
>> at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult
>> result, String methodName, Boolean sendToPipe)
>> at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
>> at CMS.Client.UpdateInsertLocation(Int32 IsNew) in
>> G:\_CMS\CMS04162007\Client.vb:line 767"
>>
>> Why could it happen? All Select SPs are working fine. I'm using the same
>> connection object (of cource with different connection string).
>>
>> Any help please
>>
>> vovan

>
> Can you run the sproc from enterprise manager or query analyzer? You
> might also check the event logs on the server to see if it gives a
> better description of the error.
>
> Thanks,
>
> Seth Rowe
>



 
Reply With Quote
 
vovan
Guest
Posts: n/a
 
      16th Apr 2007
One of the fields in the updatable table is varchar(8000). After I made it
smaller (varchar(4000)) everything works.
I think this is relater to SQL Server settings. So on one server that size
doesn't affect the package while on another server it does affect.
Either I need to find out what setting is responsible for the package size
or just keep the size of the column small enough.

vovan

"rowe_newsgroups" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> On Apr 16, 10:26 am, "vovan" <some...@vovan.com> wrote:
>> I'm trying to run SQL Server Stored Procedure to update a single record
>> in
>> DB from VB 2005 application.
>> I'm using 2 testing SQL Servers. With the first one there is no problem.
>> I
>> detached the database from the first server and attached it to the second
>> one. With the second server I get an error:
>> "System.Data.SqlClient.SqlException: A severe error occurred on the
>> current
>> command. The results, if any, should be discarded.
>> A severe error occurred on the current command. The results, if any,
>> should
>> be discarded.
>> at System.Data.SqlClient.SqlConnection.OnError(SqlException exception,
>> Boolean breakConnection)
>> at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException
>> exception, Boolean breakConnection)
>> at
>> System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject
>> stateObj)
>> at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior,
>> SqlCommand
>> cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet
>> bulkCopyHandler, TdsParserStateObject stateObj)
>> at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds,
>> RunBehavior runBehavior, String resetOptionsString)
>> at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior
>> cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean
>> async)
>> at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior
>> cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String
>> method,
>> DbAsyncResult result)
>> at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult
>> result, String methodName, Boolean sendToPipe)
>> at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
>> at CMS.Client.UpdateInsertLocation(Int32 IsNew) in
>> G:\_CMS\CMS04162007\Client.vb:line 767"
>>
>> Why could it happen? All Select SPs are working fine. I'm using the same
>> connection object (of cource with different connection string).
>>
>> Any help please
>>
>> vovan

>
> Can you run the sproc from enterprise manager or query analyzer? You
> might also check the event logs on the server to see if it gives a
> better description of the error.
>
> Thanks,
>
> Seth Rowe
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
cannot update, the automatic update is not in services.msc and saysit is when try to install receive this error when trying to automatic update Cornholis Windows XP Basics 2 27th Aug 2011 07:59 AM
Vista Windows Update error Code: 80070490 Windows Update encountered an unknown error Michel Speed Windows Vista General Discussion 1 24th Jan 2009 11:02 PM
windows update fails to update to new version with error code 8007 vijay Windows Vista General Discussion 3 14th Jan 2009 07:25 AM
Windows update error 80070103 - Beta 2 Vista NVIDIA Driver Update =?Utf-8?B?RGVlcGFrIFNoZW5veQ==?= Windows Vista General Discussion 4 28th Feb 2007 03:26 PM
Windows Update Error number: 0x80072EE2 - Windows Update has encountered an error and cannot display the requested page Mart Windows XP General 1 23rd Sep 2004 12:18 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:58 PM.