|
Don't cross post
only two letters away from being an asset
|
|
|
|
|
hi
i want to create a variable based connection string in sql server ,
i want to give data source field in the connection string after getting it from a computer name variable , is that possible . if so how ,, can any body tell me the syntax
hello
|
|
|
|
|
Data Source=[MachineName]; Initial Catalog=....
If the database in on the machine the application is running on you can use
Data Source=.; Initial Catalog=...
only two letters away from being an asset
|
|
|
|
|
|
pls help me that how i populate the data of a selected row from one datagridview to another datagridview.
i need your help.
thanks in advance
regards
taniya banerjee
mail me to -
taniyabanerjee@rediffmail.com
|
|
|
|
|
Hallo,
the data shown in a datagridview come from the datasource, which can contain e.g. a Dataset or a datatable. By modifing them the grid display is also altered.
To change data you can do e.g.
datatabel1.rows[23][53]=datatable2.rows[65][2]
//copy cell in row65 column2 to row23 column53 in datatable2
or
datatabel1.rows.add(somedatarow)
I hope it helps.
cu
|
|
|
|
|
Hello friends,
How can i make a web service interface which can access using HTTP POST Method (not by SOAP Method). Means request and response in xml format.
If anyone has idea about this please help me.......
Thanks
Rgds
Nithin
|
|
|
|
|
i want to add oracleDataAdapter in the data tab in the visual studio .net 2005
when press choose item then navigate to oracleDataAdapter check it and press OK.....surprisingly it doesn't appeared in the tool box
what is the solution?
thanks in advance
haitham
|
|
|
|
|
You did every thing right. Are you looking under the right tab in the ToolBox? I put them under the General tab and they popped up just fine.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
i did that under the general tab and data tab but it didn't work
when i search for a solution to this problem i read that there are controls should be registered before added to the toolbox
should it? and if how can i do that?
tanks for ur attention to answer me
haitham
|
|
|
|
|
i forgot to mention that i want to add these controls in web project not in windows project as i did it successfully in windows
thanks in advance
haitham
|
|
|
|
|
Hi,
Does anyone ever manipulate the L1, L2 cache directly when writing managed application for Windows? Is it possible to load the whole application in L1 or L2 cache. I was told by my boss I should load my application into L1 or L2 cache for performance reason. As I've never written such code before, I'm wondering whether it can be done. Hope you guys can give me a few pointers.
Thanks,
chew
|
|
|
|
|
AFAIK you can't do it directly, since the processor keeps whatever it used most recently in the cache. What you can do is make the inner loop of your most computationally intensive section of code small enough that it can fit in the cache entirely. You also want to write it so the working set of your data will also fit in the data cache completely.
--
Rules of thumb should not be taken for the whole hand.
|
|
|
|
|
Thanks. Does that also mean I can't manipulate the cache if I'm writing unmanaged application using language such as unmanaged c++.net?
chew
|
|
|
|
|
What kind of performance benefit do you think you'll get over the Windows Task Scheduler and the on-chip Cache Manager?
More importantly, without regard to its feasibility, what would it cost you to develop such a mechanism versus it's best POSSIBLE performance benefit? (Assuming there are no side-effects on the rest of the system, of course)
Now, recalculate that cost, throwing in developing fixes for the inevitable problems something like this will generate.
Is it really worth it?
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Hi,
Pardon me. I've yet to develop an application that needs to take into consideration on windows task scheduler and on-chip cache manager. I don't have any comment on that. I was told it will be faster to move data from L1, L2 cache. I'm not sure how significant in term of performance. Do you think you can enlighten me from your experience?
Thanks,
chew
|
|
|
|
|
The last time I saw that little trick being used was under DOS way back in the day. I don't see any possible way of doing it under Windows. At least that has any decent performance benefit. Remember, your application is only a few threads running in a sea of a few hundred of them. Back under DOS, your app had total control of the entire system. Under Windows, that's never the case. If you try and monopolize even a quarter of either cache with your own code and data, what impact is that going to have on the rest of the system and applications that are running?
Minimizing cache swaps for your code/data means that other code/data are going to get swapped more often. So great! You get a performance benefit for your app, but you can only get that benefit by taking the performance away from something else. In my book, that warrants uninstalling your app.
I'm not your enemy here! Your boss is! Seriously, does he know what the cost of even attempting to develop such a solution would be?
Is minimizing cache swaps going to be the best performance benefit and use of that money? No, it's not. The thing that slows your app down FAR more is the time your app isn't even executing any code because the single processor machine is executing hundreds of other threads. If you can increase the priority of your application, your threads can get back to the top of the scheduler sooner and spend less time idling. Now that's easy to do with the Thread[^] class. But like I said, you can't get a benefit for free.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Thanks again. I'll keep your advice in mind.
chew
|
|
|
|
|
I'm looking for a good, free .net profiler to generate reports on function execution times.
Apparently .net has one built in, but i can't find anything about it.
Can someone point me in the right direction, or recomend an alternative?
Cheers
Tris
|
|
|
|
|
You could always try this one:
http://nprof.sourceforge.net/Site/Description.html[^]
I believe that the profiler you are looking for in .NET is in VSTS (I only have Professional so I can't help you there).
Arthur Dent - "That would explain it. All my life I've had this strange feeling that there's something big and sinister going on in the world."
Slartibartfast - "No. That's perfectly normal paranoia. Everybody in the universe gets that."
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Tristan Rhodes wrote: Apparently .net has one built in, but i can't find anything about it.
That depends on which version of Visual Studio .NET you're using. 2002 and 2003 don't have them, but 2005 does, and it depends on which Edition of VS.NET 2005 you have.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Which versions of VS.NET 2005 have a built in profiler. I use VS.NET 2005 Academic Standard Edition.
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my homepage Oracle Studios[ ^]
|
|
|
|
|
Professional and above. None of the Academic versions have any profilers.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Thanks
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my homepage Oracle Studios[ ^]
|
|
|
|
|
What's the meaning of casting from a class to an interface?
|
|
|
|