Click here to Skip to main content
15,881,938 members
Home / Discussions / Database
   

Database

 
AnswerRe: how to encrypt stored procedure. Pin
Eddy Vluggen6-Mar-09 0:03
professionalEddy Vluggen6-Mar-09 0:03 
QuestionRe: how to encrypt stored procedure. Pin
Manprit.bagga6-Mar-09 23:45
Manprit.bagga6-Mar-09 23:45 
AnswerRe: how to encrypt stored procedure. Pin
Adrian Pasik7-Mar-09 3:44
Adrian Pasik7-Mar-09 3:44 
Questionsql query and index Pin
Shajeel5-Mar-09 17:36
Shajeel5-Mar-09 17:36 
QuestionClient would like to search.... Everything Pin
thrakazog5-Mar-09 14:00
thrakazog5-Mar-09 14:00 
AnswerRe: Client would like to search.... Everything Pin
Eddy Vluggen6-Mar-09 0:01
professionalEddy Vluggen6-Mar-09 0:01 
AnswerRe: Client would like to search.... Everything [modified] Pin
Eddy Vluggen7-Mar-09 3:00
professionalEddy Vluggen7-Mar-09 3:00 
Questionerror? Pin
suni_dotnet5-Mar-09 11:27
suni_dotnet5-Mar-09 11:27 
Hi All,
Iam Newbie...


IF EXISTS (SELECT RoomID,DateWhenFilled,DateWhenFree,TimeForHouseKeeping
FROM HouseKeeping)

UPDATE HouseKeeping
SET DateWhenFilled=PresidentialSuite.DateWhenFilled,
DateWhenFree=PresidentialSuite.DateWhenFree,
TimeForHouseKeeping=PresidentialSuite.TimeForHouseKeeping
where (HouseKeeping.RoomID = PresidentialSuite.RoomID
and PresidentialSuite.Available='no')

ELSE

INSERT INTO HouseKeeping (RoomID,DateWhenFilled,DateWhenFree,TimeForHouseKeeping)
select PresidentialSuite.RoomID,PresidentialSuite.DateWhenFilled,PresidentialSuite.DateWhenFree,
PresidentialSuite.TimeForHouseKeeping
from PresidentialSuite
where PresidentialSuite.Available='no';

Structure of both tables are not same.
with this Stored Procedure, Iam getting the error...
Msg 4104, Level 16, State 1, Line 4
The multi-part identifier "PresidentialSuite.RoomID" could not be bound.
Msg 4104, Level 16, State 1, Line 4
The multi-part identifier "PresidentialSuite.Available" could not be bound.

Iam unable to find, what the error is?
Please help
AnswerRe: error? Pin
Blue_Boy5-Mar-09 13:04
Blue_Boy5-Mar-09 13:04 
GeneralRe: error? Pin
suni_dotnet5-Mar-09 13:24
suni_dotnet5-Mar-09 13:24 
GeneralRe: error? Pin
Blue_Boy5-Mar-09 13:43
Blue_Boy5-Mar-09 13:43 
GeneralRe: error? Pin
suni_dotnet5-Mar-09 13:48
suni_dotnet5-Mar-09 13:48 
GeneralRe: error? Pin
Blue_Boy5-Mar-09 13:50
Blue_Boy5-Mar-09 13:50 
GeneralRe: error? Pin
suni_dotnet5-Mar-09 13:56
suni_dotnet5-Mar-09 13:56 
GeneralRe: error? Pin
Blue_Boy5-Mar-09 14:21
Blue_Boy5-Mar-09 14:21 
GeneralRe: error? Pin
suni_dotnet5-Mar-09 15:39
suni_dotnet5-Mar-09 15:39 
GeneralRe: error? Pin
Blue_Boy5-Mar-09 15:46
Blue_Boy5-Mar-09 15:46 
Questionregister password Pin
cyannaz5-Mar-09 6:42
cyannaz5-Mar-09 6:42 
QuestionRe: register password Pin
cyannaz5-Mar-09 16:11
cyannaz5-Mar-09 16:11 
Questionsp execute problem Pin
Dilum5-Mar-09 6:20
Dilum5-Mar-09 6:20 
AnswerRe: sp execute problem Pin
Rami Said Abd Alhalim9-Mar-09 22:03
Rami Said Abd Alhalim9-Mar-09 22:03 
QuestionFilling a table with select statement Pin
Muammar©5-Mar-09 1:59
Muammar©5-Mar-09 1:59 
AnswerRe: Filling a table with select statement Pin
Blue_Boy5-Mar-09 2:27
Blue_Boy5-Mar-09 2:27 
GeneralRe: Filling a table with select statement Pin
Muammar©6-Mar-09 4:37
Muammar©6-Mar-09 4:37 
QuestionMultipart Problem on the Following Query Pin
Vimalsoft(Pty) Ltd4-Mar-09 23:25
professionalVimalsoft(Pty) Ltd4-Mar-09 23:25 

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.