williamguy's Q&A profile
SQL Server SQL2000 : weird performance event
We're running a small scale application on SQL2000 SP4 (personal edition) with only 1 user. Got a stored procedure which suddenly takes 7 hours to complete with incorrect results compared to previous runs which only took 5 minutes (and correct results). No problem with other procedures or queries regarding performance. DBCC didn't see any errors. We're able to reproduce the situation (on a different machines) by extracting the code from the production machine (using generate script) using SQL Analyzer/Enterprise Manager. It takes then 7 hours to execute/complete. However, when we take the original script from the developers and recr ...Show All
SQL Server what is [SQL-DMO]
in computer management, when i expand the branch of my sql2005 express, i got a error message. it seems i cant register my server, but i cant login in sqlcmd i also installed sql2000, and it works fine... could anybody help really strange With which tool do you want to admister SQL Server Express SQL-DMo sounds like you are using VS2003 or another program to gain access to that. Whats the actual error message jens Suessmeyer. ...Show All
Windows Forms Is there a way to programatically control Windows' "Unplug or eject hardware" functionality?
An example of this functionality is if you have a usb hard drive for example. When you are done using it, it is recommended to double click the "Unplug or eject hardware" icon in the system tray to safely stop/shutdown that device. As .NET can pretty much do anything :), is there a way to control this functionality programatically and automate it. The reason I ask is that when I plug in my usb hard drive, I want it to do a quick sync and then stop itself so I can unplug it right after it's done without harming the data. I have a feeling Windows API calls will be necesssary, so any help you could give would be great! ...Show All
Visual Studio Unable to install
As it did for Oct. 2005 and Feb. 2006 versions, I still get an Error Code = 2 error when I launch the VS SDK Mar. 2006. I'm using VS Team Ed. for Dev. 2005. Is there a workaround A command line parameter Something I must do before trying to install Thanks ! Leo, Thank you for the question regarding installation options for the VS SDK. We're puzzled about this problem since we haven't seen it ourselves and have not heard of other reports. To answer your question directly, you can run the self-extracting executable with the -x switch to prompt you for a location to extract to. So this would be ...Show All
Game Technologies: DirectX, XNA, XACT, etc. DirectX Extensions Problem for Visual Studio 2006
Hello, I have tried to find an answer for my problem for the past week, and I am not sure if this is the right thread for it. I have installed DirectX SDK April 2006 with the DirectX Extensions, and I am running VS2006. When I start VS2006 I don't see the DX extension icon on the intro Splash Screen, but I am able to see it in the About Box for VS2006. The problem is not that it is justnot loading - or something, my problem is not being able to debug HLSL code. If I place a break point in the *.fx file I get "This break point will not currently be hit. No symbols have been loaded for ...Show All
Visual Studio 2008 (Pre-release) Use of OperationContext.Current for duplex
Hello In all the samples of duplex the callback is set using OperationContext.Current inside a method called by the remote application. However, this approach requires the client to initiate a call a method on the service before the service can use the callback to send messages to the client. How can I enabled the service to send messages to the client using the callback after the client connects, but BEFORE the client sends anything Simple: store the callback reference somewhere (a linked list, a delegate, etc) and have "someone" on the service side invoke that list at will. I uploaded two demos ...Show All
Windows Forms Check node level in treeview
Hello, i have a nested treeview structure.When I click on a particular node I wnt to find out the level of that node in the treestructure.Is there a method or property in treeview to do so. supriya Public ReadOnly Property Level () As Integer Member of: System . Windows . Forms . TreeNode Summary: Gets the zero-based depth of the tree node in the System.Windows.Forms.TreeView control. Return Values: The zero-based depth of the tree node in the System.Windows.Forms.TreeView control. ...Show All
Visual C# CS0309: constraint has been violated. (possible bug?)
Does anyone know why the following doesn't work interface B is derrived from interface A, and should contain an implicit conversion from B to A error CS0309: The type 'constraint_bug.interface_b<T>' must be convertible to 'constraint_bug.interface_a<constraint_bug.interface_b<T>>' in order to use it as parameter 'T' in the generic type or method 'constraint_bug.do_something<T>(T)' class constraint_bug { interface interface_a<T> { T some_func(); } interface interface_b<T> : interface_a<T> where T : interface_b<T> { void ...Show All
.NET Development Preventing .NET DLL execution
I need some way to prevent my .NET DLL assemblies from being called by unauthorized executables. Is there some way to do that I have tried the StrongNameIdentityPermissionAttribute, but it's not enough. Can be anything, even at low level C/C++ code. I cannot trust in the use of the .NET Framework Configuration tool, because I'll not be an administrator for the systems where the DLLs will be running. But I should constrain the execution of those DLLs by unauthorized executables. You should write a C dll which acts as a password verifier, and then write your code so it requires a password to run ( so the ...Show All
Visual Studio Team System Can't do Team Build with Tests
Whenever I try to run a Team Build that contains a test suite, the Build operation fails. When I look at the result, it says "An error occured during publish operation." What does that mean, and how do I rectify it Thanks in advance. David Mullin Here is a post that might help solve your problem - http://blogs.msdn.com/team_foundation/archive/2005/04/26/412118.aspx Thanks, Anu ...Show All
.NET Development Simonyi's naming convention, an updated one? any?
http://support.microsoft.com/default.aspx scid=http://support.microsoft.com:80/support/kb/articles/Q110/2/64.asp&NoWebContent=1 after some seach online i'm getting fustrated and close to giving up trying to look for an updated version of a list of naming convention similar to the one listed above which is catered for VS8. could someone or anyone, load this thread up w/ links where i can just go or buy a poster or something. there got to be a standard somewhere set by someone. aloha, orbii Here's a page that has an updated list of naming guidelines and code convention: http://dotnet.mvps. ...Show All
Visual C# DateTime
Hi. What I want to do is display the current time, or the current day in a MessageBox.Show method. Can someone tell me how to do this. I know it has something to do with the DateTime method. Thank you for any help provided. http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpref/html/frlrfsystemdatetimememberstopic.asp ...Show All
.NET Development Data changes not being saved to the .mdf file
I am working in Visual C# Express Edition, and I am using the Update() method of a TableAdapter. I am using the following C# code to update the database: try { this .Validate(); this.statsDataSetBindingSource.EndEdit(); this .runsTableAdapter.Update( this .statsDataSet.Runs); MessageBox .Show( "Update successful" ); } catch (System. Exception ex) { MessageBox .Show(ex.Message); } I have tried the following two work arounds: ...Show All
Visual Studio 2008 (Pre-release) Suggestion for WPF - Navigation Transform
Hi All I've been checking out the January CTP, and the Sells/Griffiths book, and I'm really excited about WPF...I'm experimenting with translating a Windows Forms app and a different ASP.NET app into WPF, and it's looking good for both! As far as I can see from my explorations, the navigation stuff in WPF just does a straight replacement of the target page in the application. I would love to see transforms between the pages - eg pages displayed on the faces of a cube, and navigating rotates the cube, or pages are arranged in a z-order stack, and navigating zooms through one page to another, or gamma-fade and restore, or flipping around ...Show All
Visual C++ Simple Console App
Hello Folks, Am new to VC++ and dont really know if i am doing the right thing. But here is my question. I am trying to do a simple Console::WriteLine to print. To do that i do the following: 1. Start up VS2005 and create a new VC++ console app 2. Add a line Console::Write( L "Hello " ); in the _tmain. 3. Add using namespace std; and #include <iostream> in the stdafx.h file 4. Compile and successfully see the error d:\learning\scratchpad\scratchpad\scratchpad.cpp(7) : error C2653: 'Console' : is not a class or namespace name d:\learning\scratchpad\scratchpad\scratchpad.cpp(7) : error C2871: 'Writ ...Show All
