Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Optimizing speed result on this code
Message
From
06/02/2008 23:54:40
 
 
To
06/02/2008 02:58:37
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01289437
Message ID:
01290296
Views:
15
>>>- If you can apply SQL commands to a DataTable, then for each column in each DataTable you might be able to build an UPDATE statement. Fox pseudocode:
>>>
>>>UPDATE SomeDataTable SET ;
>>>  SomeColumn = SomeDefaultValue ;
>>>  WHERE ISNULL( SomeColumn )
>>>
>>
>>Is there a way to apply some SQL command on the dataset? I do not want to change the existing data itself.
>
>Hmm, I did a quick Google and couldn't find any references for how to do this. Maybe KG or BB can jump in and let us know.



Nope, AFAIK, there's no way to do an Update on a DataTable. I don't think they've put that capability in LINQ either.

Looks like Michel is stuck using Rick's and Thomas' suggestions for optimizing his loops.

~~Bonnie


>
>I did run into a link that might speed things up a bit if you still have to loop: http://www.knowdotnet.com/articles/adoenums.html
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Reply
Map
View

Click here to load this message in the networking platform