Hi,

Here is the stored procedure (MSSQL 2005)


create procedure [dbo].[NotWorking] (@wellchemlist_xml ntext)
as

create table #selwell (well_id int)
-- Load parameter into an XML document