Hi All
Iam new to SQL SPs and have created a SP which starts off with a declare statement referencing a table variable.
In the SP their are are various select and insert statements which manipulates the data and finally the data is inserted in a table.
However I want to test an section of the SP and not run the whole, ideally see the results in the table variable as the results are changing after each select or insert is run.
I keep getting an message 'must declare variable @test', does any one know I can come around this problem? All I want is to see each piece of manuipulation ie. highlight a statement run it and see whats happening before moving on to the next statement.
I hope I have made sense, any questions please ask.
Many Thanks
Iam new to SQL SPs and have created a SP which starts off with a declare statement referencing a table variable.
In the SP their are are various select and insert statements which manipulates the data and finally the data is inserted in a table.
However I want to test an section of the SP and not run the whole, ideally see the results in the table variable as the results are changing after each select or insert is run.
I keep getting an message 'must declare variable @test', does any one know I can come around this problem? All I want is to see each piece of manuipulation ie. highlight a statement run it and see whats happening before moving on to the next statement.
I hope I have made sense, any questions please ask.
Many Thanks