Look for Insert Clause in Book online i.e. Microsoft SQL Server help file. It would be better if you create the stored procedure and pass this parameters to that procedure. Somthing like this Create Proc Sp_InsTblSearch(@location varchar(8000)@category varchar(8000)@user varchar(8000)@result varchar(8000))As Begin -- This is the on approach for inserting Insert TblSearchSelect @location,@category,@user,@result -- Or you can use this approach for inserting /*Insert TblSearch (location,category,user,result) Values(@location,@category,@user,@result)*/End
Then call this procedure from the front end, using thecommand object.Chirag