473,387 Members | 1,574 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

view result differs from the result in SQL Server

Hello,

I have made a view in SQL Server, that consists of a join with another
view and a table. That other view
In Access, I have linked the view as a linked table. When I view the
result there, the result is not the same as in SQL Server. The problem
is that in some cases one of the joins returns two exact the same
records in stead of two different ones.

An now, the really weird part is, that when I set the Recordsource
property of the form to a select statement from the view, the form
returns the correct records, although when I run the select statement
in the Recordsource property as a query, again the wrong results are
returned.

Is there anybody who has a clue of what can be the problem here?

Thanks in advance,
Sandra
Nov 12 '05 #1
2 1507
Sandra,

When you link your view, make sure you correctly identify the fields
constituting uniqueness.

"Sandra Setz" <ss***@wxs.nl> wrote in message
news:74*************************@posting.google.co m...
Hello,

I have made a view in SQL Server, that consists of a join with another
view and a table. That other view
In Access, I have linked the view as a linked table. When I view the
result there, the result is not the same as in SQL Server. The problem
is that in some cases one of the joins returns two exact the same
records in stead of two different ones.

An now, the really weird part is, that when I set the Recordsource
property of the form to a select statement from the view, the form
returns the correct records, although when I run the select statement
in the Recordsource property as a query, again the wrong results are
returned.

Is there anybody who has a clue of what can be the problem here?

Thanks in advance,
Sandra

Nov 12 '05 #2
It sounds like, when linking the view, when you were asked to indicate which
fields uniquely identify a row, you gave a combination of fields that does not
completely define a unique row in the view output.

On 11 Dec 2003 04:51:42 -0800, ss***@wxs.nl (Sandra Setz) wrote:
Hello,

I have made a view in SQL Server, that consists of a join with another
view and a table. That other view
In Access, I have linked the view as a linked table. When I view the
result there, the result is not the same as in SQL Server. The problem
is that in some cases one of the joins returns two exact the same
records in stead of two different ones.

An now, the really weird part is, that when I set the Recordsource
property of the form to a select statement from the view, the form
returns the correct records, although when I run the select statement
in the Recordsource property as a query, again the wrong results are
returned.

Is there anybody who has a clue of what can be the problem here?

Thanks in advance,
Sandra


Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: sci | last post by:
Could someone help me by answering the questions below? What's a cursor? What's difference between Query and View? Is a RecordSet just part of a table? Can it be part of a query of view? If...
5
by: ScottyBaby | last post by:
Hi, I've run into a curious problem with MS SQL Server 8.0. Using sp_help and SQL Query Analyzer's object browser to view the columns returned by a view, I find that sp_help is reporting stale...
3
by: YURYSSG | last post by:
I migrated a DB from Access 2000 to SQLserver 2000. The tables are OK, but I see the old Access views... as TABLE in SQLserver!! Any suggestions? --
2
by: jc | last post by:
Hi. A question I have is with regard to the use of views with SQL2000. If I have a view called "A_view" and used in the following manner; ---------------- SELECT ... FROM A_View WHERE .... ...
4
by: stacdab | last post by:
We have a partitioned view with 4 underlying tables. The view and each of the underlying tables are in seperate databases on the same server. Inserts and deletes on the view work fine. We then...
6
by: Paolo Pignatelli | last post by:
I have an aspx code behind page that goes something like this in the HTML view: <asp:HyperLink id=HyperLink1 runat="server" NavigateUrl='<%#"mailto:" &amp;...
104
by: Beowulf | last post by:
I have the view below and if I use vwRouteReference as the rowsource for a combo box in an MS Access form or run "SELECT * FROM vwRouteReference" in SQL Query Analyzer, the rows don't come through...
12
by: Andrew Lias | last post by:
I've been given a task that I believe is, basically, impossible, but I'd like to see if there's a way to do it. What my boss wants me to do is to create a view, in SQL Server 2000, that will...
12
by: Doug | last post by:
Hi, I learned a little about the model view presenter pattern at a conference this last week and am experimenting with it. It's working pretty well but I have a question. I am trying to use...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.