SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


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.

Author
Message
Arshad khan-791094
Arshad khan-791094
Valued Member
Valued Member (68 reputation)Valued Member (68 reputation)Valued Member (68 reputation)Valued Member (68 reputation)Valued Member (68 reputation)Valued Member (68 reputation)Valued Member (68 reputation)Valued Member (68 reputation)

Group: General Forum Members
Points: 68 Visits: 17
Hi all, i have some problem with my SQL Server, if i am creating any new Db, and i am accessing through my .NET Application, that time its giving error like that, but if i am Executing any query from my Managememnt Studio then its working fine, but while my Asp.net page its giving Error Like that

A severe error occurred on the current command. The results, if any, should be discarded.

Plz, check this problem and let me know.

Thanks
Suresh B.
Suresh B.
SSChampion
SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)

Group: General Forum Members
Points: 12178 Visits: 5330
>> i am accessing through my .NET Application, that time its giving error like that, but if i am Executing any query from my Managememnt Studio then its working fine, but while my Asp.net page its giving Error

Are you using stored procedure? If NO, create a stored procedure and call it from your .NET application. It may work.
Avishkar Meshram
Avishkar Meshram
SSC Veteran
SSC Veteran (264 reputation)SSC Veteran (264 reputation)SSC Veteran (264 reputation)SSC Veteran (264 reputation)SSC Veteran (264 reputation)SSC Veteran (264 reputation)SSC Veteran (264 reputation)SSC Veteran (264 reputation)

Group: General Forum Members
Points: 264 Visits: 326
There is a Hotfix available on microsoft site.
Pl refer http://support.microsoft.com/kb/910416
josp
josp
Old Hand
Old Hand (325 reputation)Old Hand (325 reputation)Old Hand (325 reputation)Old Hand (325 reputation)Old Hand (325 reputation)Old Hand (325 reputation)Old Hand (325 reputation)Old Hand (325 reputation)

Group: General Forum Members
Points: 325 Visits: 18
Was getting error "Msg 0, Level 11, State 0, Line 0
A severe error occurred on the current command. The results, if any, should be discarded."

Changed my delete query to delete based on primary key

"delete from table where pk in (select pk from table where num=5)"

for whatever reason "delete from table where num=5" was giving severe error
GSquared
GSquared
SSC Guru
SSC Guru (139K reputation)SSC Guru (139K reputation)SSC Guru (139K reputation)SSC Guru (139K reputation)SSC Guru (139K reputation)SSC Guru (139K reputation)SSC Guru (139K reputation)SSC Guru (139K reputation)

Group: General Forum Members
Points: 139871 Visits: 9731
Might be a recursion problem with the sub-query.

I have to ask, why the sub-query at all, or are these two different tables?

- Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
Property of The Thread

"Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon
GilaMonster
GilaMonster
SSC Guru
SSC Guru (552K reputation)SSC Guru (552K reputation)SSC Guru (552K reputation)SSC Guru (552K reputation)SSC Guru (552K reputation)SSC Guru (552K reputation)SSC Guru (552K reputation)SSC Guru (552K reputation)

Group: General Forum Members
Points: 552789 Visits: 47744
Just in case, run the following and check that it doesn't return anything.


DBCC CHECKDB (<Database Name>Wink WITH NO_INFOMSGS, ALL_ERRORMSGS



Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass


SQL-DBA-01
SQL-DBA-01
SSCoach
SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)

Group: General Forum Members
Points: 19153 Visits: 3813
I too am facing the same error..

Msg 0, Level 11, State 0, Line 0

A severe error occurred on the current command. The results, if any, should be discarded.


This is occurring while running the below script.

update <tab_name> set code = 'CANCELLED' where nbr = 'A325'

Unable to figure out whether this is due to dependency to this table or some other issue. The server timeout value is set as: 10 mins which is quite good.

Any suggestion would be highly helpful.

Thanks.
SQL-DBA-01
SQL-DBA-01
SSCoach
SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)

Group: General Forum Members
Points: 19153 Visits: 3813
Any suggestion please??

Thanks.
SQL-DBA-01
SQL-DBA-01
SSCoach
SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)

Group: General Forum Members
Points: 19153 Visits: 3813
Can anyone please recommend further?

Thanks.
Congruent Influence
Congruent Influence
Right there with Babe
Right there with Babe (738 reputation)Right there with Babe (738 reputation)Right there with Babe (738 reputation)Right there with Babe (738 reputation)Right there with Babe (738 reputation)Right there with Babe (738 reputation)Right there with Babe (738 reputation)Right there with Babe (738 reputation)

Group: General Forum Members
Points: 738 Visits: 154
I recently ran across this issue in one of my data conversions for a client. Same error but different symptoms. I was able to narrow the issue down to a specific concatenation of dateparts and then converting to a datetime as well as a specific join causing the problem on one of my queries.

My issue was resolved by adding indexes on the join table.

example:
select convert(datetime, A.MO + '/' + A.DY + '/' A.YR)
from A
join B on A.id = b.id
left join C on A.id = C.id
AND a.id2 = C.id2

In the example above there weren't indexes on table C. As soon as I added them on id and id2 the error went away. Hope this inspires you to look a different direction and resolve your issue.

Remember this when a developer tells you it will just be temporary. Temporary = Permanent.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum








































































































































































SQLServerCentral


Search