Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Unable to get random generation with OleDb
Message
From
18/09/2006 09:33:11
 
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01154512
Message ID:
01154655
Views:
13
>Don't think that's true - it *is* true for each connection so you should be able to do something like:
>.CommandText = "RAND(-1)"
>.ExecuteNonQuery()
>.CommandText = "SELECT TOP 10 RAND()....."
>.Fill(...)
I send this command ok but the result of the SQL remains the same. Basically, I am extracting five records that should be random. For the five records, everytime I run the SQL, I get a random value but it is the same for all records.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Reply
Map
View

Click here to load this message in the networking platform