Welcome to dbForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Use unique key for Sqlserver view for updates

 
   Database Forums (Home) -> General Discussions RSS
Next:  New to Glassfish with PostgreSQL  
Author Message
addepad

External


Since: Feb 22, 2008
Posts: 1



(Msg. 1) Posted: Fri Feb 22, 2008 3:45 am
Post subject: Use unique key for Sqlserver view for updates
Archived from groups: microsoft>public>sqlserver>programming, others (more info?)

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?

 >> Stay informed about: Use unique key for Sqlserver view for updates 
Back to top
Login to vote
Tom van Stiphout4

External


Since: Jun 25, 2004
Posts: 144



(Msg. 2) Posted: Fri Feb 22, 2008 7:05 am
Post subject: Re: Use unique key for Sqlserver view for updates [Login to view extended thread Info.]
Archived from groups: comp>databases>ms-sqlserver (more info?)

On Fri, 22 Feb 2008 03:45:39 -0800 (PST), addepad
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.


>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?

 >> Stay informed about: Use unique key for Sqlserver view for updates 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Streaming database updates? - Hi, I have a database that I update every minute with financial data. On another machine, a different user will need to get these updates as soon as they occur. They will probably be using Excel to do this. What is the best way to get the data into..

Select unique - We have a transaction record that, for the sake of brevity, I will use a simple paradigm to convey my need: A sales clerk sells several pairs of shoes over the period of a day, each & every day the clerk works. Each transaction is recorded in a..

Can anybody help? Is there an undocumented unique record k.. - Hi Folks, I come from an Informix background, (pauses for the laughter to die down), where SQL can access a hidden attribute, (ROWID), that uniquely identifies each record in a table at that point in time. It's similar to an IDENTITY attribute but it is...

To Create Unique table names and access them in code... - Hi all, My program is a central data processing application built in ASP. We have different companies that use different web pages on another web application (from different countries) to load some inventory data (merchandise - clothes). Here is my....

SQLServer 2005 XML DataType is (almost) useless!!! (Please.. - The XML Datatype does not support the case-insensitive search makes the XML DataType (almost) useless, if I stored the xml in the XML column, I certainly want to search it, if I could not performance case-insensitive search, why do I need store the data....
   Database Forums (Home) -> General Discussions All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]