- In SP/T-SQL IF EXISTS (SELECT 1 from mytable where myid = @lcid) ... -- From VFP SELECT TOP 1 myid from mytable where myid = ?lcid>what is the best/ quickest way to check if a record exists in a table? thats all I want to know, ie "select from mytable where myid =lcid " and myId is not a primary key