Viewing 15 posts - 61 through 75 (of 196 total)
sk.panda (2/11/2010)
While executing procedure i want the output should display like
0000001005 1900-01-01 0010 SPLM 6800 ERR MSG 247387 //Desired output
But now i am getting output(wrong output)
0000001005 1988 0010 SPLM...
February 11, 2010 at 4:03 am
If you can't change it, you can do an explicit conversion e.g.
SET NOTES1 = CONVERT(VARCHAR(50),NOTES2)
February 11, 2010 at 3:57 am
What is the problem you're still having with the modified code?
February 11, 2010 at 3:49 am
Do NOTES1 and NOTES2 have the same datatype definition and length?
February 11, 2010 at 3:45 am
Please check BOL (update statement) and Google before posting your question.
Try this
UPDATE t
SET NOTES2 = s.NOTES1
FROM TABLE2 t
JOIN TABLE1...
February 11, 2010 at 2:56 am
The reason why you go from 121 to 8129 is called the multiplication effect and is indeed caused by joining the inventory table with the order(details) table. If you have...
February 11, 2010 at 2:32 am
Ok - let's see if this helps.
Create a staging table (similar to your final table).
Load it with the flat file using a data flow task.
Use an Execute SQL Task to...
February 11, 2010 at 1:53 am
Where and when do you get the error? Can you post your package or some screenshots?
To make the package successful, raise the MaximumErrorCount property at the package level.
You may also...
February 11, 2010 at 1:37 am
I'm a bit confused as you use SQL 2005 and DTS in one sentence. Hope you mean SSIS?
Personally I would solve it as Jeff describes, but if creating the staging...
February 11, 2010 at 1:13 am
Paarthasarathy (2/10/2010)
Yet another way 🙂select A.* from emp A
where A.datett=(select max(C.datett)
from emp C
where A.eid = C.eid
and C.datett <= '06/06/2006'
)
and exists
(
select '' from emp B
where A.eid = B.eid
and B.act='Y'
)
Paarthasarathy,...
February 11, 2010 at 1:01 am
Jeff Moden (2/10/2010)
Nabha (2/10/2010)
Maybe I'm missing something but could it be as simple as this?
Regards,
Willem
That would give the records even if the employee is not active now.
...
February 11, 2010 at 12:58 am
There's probably many ways to solve this, but a straightfoward one is to put the line breaks in the ISNULL like this:
select isnull(@a,'')+ char(13) + isnull(@b+ char(13),'') + isnull(@c,'') +char(13)+...
February 11, 2010 at 12:50 am
I can't reproduce your error unless I execute the statements one by one. Do you execute all three of them as a single batch? By this I mean either select...
February 11, 2010 at 12:16 am
dateadd in BOL
and a great post about dates in T-SQL
February 10, 2010 at 8:22 am
Just for the sake of completeness, here are two more alternatives:
- Create a view that combines the master and detail table into 1 and use an instead of insert trigger....
February 10, 2010 at 8:18 am
Viewing 15 posts - 61 through 75 (of 196 total)