Re: ORDER BY in View and ADP Form
- From: "aaron.kempf@xxxxxxxxx" <aaron.kempf@xxxxxxxxx>
- Date: 15 Sep 2006 07:21:06 -0700
you're right
im disagreeing with that David Portas
why should everything be a sproc, david? i mean-- please tell us
please enlighten us
OH YEAH
I forgot.. Microsoft finds BEANER RETARDS TO BE MVPs. ANYONE
ENLIGHTENED WITH SQL ISNT ELIGIBLE FOR ACCESS MVP.
WHY DOES EVERY ACCESS MVP DIPSHIT IN THE WORLD NOT UNDERSTAND THE
CONCEPT OF ADP?
Why aren't there any MVPs-- the people with the credibility to work for
*CHANGE* that PUSH MICROSOFT TO REMAIN COMMITTED TO ADP?
bunch of god-damn WUSSES
lose the training wheels
Baz wrote:
I don't think it's me you are disagreeing with (for once).
<aaron.kempf@xxxxxxxxx> wrote in message
news:1158272975.295804.190770@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
i disagree keep everything in a view unless it MUST be in a sprocMiddleName
for starters; views allow you to use 'Analysis services'
try building a cube based off of a sproc lol
Baz wrote:
Or you could just set the RecordSource to:
SELECT * FROM vwPatientInformation ORDER BY LastName, FirstName,
of
<imani_technology_spam@xxxxxxxxx> wrote in message
news:1158179665.283300.10830@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
This form is for data entry. Will the user be able to modify, insert,
or delete records if the form is based on a stored procedure instead
rowsa view?
David Portas wrote:
imani_technology_spam@xxxxxxxxx wrote:
When I open up a form in an Access ADP to access this view, the
Isare not sorted. I am using MS Access 2003 and MS SQL Server 2005.
used:there a reason why the rows are not sorted? Here is the code I
DOB,
CREATE VIEW [dbo].[vwPatientInformation]
AS
SELECT TOP (100) PERCENT LastName, MiddleName, FirstName, Suffix,
isMedicalRecordNumber, Prefix
FROM dbo.Patients
ORDER BY LastName, FirstName, MiddleName
Views have no fixed ordering in SQL Server. In that respect a view
behaves exactly like a table. The sort order returned by a query
against a view is undefined unless you specify ORDER BY in the query
(not the view).
The TOP 100 PERCENT modifier in your view does nothing useful so I
recommend you remove it and put your query in a stored procedure
instead. Access also gives you the option of doing the sorting
client-side, which is probably not desirable unless the result set
contentreasonably small.
--
David Portas, SQL Server MVP
Whenever possible please post enough code to reproduce your problem.
Including CREATE TABLE and INSERT statements usually helps.
State what version of SQL Server you are using and specify the
of any error messages.
SQL Server Books Online:
http://msdn2.microsoft.com/library/ms130214(en-US,SQL.90).aspx
--
.
- Follow-Ups:
- Re: ORDER BY in View and ADP Form
- From: Baz
- Re: ORDER BY in View and ADP Form
- References:
- ORDER BY in View and ADP Form
- From: imani_technology_spam
- Re: ORDER BY in View and ADP Form
- From: David Portas
- Re: ORDER BY in View and ADP Form
- From: imani_technology_spam
- Re: ORDER BY in View and ADP Form
- From: Baz
- Re: ORDER BY in View and ADP Form
- From: aaron.kempf@xxxxxxxxx
- Re: ORDER BY in View and ADP Form
- From: Baz
- ORDER BY in View and ADP Form
- Prev by Date: 70-431 exam
- Next by Date: Re: Quick Access 2003 ADP/SQL Server 2005 question
- Previous by thread: Re: ORDER BY in View and ADP Form
- Next by thread: Re: ORDER BY in View and ADP Form
- Index(es):
Relevant Pages
|