Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Unable to get random generation with OleDb
Message
From
18/09/2006 04:53:55
 
 
To
17/09/2006 18:44:24
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:
01154562
Views:
13
This message has been marked as the solution to the initial question of the thread.
Hi,

>That's the problem. In OleDb, each call is within in its own environment.

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(...)
HTH,
Viv
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform