title: The command(s) completed successfully
body: <p>I have written a stored procedure given below....it should print the values I am printing using PRINT command. But rather printing these values, when I executed this procedure from Query Analyzer its shows 'The command(s) completed successfully'. Can u suggest any modification in code or other solutions</p>
  
  <p>Thanks in advance... :) </p>
  
  <pre><code>CREATE PROCEDURE  getPullCords(@start_dt varchar(25),@end_dt varchar(25))
   AS
  declare @t varchar(25),@p varchar(50),@v int
  declare @mycur CURSOR
  
  SET @mycur  =  CURSOR FAST_FORWARD
  FOR
  select timestamp,point_id,_val from tcf1_pullcord where timestamp between @start_dt and @end_dt
  
  OPEN @mycur
  FETCH NEXT FROM @mycur
  INTO @t,@p,@v
  
  WHILE @@FETCH_STATUS = 0
  BEGIN
  PRINT @t
  PRINT @p
  PRINT @v
  FETCH NEXT FROM @mycur
  INTO @t,@p,@v
  END
  
  CLOSE @mycur
  DEALLOCATE @mycur
  
  GO
  </code></pre>