Viewing 15 posts - 3,916 through 3,930 (of 4,087 total)
Eugene Elutin (8/17/2010)
Will it be one-by-one...
August 17, 2010 at 8:34 am
In looking over your trigger again, I noticed a couple of things. Since you declare your variable as varchar, it only holds the last value when you set the...
August 16, 2010 at 3:40 pm
teutales (8/16/2010)
Why do you want to not update an index during a batch?
because of duration... I thought this is a big brake...
thank you all for your replies!!!!
Your cursor is more...
August 16, 2010 at 6:26 am
There are a couple of options.
CASE 1: Left outer join
SELECT DISTINCT e.EmpID, e.Name, CASE WHEN sub.EmpID Is NULL THEN 'N' ELSE 'Y' END AS Manager_Status
FROM Employee AS e
LEFT OUTER...
August 15, 2010 at 4:39 pm
Your assignment statement is in the wrong place. Your statement should be
WITH CTE AS (....)
SELECT @MyVal = ( SELECT .... FROM CTE .... )
Also, the query you are using...
August 15, 2010 at 4:12 pm
His function already returns the CustomerCode, so he can join on that instead of rewriting the function.
UPDATE TR
SET Amount_Lastest = FGA.AmountFinal
FROM #TempResults ...
August 13, 2010 at 2:02 pm
It's really not clear what you are trying to accomplish. Are you trying to replicate the Information_Schema.Columns view? How about providing sample data and expected results as recommended...
August 12, 2010 at 7:41 pm
ziedkallel (8/12/2010)
August 12, 2010 at 7:07 pm
Try CASTing it as varbinary(max).
You might also want to check that the collations on the two databases match. Different collations can treat the same character differently.
Drew
August 12, 2010 at 10:26 am
The basic idea is that you check whether an object already exists. If it doesn't you add it.
IF NOT EXISTS (
SELECT *
...
August 12, 2010 at 6:34 am
All you have to do is add/subtract the appropriate amount to adjust the beginning of your fiscal year to Jan. 1. In your case, subtracting three months (or adding...
August 12, 2010 at 6:14 am
A couple of things. In order for us to help you with your problem, the sample data has to be representative of your live data. Since it's obvious...
August 11, 2010 at 4:13 pm
Web browsers unescape the characters for you. In order to display the escaped characters, you have to escape the ampersands that are produced by your query.
col1(No column name)
1<A>, <B>,...
August 11, 2010 at 2:51 pm
I'll go one step further. Your OrderID and LineID should either be int (highly recommended) or at least padded with zeros to get a consistent length. Otherwise when...
August 11, 2010 at 2:29 pm
It sounds like your original query was treating your XML data as string data. There are a number of ways that you can correct this, but since you didn't...
August 11, 2010 at 11:45 am
Viewing 15 posts - 3,916 through 3,930 (of 4,087 total)