all groups > sql server (alternate) > march 2006 >
You're in the

sql server (alternate)

group:

DB_E_ERRORSINCOMMAND ( HRESULT = -2147217900 )


DB_E_ERRORSINCOMMAND ( HRESULT = -2147217900 ) Prince
3/14/2006 10:43:41 PM
sql server (alternate):
Hai all,

I am getting an DB_E_ERRORSINCOMMAND exception when I try to open a
recordset or execute query in VC++. But when I run the same query in
Query Analyzer, it is working fine. I am sure the connection string is
correct. I am running a collection of queries and finally commit the
transaction, but everytime it not throwing the exception on same query,

eachtime different queries throw exception randomly.


Can anyone tell whats the problem?
Urgent, Please help...
Looking forward for the response..
Thanx in advance...
Re: DB_E_ERRORSINCOMMAND ( HRESULT = -2147217900 ) Erland Sommarskog
3/15/2006 12:00:00 AM
Prince (princevictor.moses@gmail.com) writes:
[quoted text, click to view]

It's more likely that there is some error in the calling sequence, rahter
than the SQL code. Without seeing your code, it's impossible to be more
detailed.
--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
Re: DB_E_ERRORSINCOMMAND ( HRESULT = -2147217900 ) Erland Sommarskog
3/15/2006 12:00:00 AM
Prince (princevictor.moses@gmail.com) writes:
[quoted text, click to view]

If it wasn't clear: I believe the problem is in the C++ code and the call
to ADO, not in the SQL itself.

But let's make a shot in the dark: att SET NOCOUNT ON.


--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
Re: DB_E_ERRORSINCOMMAND ( HRESULT = -2147217900 ) Prince
3/15/2006 1:23:15 AM
Hi,

Thanx for ur reply..
Is there is any prob in the following query?

INSERT INTO jobhistory(schObjId, BaseLineId, ActionTaken, UserId,
historyDateTime, remarks) VALUES ('_2036', '', 'CREATED', 'Guest',
getDate(), 'Job Created by Guest -- Guest')

looking forward for the response...
AddThis Social Bookmark Button