Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

ADO.Net OleDBCommand.ExecuteScalar hangs

42 views
Skip to first unread message

peter...@gmail.com

unread,
Nov 24, 2005, 2:32:35 PM11/24/05
to
I have SQL like "select * from table1 where 1 = 0" that will give no
rows in return.

I create a OleDbCommand cmd with this SQL.

If I try to fill a datatable
da = new da(cmd)
da.fill(dt)

No problem.

but when I try to run
cmd.ExecuteScalar()
all hangs, no exception, no timeout, no nothing.

The Sybase server is run on a Solaris platform and have the version
12.5.2.
.Net is 1.1

If I do the same thing against a windows based Sybase server no
problem.

0 new messages