i have to import xml document having size more than 10GB in Sql Server database. i also have to do XSD Validation before Processing and maintain transaction. Please suggest me the best way to do the same. should i use SSIS packege? is it capable of Processing such large document? or Do i have to use c# coding to accomplish this task?
In CA1822 , microsoft performance warnings ask some methods to static.It wont be an issue if we make a private method static , but an issue pop-ups when we make a public method , or an interface implementation to static.It will severely affect the logic.Is there any alternate solution ?
Don't worry too much about that, it's only a warning.
If a non-static method don't use any instance-level method or property, FxCop tells you that there are no reasons that method should not be static, and suggest you to make it static.
But, if that method is part of an interface implementation (or exposed publicly and alraedy used from other methods), there ARE reasons that should not be static, so you should ignore the warning.
If your app compiles without errors and runs without crashing, you can safely ignore pretty much any warnings FXCop generates. It just provides suggestions on "best practice for coding style. It is not intended to be an omnipotent oracle of "how to code". Throw away the crutch, and learn to stand on your own two feet.
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997
I am *SUPER* anal about my code formatting. I mean, really, super duper anal. So I thought FxCop would be my new BFF. Sadly no. I found most of its demands to be too pretentious for my tastes and quickly uninstalled it.
Hi. I want to change the function of each keyboard key.I want my application to listen to key press events globally and change key value. for example when i press 'A' while writing in notepad, my Application should see the key press event before Notepad and send Letter B to the active application. I've managed to listen the key press event globally, what i want is to block other applications from getting key press events?
I've been searching for days for a way to find the exchange mailstore on any exchange server given only it's name.
For e.g I have an exchange server EXSRV01, I have nothing to tell me if it is running exchange 2000,2003, 2007 etc. All I need to find is the size of the mailstore.
I was thinking I could just get the edb (and slv if it exists) file sizes, but then I don't know where they are stored because it could be stored in it's default location, or on a specific partition etc.
Is there a 'using' directive that would give me access to anything that will help?
If not, am I on a goose chase?
There's a simple way to test that: put [STAThread] on your console app. However, I'm fairly sure I've served TCP from within a WinForms app without problems in the past.
I don't immediately see the problem.
You should put some logging in the socket error catch block, as well as breaking out of the loop.
Actually never mind that, you should use the asynchronous socket methods (BeginReceive and BeginAccept), instead of creating a thread for each client. (Also, your accept thread will never terminate.) Take a look at my Sockets library[^] for an example if the MSDN docs don't make it clear enough (specifically the ClientInfo class which uses asynchronous receive, and the Server class which uses asynchronous accept).
Hi. I've created a click event to my windows notify icon. but when i click the icon on the task bar, i lose focus from my current window. for example i am writing something on note pad. then when i click the notify icon i dont want to lose focus from my notepad window, just like windows language bar. does anyone know how to do that? TNX in advance
I'm in search for a Visual Studio 2010 Photo Gallery website or project I can customize to my needs. It does not need to be free. I would be most grateful for any links/hints/etc leading to sites offering such contents.
My C# knowledge is limited.