Viewing 7 posts - 16 through 22 (of 22 total)
you are very welcome. 🙂
September 18, 2009 at 12:08 pm
You cant use output parameters in functions
if i understand correctly you want to return more than one value, i.e.
you could use table functions...so you can return a table.
create function TableFunction(@parameter1...
September 18, 2009 at 11:52 am
a function is used in select, and returns a resultset (scalar or table, depends on the function type)
thats why a function cant use output parameters
i think this article would help...
September 18, 2009 at 10:57 am
why you want an output parameter?
why dont just return a scalar value.
September 18, 2009 at 10:48 am
i think this is what you want..
select convert(datetime,convert(varchar,getdate(),112))
and you will get this...
-----------------------
2009-09-18 00:00:00.000
(1 row(s) affected)
September 18, 2009 at 10:22 am
hello emily-1119612
why dont you try this
UPDATE #Manufacturers
SET Manufacturer_Date = B.MIN_PRODUCT_DATE
FROM #Manufacturers
INNER JOIN #Products ON #Manufacturers.ManufacturerID = #Products.ManufacturerID
INNER JOIN
(
select ProductId, MIN(Product_date) MIN_PRODUCT_DATE
from #productinfo
GROUP BY ProductId
) B
ON #Products.ProductID =B.ProductID
September 18, 2009 at 10:14 am
hello middletree.
Im not sure if thats possible.
what you could do, is restore that backup on a new database, and copy the data you need
September 18, 2009 at 9:42 am
Viewing 7 posts - 16 through 22 (of 22 total)