|
pauleds2109
Starting Member
1 Post |
Posted - 2011-02-15 : 10:59:28
|
| Hi allI have a stored procedure that includes the following code:/*** temporary table for shredded XML records ***/ DECLARE @Temp TABLE ( orderid INT, cargoready SMALLDATETIME, estpallets INT, estweight INT, estvolume REAL, updguid VARCHAR(30), companyid INT, userid INT, dtupdated SMALLDATETIME ) /*** parse XML file and dump into temp ***/ INSERT INTO @Temp (orderid, cargoready, estpallets, estweight, estvolume, updguid, companyid, userid, dtupdated) SELECT T0.Item.value('@orderid', 'INT') orderid, T0.Item.value('@cargoready', 'SMALLDATETIME') cargoready, T0.Item.value('@estpallets', 'INT') estpallets, T0.Item.value('@estweight', 'INT') estweight, T0.Item.value('@estvolume', 'REAL') estvolume, T0.Item.value('@updguid', 'VARCHAR(30)') estvolume, T0.Item.value('@companyid', 'INT') companyid, T0.Item.value('@userid', 'INT') userid, @dateupdated dtupdated FROM @XMLCargo.nodes('/root/row') as T0(Item);This works on my test server but not on my live server, when I look at the procedure in the sql editor I have this message:cannot find either column "T0" or the user-defined function "T0.item.value" or aggregate, or the name is ambiguousI urgently neeed to get his working. Thanks in asdvance for any advice! |
|