Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 2004
    Posts
    73

    Unanswered: Stored Procedures

    I have a stored procedure that I am using to Delete records. When the SP is done running I am getting a message, "The Stored Procedure executed successfully but did not return records". Is there a way to make it not give me that message? My PRINT statements don't seem to work either.

    Code:
    Alter PROCEDURE usp_DeleteVoids  
    
    AS
    
    PRINT 'This will Delete Records.....'
    
    DELETE
    
    FROM
    	tblData
    
    WHERE 
    	(((tblData.JobName)=N'void'))
    
    PRINT 'Deletion complete.....'
    
    Return(0)

  2. #2
    Join Date
    Jan 2004
    Posts
    40
    how are you running your SP, from query analyser?, osql?, some ado connection?

  3. #3
    Join Date
    Apr 2004
    Posts
    73
    Right now to test it I am just double clicking on it in the Access project.

  4. #4
    Join Date
    Apr 2004
    Location
    Kansas City, MO
    Posts
    734
    Go to design mode on the pass-through query. Set Returns Recordsets to False.
    MeanOldDBA
    derrickleggett@hotmail.com
    When life gives you a lemon, fire the DBA.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •