Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Will this query take long time using SPT?
Message
 
To
17/11/2000 12:05:17
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00443073
Message ID:
00443171
Views:
18
I assume you are talking to SQL Server. If that is the case I don't think you will see performance decrease as the table grows.

FWIW, here is another way of getting the structure of your table

set fmtonly on
select * from mytable
set fmtonly off

I don't know if this will increase/decrease performance. But if you open a view with NODATA this is what VFP send to SQL Server.


>Hi All,
>
>Can someone please tell me whether the following query (using SQL pass-through) would take long time if the table grows into millions?
>
>=SQLExec(nMyHandle, "SELECT * FROM mytable WHERE 1=2", "mycursor")
>
>Actually what I want was the exact structure of back-end table and that is why I put a false WHERE clause.
>
>Or is there another way to get the table structure into array or cursor?
>
>Thanks for your time.
>
>Regards
>Vijay
Hector Correa
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform