Hi.
I am using Visual Studio 2008, and Sql Server 2000, and I have the following code:
'Load connection module
connection()
cmd = con.CreateCommand
cmd.CommandText = "SELECT * FROM tblUser WHERE username = 'xxx' "
da.SelectCommand = cmd
da.Fill(ds, "tblUser")
dt = ds.Tables("tblUser")
MsgBox(dt.Rows.Count)
I don't know why it return the number of all available rows in the table, even I don't have username with xxx.
what is the problem?