Viewing 15 posts - 5,461 through 5,475 (of 6,036 total)
Eddie, you forgot to mention that stored procedures may return no resultset.
It may be designed to work out data without any immediate output.
_____________
Code for TallyGenerator
March 23, 2006 at 6:11 pm
UPDATE Table1
SET Name = Table2.NewName
FROM Table2
WHERE Table2.OriginalName = Table1.Name
_____________
Code for TallyGenerator
March 23, 2006 at 6:05 pm
If my statement does not do it for you?
_____________
Code for TallyGenerator
March 23, 2006 at 1:05 pm
Book On Line.
"Help" for MSSQL 2000.
You can open it by pressing F1.
_____________
Code for TallyGenerator
March 22, 2006 at 7:34 pm
Did you read EXECUTE topic in BOL?
_____________
Code for TallyGenerator
March 22, 2006 at 6:59 pm
UPDATE tasks
Set request = UpdateTo
From NewList
Where request = MATCH
That's all.
No cursors.
_____________
Code for TallyGenerator
March 22, 2006 at 3:54 pm
Right approach.
You only need to change the order of statements:
UPDATE first, INSERT second
Otherwise you update just inserted rows. ![]()
_____________
Code for TallyGenerator
March 21, 2006 at 7:51 pm
CR is "Carriage Return", CHAR(13), 0D in HEX;
LF is "Line Feed", CHAR(10), 0A in HEX.
Standard text file in Windows uses both of them to start a new line.
Standard text...
_____________
Code for TallyGenerator
March 21, 2006 at 7:01 pm
If this is UNIX format file with only LF as line terminator or Win format with CR+LF?
_____________
Code for TallyGenerator
March 21, 2006 at 3:01 pm
CHAR(13), CHAR(10), CHAR(9)
_____________
Code for TallyGenerator
March 21, 2006 at 2:19 pm
But what they have become?
_____________
Code for TallyGenerator
March 21, 2006 at 1:14 pm
Your rows will become columns. Because your ROWTERMINATOR is 'DN:'
_____________
Code for TallyGenerator
March 21, 2006 at 4:25 am
Why you did not import this file with field terminator = \n and rowterminator = 'DN:' ?
_____________
Code for TallyGenerator
March 21, 2006 at 3:43 am
Compare resultset of EXEC proc_storedproc1 to column definitions for table1.
They must be different.
_____________
Code for TallyGenerator
March 20, 2006 at 5:09 pm
You better test before you say it.
Especially when you need to update 1 value in a row.
I also cannot imagine screen with 40 values on it. So, you don't select...
_____________
Code for TallyGenerator
March 20, 2006 at 7:57 am
Viewing 15 posts - 5,461 through 5,475 (of 6,036 total)