No I am just trying to do an update in the customers table
the Reseller field from the Select Was used by another apllication
CREATE PROCEDURE UDSP_Customers_GetData
(
@Customer_UID uniqueidentifier = NULL
 
AS
SET NOCOUNT ON
SELECT cs.*, rs.reseller
FROM Customers cs JOIN
Reseller rs ON cs.reseller_UID = rs.reseller_UID
WHERE Customer_UID = @Customer_UID
_________________________________________________________________
CREATE PROCEDURE UDSP_Customers_Update
(
@Customer_UID uniqueidentifier ,
@CustomerName varchar(50) = NULL,
@CustomerStreet varchar(50) = NULL,
@CustomerStreet2 varchar(50) = NULL,
@CustomerCity varchar(32) = NULL,
@CustomerState char(2) = NULL,
@CustomerZIP varchar(9) = NULL,
@LCon_Name varchar(50) = NULL,
@LCon_Phone varchar(20) = NULL,
@LCon_Ext varchar(4) = NULL,
@LCon_Mobile varchar(20) = NULL,
@LCon_Fax varchar(20) = NULL,
@LCon_EmailAddr varchar(80) = NULL,
@Status char(16) = NULL,
@DealerNum char(7) = NULL,
@ODNum char(7) = NULL,
@OD2Num char(7) = NULL,
@UpdatedBy varchar(16) ,
@CreatedBy varchar(16) = NULL,
@Updateddt datetime = NULL,
@Createddt datetime = NULL,
@Customer_UID_ORGPK uniqueidentifier = NULL,
@Reseller_UID uniqueidentifier = NULL,
@reseller varchar(16) = NULL
)
AS
SET NOCOUNT ON
UPDATE customers SET
CustomerName = ISNULL(@CustomerName, CustomerName),
CustomerStreet = ISNULL(@CustomerStreet, CustomerStreet),
CustomerStreet2 = ISNULL(@CustomerStreet2, CustomerStreet2),
CustomerCity = ISNULL(@CustomerCity, CustomerCity),
CustomerState = ISNULL(@CustomerState, CustomerState),
CustomerZIP = ISNULL(@CustomerZIP, CustomerZIP),
LCon_Name = ISNULL(@LCon_Name, LCon_Name),
LCon_Phone = ISNULL(@LCon_Phone, LCon_Phone),
LCon_Ext = ISNULL(@LCon_Ext, LCon_Ext),
LCon_Mobile = ISNULL(@LCon_Mobile, LCon_Mobile),
LCon_Fax = ISNULL(@LCon_Fax, LCon_Fax),
LCon_EmailAddr = ISNULL(@LCon_EmailAddr, LCon_EmailAddr),
Status = ISNULL(@Status, Status),
DealerNum = ISNULL(@DealerNum, DealerNum),
ODNum = ISNULL(@ODNum, ODNum),
OD2Num = ISNULL(@OD2Num, OD2Num),
Reseller_UID = ISNULL(@Reseller_UID, Reseller_UID),
UpdatedBy = UpdatedBy,
UpdatedDt = GETDATE()
WHERE Customer_UID = @Customer_UID