dbTalk Databases Forums  

Use unique key for Sqlserver view for updates

comp.databases.ms-sqlserver comp.databases.ms-sqlserver


Discuss Use unique key for Sqlserver view for updates in the comp.databases.ms-sqlserver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
addepad
 
Posts: n/a

Default Use unique key for Sqlserver view for updates - 02-22-2008 , 05:45 AM






I use an MsAccess frontend app that uses a 2 table view defined in
Sql(2005). When i link the view manually I can say (and cache in
Access) what field will be used as as primary key. This way I can
update data in the view (in both underlying tables). In fact the same
that is possible when I open the view via Sql management console.
But... normally I don't link tables manually. But then Access can't
get the information from Sqlserver what field can be used as a unique
key.
Is there a way to define such a thing in Sqlserver. Something like a
'hint' during the view definition??
Or does someone know a workaround?

Reply With Quote
  #2  
Old   
Tom van Stiphout
 
Posts: n/a

Default Re: Use unique key for Sqlserver view for updates - 02-22-2008 , 08:05 AM






On Fri, 22 Feb 2008 03:45:39 -0800 (PST), addepad <addepad (AT) gmail (DOT) com>
wrote:

Some views can be indexed. There are many limitations, but if you can
index yours, there is a chance MsAccess will see it. You'd have to try
that to find out.
There is no documented way to programmatically set the index fields in
MsAccess.

-Tom.


Quote:
I use an MsAccess frontend app that uses a 2 table view defined in
Sql(2005). When i link the view manually I can say (and cache in
Access) what field will be used as as primary key. This way I can
update data in the view (in both underlying tables). In fact the same
that is possible when I open the view via Sql management console.
But... normally I don't link tables manually. But then Access can't
get the information from Sqlserver what field can be used as a unique
key.
Is there a way to define such a thing in Sqlserver. Something like a
'hint' during the view definition??
Or does someone know a workaround?

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.