manick312938's Q&A profile
SQL Server SQL 2005 Cannot Drop User
Hello, I am new to SQL 2005 and I am trying to drop a user from a database called prod. When I try to delete the user I get the following error message: "The database principal has granted or denied permissions to objects in the database and cannot be dropped." Any help would be greatly appreciated. Thank you. You're using both brackets and single quotes to quote the name, so you end with the single quotes being interpreted as part of the name: that's why the message says ‘‘domain name\username’’ and not ‘domain name\username’. Use only brackets to quote the user name. Thanks Laurentiu ...Show All
Software Development for Windows Vista Restore Workflow instance fails because workflow has been modified in designer
Here's the scenario: A workflow is deployed to production with the sql persistence in place. Several workflow instances get persisted in the database. A month later, the workflow is modified in the deginer and redeployed. Now the previous persisted workflow instances fail because the old workflow and new workflow are different. Does anyone know how to fix this problem One fix would be to delete the existing workflow instances. This might not be acceptable from management. Thanks in advance Nitin Mistry Canada The fix is to increment the version when you compile the new version and to have the old and new versions both accessible to the workflow runtime. If you want to update the old version to include the ...Show All
Game Technologies: DirectX, XNA, XACT, etc. 3Ds Max Texture Error
I'm having trouble getting textures to work in XNA with models that I've created myself. I went through the Space Tutorial and have no problems loading the provided models, or any other models i find elsewhere. However, when I try to use a model that I created and textured myself (in 3ds max, tried with Panda exported .X files, kW X-ported .X files, and .FBX files) I get a weird error. I do not think that the error lies in my code since it's a) basically straight off the tutorial and b) models other than mine work fine. The error points to this line of code: myModel = content.Load< Model >( "Content\\Models\\stripe2" ); It says: Argument Exception was Unhandled, Device does not support multi-level texture ...Show All
Windows Forms Large file sent to printer when printing .gif files
Hello all, I am able to print .gif files successfully using the code below in the PrintPageEventHandler event. Image img = System.Drawing.Bitmap.FromFile(@"D:\TestLabel.gif"); e.Graphics.DrawImage(img, rf); The actual .gif file is about 50kb. However, when printing, about 1.5mb of data gets sent to the printer, so it takes a few seconds to print out. Is there a way to decrease the file size sent to the printer Thank you. TL Bitmap.FromFile() unpacks the .gif into a native, potentially very large Windows bitmap. This needs to work like this because neither GDI nor the printer driver know anything about compressed bitmap formats. One way to try to limit the size of the data sent ...Show All
Community Chat .NET
What is the difference between .NET and java. If both are platform independent, can you suggest which is the most preferable based on platform independency. .NET application needs to have .NET framework running on the machine where you want to run it. In case of Java, you need to have JVM/JRE running to run Java application. As per my knowledge, JVM/JREs are available for different plateforms but DOT NET needs to have MS operating system. Note: there is possibility to run DOT net application on non-Microsoft plateform using some 3rd party application like MONO. Hope this helps you understand the difference. Well, I will love to work on DOT NET.... ...Show All
Visual Studio 2008 (Pre-release) proper way to use BuildWindowCore params?
In the following code, I'm attempting to make my own .NET 2.0 form act as a FrameworkElement. I'm having trouble in the BuildWindowCore function. As I understand it, I'm supposed to take my existing form and make it a child of the input HWND. I don't know how to take the hwndParent.Handle and turn that into a System.Windows.Forms. Control. I've stepped through the code a number of times trying different things includeing WINAPI SetParent all with no luck. It's too bad Wrapper is null. That would at least give me an idea as to what type of object it is. public class AppWindow : HwndHost { private AppForm _appForm; // AppForm inherits from System.Windows.Forms.Form public AppWindow( AppForm appForm) ...Show All
Visual Studio Express Editions popuplist
Hi everybody. How do I retrieve all the data from a popuplist (I know the handle of the popuplist) and write it to a file. I don't have access to the program that owns the popuplist. Thanks nope. not discouraging at all. i new that i had to take these steps. I got the handle as i said in my first post (I have Spy++). My question was how do I get those lines of data from the popup list using SendMessage() Thanks ...Show All
Visual C# want to use .h header files in c#
Hi, I want to call the header files in my c# program. Where i am using the acrobat sdk which has references to the header file. i tried prebuildevent where i did not have proper examples. if anyone can through light on these it will be appreciated. thanks -rajashekar s hI, I had the same problem as you. I was on the need of using an API (Remedy) that was offered as a Win32 DLL. I had the DLL, the LIB and the header files. C# interop can consume Win32 static libraries but not dynamic ones. My solution: I have created a small Managed C++ DLL and I interact with my Win32 DLL from there. Is like building a wrapper. Regards ...Show All
Visual Studio 2008 (Pre-release) Dynamic ToolTip in TreeView
I am new to WPF. I have a treeview. TreeView contains textblock in TreeViewItem. There is a ToolTip for each leaf . I want to display the tooltip only when the full text is not visible due to small size of the window. Is there any way to do it The text is not trimmed as TextTrimming is set to None. The TreeViewItem generated by applying HirarchicalDataTemplate which contains a TextBlock bound to data. And the TextTrimming of this TextBlock is None. ...Show All
.NET Development Unknown error "-1".
I am getting the following error when trying to use File.CreateText(filepath) Source: mscorlib Message: Unknown error "-1". We are only seeing this error on a few of our client machines (they are all XP Pro). We are unable to reproduce it in-house. Luckily I've been able to remote into one of our client boxes in order to fix the problem. Here are the steps that I have taken: 1. I've given the folder that we are writing to permissions for everyone full access (just in case). 2. Re-Installed the 2.0 Framework We are writing to the folder "Documents And Settings\All Users\Application Data\AppName" Our code is able to create the folder Under the "All Users\Application Data" I'm not sure w ...Show All
Visual Studio 2008 (Pre-release) How to cancel a context menu from opening in Windows app
I'm working in a window app: 1) When user right clicks on a control to open the context menu, and before it opens I want to run logic to determin which menu items to enable and disable. What's the best event to do this in The only event I found that I could do this is the context menu loaded event. 2) After the right mouse click and before the context menu displays, if certain conditions exists I want to cancel the menu from opening as if it didnt exist. How can I do this Thanks. Thanks. I tried this and the event now fires when I expect it to, however, the event handler is added to a thumb control but the event's e.Source property returns System.Windows.Controls.Border. Hmmm. I need to g ...Show All
Visual FoxPro How can I check whether a cursor exists or not?
That's the question. Thanks I'm not sure what do you mean, but I think a simple if used command should help. if used("curSomeCursor") wait "Cursor exists" wind endif ...Show All
.NET Development Am I using ngen correctly?
Hi! First, I put the assembly in the gac (it is strong named). Then I do "ngen install AssemblyName.exe" Will this give me the maximum performance ~Matt You wouldn't put an .exe in the GAC, Ngen doesn't require it. Ngen provides faster startup but slower execution. Check this article for reference. ...Show All
Visual Studio Team System TopN and aggregate in filter
I'm trying to create a report that shows the topN users owning defects grouped by severity. So I have a matrix that shows the Owners on the rows and the Severity-level as columns. The CurrentWorkItemCount-measure is listed in the detail. When applying a TopN filter to the matrix (or the dataset), the filter counts the number of items for each Severity-level seperately and as a result I only get the TopN values for only a few Owners and not TopN owners as I want. I added a subtotal for each row but it seems impossible to use aggregates in filters. Any idea how to get this accomplished Thanks. Hi Paso, You can apply the TopCount function to the [Assigned To] dimension members in stead of the resul ...Show All
SQL Server Merge replication error - invalid column name 'rowguidcol'
Hi, I'm having dramas with a merge replication between two servers. They have been replicating information between three databases happily for about 18 months. Recently I had to do an upgrade on the databases, so I deleted the subscriptions and the snapshots, applied the upgrade script and recreated the snapshots and subscriptions. Now when they go to replicate, the merge agent for each subscription gives the error "invalid column name 'rowguidcol'". From some investigation, I think this has something to do with the fact that as they used to replicate, the subscriber has the schema information from the old snapshot, and doesn't recognise the new one. I can't reinitialise the schema from the publisher as not all the data in the d ...Show All
