|
|
Sorry, previously what i given response is wrong. ignore it
satish......
|
|
|
|
|
Hard to say.
There are a lot of ways to boost performance.
- Is the algorithm optimized? Are your for loops ok? (you don't perform actions in for loops that could be done outside eg.)
- Do you have GUI updates like a progress bar or something?
- Try an Ngen compilation, it might help (See MSDN)
- Can you use threads? eg Read in a block of bytes and while the DB updates, Read the next block at the same time etc...
- Did you use optimezed objects? (StringBuilder for string concatination eg.)
Hope this helps...
V.
If I don't see you in this world, I'll see you in the next one... And don't be late. (Jimi Hendrix)
|
|
|
|
|
Hi,
You are use following tips/suggestions/whatever
1. Dont use INSERT when "LOADING" the data, use BULK INSERT
2. You can convert the data into c# format, and dump it as required in some temporary file, and bulk insert data using that file. If you are good at threading, you can boost the performance considerably.
3. If you are comfortable with Dynamic SQL, use it after converting data to c# datatypes.
And if you are good in threading and dynamic SQL then you can have a boost in performance as "complete loading of a 45 GigaBytes of data to 12 tables in 1.5 hours". That is what i experienced once!
Hope that much performance is enough for now and you find it useful!
Regards,
Adeel
Do rate the reply, if it helps or even if it doesnot, because it helps the members to know, what solved the issue. Thanks.
|
|
|
|
|
Just for information, are you developing data warehouse?
Do rate the reply, if it helps or even if it doesnot, because it helps the members to know, what solved the issue. Thanks.
|
|
|
|
|
I'm Having a combobox which having items from itemtable. When table is empty then I have to show "No items" and if items are their in table then I have to show the item. So I fill datatable like
if (dataTableItems.Rows.Count >= 1)
{
cmbItem.Items.Clear();
cmbItem.DataSource = dataTableItems;
cmbItem.DisplayMember = dataTableItems.Columns["ItemName"].ColumnName;
}
else
{
cmbItem.Items.Clear();
cmbItem.Items.Add("No items");
cmbItem.Text = "No items";
}
This is working fine on form's load event.
But I have a button that will get items from other datatsource and fill the item tables. On click of the button I again fill the datatable and same code
if (dataTableItems.Rows.Count >= 1)
{
cmbItem.Items.Clear();
cmbItem.DataSource = dataTableItems;
cmbItem.DisplayMember = dataTableItems.Columns["ItemName"].ColumnName;
}
else
{
cmbItem.Items.Clear(); <-- ERROR COME HERE
cmbItem.Items.Add("No items");
cmbItem.Text = "No items";
}
But it will give error "Items collection cannot be modified when the DataSource property is set."
please help
Regards
Pankaj Joshi
|
|
|
|
|
First you should set the combobox's datasource to nothing:
cmbItem.DataSource = string.Empty;
Hope it helps.
I will use Google before asking dumb questions
|
|
|
|
|
Giving error
"Complex Databinding accepts as a datasource either as IList or an IListSource"
Regards
Pankaj Joshi
|
|
|
|
|
I tried a lot and finally write this
cmbItem.DataSource = null;
This is working fine.
Will it create problem in the future...? Please reply...:->
Dear Christian Graus your suggestion needed this time...
Regards
Pankaj Joshi
|
|
|
|
|
Wow. It's urgent with three exclamations. That makes it much more likely to get answered quickly. Wait, if I post urgent and put four exclamations in, does this mean my question will get answered before yours?
Now, please post questions with meaningful titles and respect the fact that these boards are looked after by volunteers who will get to your problem when they are ready. If your problem really is that urgent, then you should probably seek an answer in an area where people get paid to help.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Thanks for your suggestion
Regards
Pankaj Joshi
|
|
|
|
|
Maybe the forums should support canned responses. So you don't have to type the same messsage about "cross-post" or "urgent" posts 20 times a day
Take care,
Tom
-----------------------------------------------
Check out my blog at http://tjoe.wordpress.com
|
|
|
|
|
Edit Grid View
-- modified at 5:44 Thursday 15th November, 2007
|
|
|
|
|
Paramita07 wrote: Edit Grid View
Any questions there?
I will use Google before asking dumb questions
|
|
|
|
|
Set IsEditable Property true!!!
Regards
Pankaj Joshi
|
|
|
|
|
yes its workng
|
|
|
|
|
i need to send and receive file from a dial-up connection
i want to use modem in both machines for transfer files
let me know if there is some example about it or other good stuf
thanks
-- modified at 8:10 Thursday 15th November, 2007
|
|
|
|
|
The connection is irrelevant, you need to connect to another machine that has the file, and request it. Do you have an IP address and path to the file ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
i want to use modem to send and receive files and not from internet!!
|
|
|
|
|
|
i want to use modem to send and receive files and not from internet!!
|
|
|
|
|
Hello *,
I would like to ask you how I can add system time from Windows to my application.
I would like to show to user actual time of Windows to the application bar
as it's shown in standart taskbar.
regards
Petr
|
|
|
|
|
Set a timer to fire twice a second and set the text to be DateTime.Now
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Where can I get sample code that will explain how a simple web service works?
|
|
|
|
|
msdn.microsoft.com, or even the articles on this site.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|