Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ALTER TABLE is slow
Message
 
 
To
03/08/2002 14:08:11
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00685910
Message ID:
00685911
Views:
15
This message has been marked as the solution to the initial question of the thread.
It takes only .02 seconds on my PC. Anyway, you can try to run it as one command. It should be faster.
ALTER TABLE ALIAS() ADD COLUMN Url M ;
	 ADD COLUMN Image C(20) ;
	 ADD COLUMN Image2 C(20) ;
	 ADD COLUMN ImageWidth N(2) ;
	 ADD COLUMN ImageHeigh N(2) ;
	 ADD COLUMN CheckItem L ;
	 ADD COLUMN Expand L
>When I call a method in my object which contains this:
>
>
>ALTER TABLE ALIAS() ADD COLUMN Url M
>ALTER TABLE ALIAS() ADD COLUMN Image C(20)
>ALTER TABLE ALIAS() ADD COLUMN Image2 C(20)
>ALTER TABLE ALIAS() ADD COLUMN ImageWidth N(2)
>ALTER TABLE ALIAS() ADD COLUMN ImageHeigh N(2)
>ALTER TABLE ALIAS() ADD COLUMN CheckItem L
>ALTER TABLE ALIAS() ADD COLUMN Expand L
>
>
>It takes about 2 seconds to execute those lines which is extremely slow. I am doing this on a cursor which only has two records. Why is it like that? Any way to improve that speed?
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform