Viewing 15 posts - 1,696 through 1,710 (of 3,544 total)
Not sure what you a really asking for, need better understanding of what you are trying to do.
If [iRecipientId] is not IDENTITY then you know the value anyway 
Far away is close at hand in the images of elsewhere.
Anon.
November 23, 2006 at 7:15 am
DTS
it will allow you to transform the data during load
Far away is close at hand in the images of elsewhere.
Anon.
November 23, 2006 at 6:56 am
Correct ![]()
Far away is close at hand in the images of elsewhere.
Anon.
November 20, 2006 at 3:30 am
The syntax is incorrect, but seems to work ![]()
The correct syntax should be
EXEC sp_executesql @sql, N'@res varchar(255) OUTPUT', @result OUTPUT
Corresponding names in...
Far away is close at hand in the images of elsewhere.
Anon.
November 20, 2006 at 2:36 am
| So, next question... |
I presume this is the converse of the original problem.
You could use ten IF's or if...
Far away is close at hand in the images of elsewhere.
Anon.
November 20, 2006 at 2:17 am
SET @AddCounter = 1
WHILE @AddCounter < 11
BEGIN
SET @TempVal = UPPER(RTRIM(LTRIM(
CASE
WHEN @AddCounter = 1 THEN @Address1
WHEN @AddCounter = 2 THEN @Address2
WHEN @AddCounter = 3...
Far away is close at hand in the images of elsewhere.
Anon.
November 16, 2006 at 6:53 am
Use DATALENGTH, eg
SELECT MAX(DATALENGTH([col])) FROM
To find the longest length of the column
SELECT [col] FROM WHERE DATALENGTH([col]) > n
To list the columns longer than the maximum required
(substitute...
Far away is close at hand in the images of elsewhere.
Anon.
November 16, 2006 at 2:30 am
| is there any way to avoid repeating the query in the child query |
Only by using a temp table,...
Far away is close at hand in the images of elsewhere.
Anon.
November 14, 2006 at 6:59 am
| and as I see, David posted his solution even before I completed writing my post |
WOW is this a...
Far away is close at hand in the images of elsewhere.
Anon.
November 10, 2006 at 7:25 am
at a guess (would be helpful for test data and expected results
)
SELECT c.CustNo,
c.CustomerName,
p.ProductDesc,
p.Productcode,
p.SourceID,
p.FRB,
p.MktSegmentID,
SUM(idp.Quantity) AS [Quantity],...
Far away is close at hand in the images of elsewhere.
Anon.
November 10, 2006 at 7:22 am
DECLARE @upd int
CREATE TABLE #temp (Empno int, Empname varchar(20), Empnamesupermgrname varchar(20), supermgrid int)
INSERT INTO #temp (Empno, Empname, Empnamesupermgrname, supermgrid)
SELECT e.Empno, e.Empname, m.Empname AS [Empnamesupermgrname], m.Empno AS [supermgrid]...
Far away is close at hand in the images of elsewhere.
Anon.
November 10, 2006 at 7:01 am
Personally I do
SELECT adi AS [Adlar]
it removes all problems and abiguity ![]()
Far away is close at hand in the images of elsewhere.
Anon.
November 9, 2006 at 6:24 am
Look up sp_help_fulltext_columns in BOL (Books Online)
Far away is close at hand in the images of elsewhere.
Anon.
November 9, 2006 at 6:13 am
1. Whilst your 3 columns correlate the data does not, what is DHBName?
2. Your sample output is not possible from the sample input you provided
Your query :-
SELECT ISNULL(a.DHB_service, b.DHB_service) AS...
Far away is close at hand in the images of elsewhere.
Anon.
November 8, 2006 at 8:57 am
You're missing a comma and the end of the SUM line
...
SUM(LOII.LII_MARKS) * 1.0 / COUNT(*) AS "Av No of correct answers",
CASE IA.IAT_DATA AS "Group"
...
Far away is close at hand in the images of elsewhere.
Anon.
November 8, 2006 at 7:19 am
Viewing 15 posts - 1,696 through 1,710 (of 3,544 total)