October 15, 2008 at 6:56 am
Hi Guys,
I just wondering what is the better way to replace 'COLLATE' or Some way we can declare it somewhere before we do on update statement. Because I have another 3 more similar UPDATE after that process and all in one store procedure, the same thing using with 'COLLATE', but those process are take so slow. Anyway can we improve this.
UPDATE dbo.EB_DETAIL
SET dbo.EB_DETAIL.EBNumber = @EBNumber
FROM #EBCustomer t
INNER JOIN dbo.EB_DETAIL c
ON t.EBCode = c.EBCode COLLATE DATABASE_DEFAULT
WHERE c.EBNumber=0
Thanks.
October 15, 2008 at 11:25 am
Did you try
ALTER DATABASE ... -- for database level
ALTER TABLE ... -- for table levle
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy