D
Doug Gifford
Access XP ADP
SQL server 2000
ALTER VIEW dbo.qryShowAcctNos
AS
SELECT TOP 100 PERCENT mnyAccounts.CaseNo,
cast([mnyAccounts].[AccountNumber] AS bigint) AS [AcctNo], 'A' AS Source
FROM mnyAccounts
UNION ALL
SELECT TOP 100 PERCENT rmnyAccounts.CaseNo,
cast([rmnyAccounts].[AccountNumber] AS bigint) AS [AcctNo], 'R' AS Source
FROM rmnyAccounts
ORDER BY [AcctNo]
When running the Union - Order By in Query Analyzer the recordset is sorted
correctly.
When selecting and opening the View, the returned recordset is not sorted by
[AcctNo]. (Appears to be sorted by CaseNo)
Why am I having this issue?
SQL server 2000
ALTER VIEW dbo.qryShowAcctNos
AS
SELECT TOP 100 PERCENT mnyAccounts.CaseNo,
cast([mnyAccounts].[AccountNumber] AS bigint) AS [AcctNo], 'A' AS Source
FROM mnyAccounts
UNION ALL
SELECT TOP 100 PERCENT rmnyAccounts.CaseNo,
cast([rmnyAccounts].[AccountNumber] AS bigint) AS [AcctNo], 'R' AS Source
FROM rmnyAccounts
ORDER BY [AcctNo]
When running the Union - Order By in Query Analyzer the recordset is sorted
correctly.
When selecting and opening the View, the returned recordset is not sorted by
[AcctNo]. (Appears to be sorted by CaseNo)
Why am I having this issue?