Viewing 6 posts - 1 through 6 (of 6 total)
Thanks to all, I got this solved. I have assigned a GUID to the temp table name and built/select/drop it dynamically. I have tested it and it is working perfect.
Once...
October 14, 2013 at 2:08 pm
Thank you very much Keith for your concern, I will look into this.
I am also trying to do a "UNION ALL" but not sure how to do it dynamically like...if...
October 9, 2013 at 8:56 pm
Thank you Sean Lange, I did not think about it. I liked the idea of "Jeff Moden" but I am not sure about how to create a partitioned view.
I would...
October 9, 2013 at 8:25 pm
Thank you Keith for prompt reply. I have changed the @DB to NVARCHAR.
SP Executed succeessfully but when I executed by passing parameters it throws error.
Msg 207, Level 16, State 1,...
October 9, 2013 at 1:07 pm
Thank you SrcName for your reply. I have followed your query and came up with this sample query. It was successfully created but when I am trying to execute, I...
October 9, 2013 at 12:23 pm
Thank you Keith for your reply. Sorry for not providing the enough info.
CREATE PROCEDURE [dbo].[USP_Student_History_Search]
@State VARCHAR(2)
@StudentID INT
AS
SET NOCOUNT ON;
DECLARE @index INT
DECLARE @N INT =SELECT CHARINDEX(',',@State)
WHILE
October 4, 2013 at 9:36 am
Viewing 6 posts - 1 through 6 (of 6 total)