after creating the connection object establish the connection to the database. Right click on connection and add a command object .Right click on the command object and select sqlstatment in the general tab in properties . add the sql statment that you want.
Hope that solves your problem.
Reputation Points: 665
Solved Threads: 427
Posting Genius
Offline 6,406 posts
since Feb 2007