Microsoft SQL Server
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMicrosoft SQL Server

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old July 9th, 2004, 02:35 PM
Frank_N Frank_N is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 1 Frank_N User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
SELECT . . . ORDER BY - SQL 2000 vs. JET 4

I have 2 data sets, one in a SQL 2000 database, the other in a Jet 4.0
database. I am using ADO, and a select statement to extract an
identically keyed subset with an ORDER BY for a field (part number).
Initially, an extract is made from the SQL database to create the Jet
database. The Jet database is updated, then I am using the Jet
database to update the SQL database (with VB6). Fields, other than the
part number are updated (like quantity).

The order in which the "ORDER BY" clause returns the data is different
in SQL 2000 vs. Jet 4.0, therefore I cannot "match" the data with
equal db.MoveNext statements. (Note that I have simplified what is
being done for this query). This change in ORDER BY for the Jet
database is documented at:

http://support.microsoft.com/default.aspx?scid=kb;en-us;q236952

Does anyone have any ideas, short of seperate SELECT statements, on
how to make the ORDER BY statements work the same? (Note, seperate
SELECT statment are not an option as I have simplified what is being
done). I really do not care how the data is ordered, I just want
consistancy.

Frank

Reply With Quote
  #2  
Old July 9th, 2004, 08:59 PM
stumpy's Avatar
stumpy stumpy is offline
May contain nuts.
Dev Articles Regular (2000 - 2499 posts)
 
Join Date: Aug 2002
Location: Sydney, AU
Posts: 2,058 stumpy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 8 m 57 sec
Reputation Power: 9
Send a message via ICQ to stumpy Send a message via MSN to stumpy
I'm not sure what exactly you mean, ORDER BY statements work the same across all DB's - you are only able to choose between ASC & DESC...unless of course you mean that the SQLServer DB is set to case/accent sensitivity. Regardless,I would think you would want to match the primary keys when updating the SQLServer DB... relying on the ordering would be prone to errors.
__________________
DevArticles Moderator
BlueSix - Web Development and Consulting

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMicrosoft SQL Server > SELECT . . . ORDER BY - SQL 2000 vs. JET 4


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT