Hi All,
How can I get default value when create an table? I try to do this:-
alter table tblRes
add CountryID int not null default dbo.getCountrybyOffice(OfficeID)
My SP:
create procedure getCountrybyOffice
(
@OfficeID int
)
As
BEGIN
SELECT CountryID
FROM tblOffice
where OfficeID=@OfficeID
END
Please advise.
Thank you.
Regards,
Micheale