View Single Post
  #3 (permalink)  
Old September 6th, 2004, 03:46 AM
mahulda mahulda is offline
Authorized User
Points: 281, Level: 5
Points: 281, Level: 5 Points: 281, Level: 5 Points: 281, Level: 5
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Feb 2004
Location: Delhi, Delhi, India.
Posts: 71
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to mahulda
Default

If nothing works then try out this

Dim ret as integer = 0
Dim myreader

cmdSelect = New SqlCommand("Select ....., con)
myreader = cmdSelect.ExecuteReader
While myreader.read()
     ret += 1
End While

myreader.close()
con.close()

If (ret = 0) Then
'some operation
else
'some...
end if


-.. -..
Reply With Quote