Re: A question about views in sql server
- From: "Mohamed Shafiee" <shafee_mohamed@xxxxxxxxxxx>
- Date: Sat, 28 May 2005 08:54:25 +0500
Actually I tried to do that without success.
Could you please tell me how?
Here is what I did:
I set a relationship between two tables using the database diagram, which
should be a one-to-one relationship and is a one-to-many relationship, and
made a view which would combine the fields of both table. When I try to edit
the records, the status bar says recordset is not updatable... and also new
records cannot be added to this view. I have the primary key set in one
table, and the foreign key set in the other table. I don't know how to make
a one-to-one relationship in SQL server, and make an updatable view.
Please help me.
Shafiee.
"James Goodman" <jamesATnorton-associates.co.ukREMOVE> wrote in message
news:een136gYFHA.2420@xxxxxxxxxxxxxxxxxxxxxxx
> In a word, yes!
>
> As long as you have PK/FK fields on both tables (so that both tables are
> updateable individually), then this shouldnt be a problem.
>
> --
> Cheers,
>
> James Goodman
> "Mohamed Shafiee" <shafee_mohamed@xxxxxxxxxxx> wrote in message
> news:OKx3c1gYFHA.3712@xxxxxxxxxxxxxxxxxxxxxxx
>> Hi,
>>
>> I just want to find out if it is possible to create views in SQL server
>> which can be updated in an adp project. Can we create a one-to-one
>> relationship between two tables in SQL server using database diagram, and
>> achieve an updateable view? How can we do this in MSAccess adp projects?
>>
>> Shafiee.
>>
>
>
.
- Follow-Ups:
- Re: A question about views in sql server
- From: James Goodman
- Re: A question about views in sql server
- References:
- A question about views in sql server
- From: Mohamed Shafiee
- Re: A question about views in sql server
- From: James Goodman
- A question about views in sql server
- Prev by Date: Re: Smartest way toa add records manually
- Next by Date: Installing SQL Server 2000 on a partition shared with WIN XP
- Previous by thread: Re: A question about views in sql server
- Next by thread: Re: A question about views in sql server
- Index(es):
Relevant Pages
|