Click here to Skip to main content
16,004,828 members
Home / Discussions / Database
   

Database

 
GeneralRe: Sending mail.. Pin
Krish - KP1-Feb-08 19:25
Krish - KP1-Feb-08 19:25 
GeneralRe: Sending mail.. Pin
Marek Grzenkowicz4-Feb-08 0:04
Marek Grzenkowicz4-Feb-08 0:04 
GeneralTrigger for Replication database table... Pin
Talsaniya Jayesh1-Feb-08 5:48
professionalTalsaniya Jayesh1-Feb-08 5:48 
QuestionHow to Pass Parameter to a Scheduled Job Pin
Neeraj Kr1-Feb-08 1:39
Neeraj Kr1-Feb-08 1:39 
AnswerRe: How to Pass Parameter to a Scheduled Job Pin
Michael Potter1-Feb-08 8:45
Michael Potter1-Feb-08 8:45 
QuestionWhat is Wrong with the Following Query Pin
Vimalsoft(Pty) Ltd1-Feb-08 0:36
professionalVimalsoft(Pty) Ltd1-Feb-08 0:36 
AnswerRe: What is Wrong with the Following Query Pin
Tobias Schoenig1-Feb-08 1:34
Tobias Schoenig1-Feb-08 1:34 
GeneralRe: What is Wrong with the Following Query Pin
Vimalsoft(Pty) Ltd1-Feb-08 1:45
professionalVimalsoft(Pty) Ltd1-Feb-08 1:45 
hi Thanks for your reply

i wrote it like this

<br />
if Exists(select * from sde.Property_Backup p1<br />
where substring(p1.func_key,1,5)='GEOSS' <br />
aND Exists (select p2.Property_ID,p2.Lis_key,p2.Func_key,<br />
p2.Attrib_code<br />
from sde.Property_Backup p2<br />
where p2.func_key = 'PV000000'<br />
And p1.lis_key = p2.lis_key<br />
And P2.aCTIVE =1))<br />
begin<br />
<br />
Update p2<br />
set p2.Attrib_code = p1.Attrib_code<br />
where p2.lis_key = p1.lis_key<br />
and substring(p2.func_key,1,5)='GEOSS' <br />
And P1.aCTIVE =1<br />
end<br />
<br />
<br />
and It gives me an Error <br />
<br />


Msg 208, Level 16, State 1, Line 10
Invalid object name 'p2'.
/pre&gt;.



the Problem happenes on the Update.


Thanks

Vuyiswa Maseko,

Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding

VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za


GeneralRe: What is Wrong with the Following Query Pin
Tobias Schoenig1-Feb-08 1:53
Tobias Schoenig1-Feb-08 1:53 
GeneralRe: What is Wrong with the Following Query Pin
Vimalsoft(Pty) Ltd1-Feb-08 7:21
professionalVimalsoft(Pty) Ltd1-Feb-08 7:21 
GeneralHelp with this Complecated Query Pin
Vimalsoft(Pty) Ltd31-Jan-08 20:47
professionalVimalsoft(Pty) Ltd31-Jan-08 20:47 
QuestionSelect Distinct question Pin
JohnnyHax31-Jan-08 20:07
JohnnyHax31-Jan-08 20:07 
GeneralRe: Select Distinct question Pin
neilarnold31-Jan-08 20:48
neilarnold31-Jan-08 20:48 
GeneralRe: Select Distinct question Pin
Veldrain1-Feb-08 19:33
Veldrain1-Feb-08 19:33 
GeneralRe: Select Distinct question Pin
Mycroft Holmes3-Feb-08 22:00
professionalMycroft Holmes3-Feb-08 22:00 
QuestionTrigger on date change? Pin
Harvey Saayman31-Jan-08 18:54
Harvey Saayman31-Jan-08 18:54 
GeneralRe: Trigger on date change? Pin
Rocky#31-Jan-08 19:46
Rocky#31-Jan-08 19:46 
GeneralRe: Trigger on date change? Pin
Harvey Saayman31-Jan-08 19:49
Harvey Saayman31-Jan-08 19:49 
GeneralRe: Trigger on date change? Pin
neilarnold31-Jan-08 20:55
neilarnold31-Jan-08 20:55 
QuestionHow to save records as individual files & eliminate double \\ Pin
Snowman5831-Jan-08 18:21
Snowman5831-Jan-08 18:21 
GeneralBackUp Pin
sirisha guttikonda31-Jan-08 18:09
sirisha guttikonda31-Jan-08 18:09 
GeneralRe: BackUp Pin
imsathy31-Jan-08 19:16
imsathy31-Jan-08 19:16 
GeneralProblem related to getting date Pin
biswa4731-Jan-08 2:43
biswa4731-Jan-08 2:43 
AnswerRe: Problem related to getting date Pin
Ashfield31-Jan-08 4:16
Ashfield31-Jan-08 4:16 
GeneralGetting the values of the affected row. Pin
John.L.Ponratnam30-Jan-08 22:27
John.L.Ponratnam30-Jan-08 22:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.