Viewing 15 posts - 5,626 through 5,640 (of 6,036 total)
You do not need to remove anything.
Just don't copy it from staging to destination.
Add WHERE clause to the last INSERT statement.
February 9, 2006 at 3:16 pm
UPDATE products
SET productdetail = @detail,
productprice = ISNULL(@price, productprice)
WHERE productid = @id.
February 9, 2006 at 2:10 pm
DATEADD(mm, 5, DATEADD(YY, 2005-1900, 0))
Than format this datetime value in a stile you want. See CAST in BOL.
February 9, 2006 at 1:33 pm
SELECT H1.PhoneNum
FROM History H1
INNER JOIN History H2 on H1.ProjectID = H2.ProjectID and H1.PhoneNum = H2.PhoneNum
WHERE H1.ProjectID IN (945, 1172)
AND CallDateTime > getdate() -7 AND AttResult = 5
GROUP BY H1.PhoneNum
HAVING COUNT(H2.PhoneNum) >...
February 8, 2006 at 4:14 pm
read in BOL article about sp_executesql and using variables in dynamic SQL.
February 7, 2006 at 9:06 pm
What is unique index 'User_Fields_Key0' ?
February 7, 2006 at 9:03 pm
Update TableA
Set Number = 2, Type = 580
FROM TableB
where TableA.Email = TableB.2nd_Email
and TableA.Number = 0
February 7, 2006 at 6:58 pm
Sorry, I updated my post too late.
Execute @X = dbo.SP assigns to @X RETURN_VALUE, not anything from returning recordset.
By default RETURN_VALUE = Error code but you cann assign any...
February 7, 2006 at 2:06 pm
1st dataset must come from dbo.SP.
Eliminate SELECT statement from that SP.
RETURN @Value is only thing you need.
February 7, 2006 at 1:48 pm
You must have administrative privilages on \\<Servname> to read C$.
Probably user running you instance of SQLServer is not anymore.
Set up shared folder and access rights to it properly.
February 6, 2006 at 5:53 pm
Just finish your script with
drop table #Temp
#Temp stays in tempdb until you close the connection.
February 6, 2006 at 1:38 pm
It creates deadlock.
OSQL statement will wait for transaction to commit to read the data created within this transaction, and transaction will wait for xp_cmdshell to commit to proceed.
February 5, 2006 at 5:31 am
I would suggest trigger on his table.
This trigger suppose to recreate view(s) after each INSERT/UPDATE/DELETE on this table.
February 2, 2006 at 2:03 pm
Viewing 15 posts - 5,626 through 5,640 (of 6,036 total)