James 2's Q&A profile
SQL Server How to Delete Files on Maintenance Plan
Hello, I am creating a Maintenance Plan in SQL Server 2005. The 'Back Up Database Task' has the choice 'Create a sub-directory for each database' as SQL Server 2000 does. But when I add a 'Maintenance Cleanup Task' I do not see a choice to delete files on subdirectories. Looks like it only deletes the files from the directory I specify. So, looks like SQL Server 2005 is removing some functionality already available in SQL Server 2000. Is there a way to delete those files without needing to specify each directory I do not see any documentarion about xp_delete_file either. Thanks, Ben Nevarez ...Show All
Visual Studio Team System Change priority from integers to strings
I've been customizing the Work Item template in the MSF Agile template. So far I've made good progress in implementing the states (Active, Closed etc) that we currenlty use. For Priority, we currently have High, Medium, Low, Memo but when I change the Microsoft.VSTS.Common.Priority type from Integer to string and added these values, it throws the following error when I import the template: Exception Type: Microsoft.TeamFoundation.WorkItemTracking.Client.Provision.ProvisionValidationException Exception Message: TF26038: Field type for Microsoft.VSTS.Common.Priority does not match the existing type. It was Integer, but now is String. ...Show All
Windows Forms Datagridview and Endedit issue
The Problem: When I close a form, the current cell that is being edited in the datagridview doesn't save properly to the database. The Save Code so far: this .Validate(); this .items_tblDataGridView.EndEdit(); // Doesn't appear to make a difference this .items_tblBindingSource.EndEdit(); this .items_tblTableAdapter.Update(mPSDataSet.Items_tbl); I've also tried using " this .items_tblBindingSource.CurrencyManager.EndCurrentEdit()" as well, but no dice. Thank you for any help. -Colin I'm still having the issue, but found out that it is most likely that the closing "cont ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Yaw / Pitch / Roll from Quaternion ?
Is there an easy way to extract yaw/pitch/roll rotation angles from quaternion Thanks! Got this from: http://www.resonancepub.com/quaterni.htm Euler angles can be extracted from a quaternion as: tan(yaw) = 2(q 1 q 2 +q 4 q 3 )/ (q 4 2 + q 1 2 - q 2 2 - q 3 2 ) (5a) sin(pitch) = -2(q 1 q 3 -q 4 q 2 ) (5b) tan(roll) = 2(q 4 q 1 +q 2 q 3 )/ (q 4 2 - q 1 2 - q 2 2 + q 3 2 ) (5c) ...Show All
Windows Forms MDI parent with GroupBox covering all child forms
I need a background image for an MDI parent that scales as the window is resized. To accomplish this, I've created added an Infragistics groupbox (which allows for scalable backgrounds) to the parent. This works great until an MDI child is shown, as it's covered up by the groupbox. I've tried bringing the child to front, but to no avail. I've also tried sending the groupbox to back, but that does not work either. Any ideas for how to add a control to an MDI parent in such a way that it doesn't cover up child forms TIA If scaling an image and drawing it to the MDIClient is not the ...Show All
.NET Development .NET Runtime 2.0 Error Reporting
Hi, My application is running on 65 PC. After a few hours, this applications crash on 2-3 PC. I get no exception in my log files. I set the Application.ThreadException and AppDomain.CurrentDomain.UnhandledException exception event handlers. The last one is triggered with 'System.NullReferenceException: Object reference not set to an instance of an object.' but there is no stack trace available. I got no dump file, no popup window. I only get the following entry in the event log : Event Type: Error Event Source: .NET Runtime 2.0 Error Reporting Event Category: None Event ID: 1000 Date: 13/05/2006 Time: 21:53:39 User: N/A Computer ...Show All
Visual C# Difference between a waiting thread and sleeping thread
What is the exact difference between a waiting thread and sleeping thread ...Show All
Windows Forms Zero Touch Deploy with XP Theme manifest file
Hi I have an application and a manifest file which makes the application use the XP theme controls. However, when I try to deploy this application over the web it does not pick up the manifest file Anyone know how i can overcome this as it works perfectly if i load the exe by double clicking it Thanks got it working with the ma ...Show All
Windows Forms Problems with GetHicon method
I've a problem converting System.Drawing.Bitmap in System.Drawing.Icon using the GetHicon method. This is my code sample : private void pSetIco( int parNumImg) { System.Drawing.Bitmap b; b= new Bitmap( this .ilIcons.Images[parNumImg]); this .StartIcon.Icon = Icon.FromHandle(b.GetHicon()); } There are no runtime errors but the result icon is a black box. I've try to save the bitmap to a file and the file is ok. Can anyone help me STAThread, which all WinForms have by default, specifies that the main UI thread runs in a COM STA. ...Show All
Visual Studio Team System Where can I ask an in depth question?
This is the only forum I could find for Team System (I noted that there are some regular newsgroups set up for other languages). Since this is designed to be general, where can I ask a specific question about working with an object within the QualityTools.UnitTesting.Framework namespace How about Visual Studio Team Edition for Software Testers http://forums.microsoft.com/MSDN/ShowForum.aspx ForumID=19&SiteID=1 There are a whole bunch of Team System forums, click on the Visual Studio Team System breadcrumb near the top of the page or follow this link http://forums.microsoft.com/MSDN/default.asp ...Show All
Smart Device Development ARM Processor - Is that all that WinCE/Pocket PC Will Use Moving Forward
I've heard that thats all that will be used moving forward. When did the move away from other processors such as MIPS etc happen, and why did it happen etc. I'm writing some native code and I'm thinking I can just compile this for the ARM processor and might be able to get away with this. Thoughts Correct. Even emulator in VS 2005 is ARM. ...Show All
.NET Development Xsl n00b: Using external .css with XslCompiledTransform
I am using code similar to the following to transform an .xml file to .html. The webReport is a WebBrowser control on a Windows Form (C# 2.0). (Code appears in a button click for experimentation purposes.) MemoryStream ms = new MemoryStream(); XslCompiledTransform xt = new XslCompiledTransform(); xt.Load("DailyBalanceReport.xslt"); xt.Transform(@"c:\test\SampleDailyReport.xml",null,ms); ms.Seek(0, SeekOrigin.Begin); webReport.DocumentStream = ms; webReport.Visible = true; If I include the <STYLE> elements inside the .xsl file, everything works fine, but I don't ...Show All
.NET Development The default IIS invoke method page doesn't call SoapExtentions
Hi, Using VS 2005: I have a web service with two soap extensions enabled on it. When I run the default web service method invoke web page, the invoke button bypasses all my soap extensions. But when I call the web method through another proxy, it works fine. I am nervous about the situation. Why this is happening Am I missing anything Any help would be appreciated, Alan I haven't played around with VS2005 beta yet, but maybe it's because of how your calling the web service. For instance browsing to it through the web browser uses a ...Show All
.NET Development How can I create a Web Service which persists
I want a web service which will persist, so it can receive data events from another DLL 1. I want to request a service, but it may take a long time 2. So I request ASYNC web service 3. When the web service finally receives data event it is ready to return the data 4. So the web service can call the CALLBACK function 5. But there may be more data, so I call the ASYNC web service again 6. But I dont want a new instance of the web service 7. I want a persistant web service 8. Which will hang around waiting for data events 9. Store them, waiting for my requests for data Wayne, I just want to encourage you to c ...Show All
Smart Device Development Connection to SQL Server 2000
Hi, I am trying to connect to an SQL Server 2000 database using VB.NET 2005 CF. When I run the application (code below), I get the following error: An unhandled exception of type 'System.Data.SqlClient.SqlException' occurred in System.Data.SqlClient.dll Additional information: SqlException Can anyone help me solve this problem When I use the same code in a windows application from, it works fine, but it doesn't when I run it on my device. Imports System Imports System.Windows.Forms Imports System.Data Imports System.Data.Common Imports System.Data.SqlClient Public Class Form1 Inhe ...Show All
