Sledgehammer's Q&A profile
SQL Server Filtering a Hierarchical parameter list
I’m hoping an MDX guru can help me out. I've solved some tough MDX problems, but this seemingly simple one has caused me to lose too much sleep already, so I'm throwing in the towel and asking for help. I'm trying to come up with an MDX solution to writing a query to return a filtered hierarchical parameter list. The list returned is of all the levels above the leaf level. The query is used to drive a parameter drop-down in SQL Reporting Services 2000, which in turn is fed into another MDX query to return data for a report. The report query returns sample data for all the leaf nodes of the selected hierachy level. SRS 2000 does not handle empty results from MDX queries too gracefully, so the goal is to present the user with onl ...Show All
Microsoft ISV Community Center Forums Empower program software keys
I recently signed up to the empower program and received the software yesteday. I expect that my membership id has been activated but msdn does not recognise it and so I cannot access the keys to install the software. I have type in my name, email address and membership id and am getting the " The subscription information you have entered is not valid." error message. Has anyone got an idea as to what I might be doing wrong here Can you please help as I would llike to install this software asap and get cracking Thanks The Partner Resource Center team should be able to assist you with this. You can find the local contact details on https://partners.microsoft.com/Par ...Show All
Visual Studio Team System Source Control Explorer InvalidArgument Error on Vista Client
We are using TFS Workgroup Edition with SP1 installed with a Visual Studio Team Suite with SP1 client running under Vista Ultimate RTM. We are getting a Source Control Explorer error when starting Visual Studio on the client. Source Control Explorer InvalidArgument=Value of '-1' is not valid for 'index'. Parameter name: index After the client has started and we open a source control tree we get this error: Error Object reference not set to instance of an object. I thought this bug was fixed in TFS SP1. Any help is greatly appreciated. Jeff Lynch MVP Windows Server System - Commerce Server http://codebetter.com/blogs/jeff.lynch I have the same error with a clean Vista Business 32-bit install but here's what I've ...Show All
Visual Studio Express Editions VB Express minor screwups/bugs
first, i dont know if this is in the right place.... but here are some minor things to be fixed (or not) in VB express: 1. there might be a spelling mistake on label's properties toolbox - Is it supposed to be fontcolor or forecolor becuase it changes the text color. 2. Somewhere in a properties toolbox (i forget which one. I'll edit if i find it again) where there is a + to open a drop down box that has more things to edit, but when u click it it just disapears and nothing drops sown and appears... These are some minor errors that you might want to fix Its the opposite of what ahmed said....the FORE color will change the color of the font for a label control...the label control does NOT have ...Show All
Visual Studio 2008 (Pre-release) How to use multiple filters on Items? (Bug or limitation?)
If I want to filter out Items from a TreeViewItem.Items I can just add filters to the Filter property. But there is one problem: The order they are added influence on the result. Consider this example: Items before filters: a b c Adding these filters (pseudo code): Items.Filter += [col1=”a”] Items.Filter += [false] The result is 0 items. But adding these filters (pseudo code): Items.Filter += [false] Items.Filter += [col1=”a”] The result is now “a” Best regards, Thomas Andersen you can create a class like public class MyFilter { public bool Contains(object de) { Order order = de as Order; //Return members whose Orders have not been filled return(order. ...Show All
Visual Studio Automation Model: Getting DTE2 Objects
I noticed that an object of EnvDTE80.DTE2 only contains objects like Events and Debugger rather than Events2 and Debugger2. If I want to reference methods from Events2 and Debugger2 do I just cast the objects found in DTE2 like the following EnvDTE80.DTE2 _dte2 = (EnvDTE80.DTE2)Package.GetGlobalService(typeof(SDTE)); EnvDTE.Events events = (EnvDTE.Events)_dte2.Events; EnvDTE80.Events2 events2 = (EnvDTE80.Events2)_dte2.Events; Thanks, Grem Hi Grem, That is indeed the case. Think of the Debugger2 as an interface instead of an object, and it makes a bit more sense. The underlying COM object that implements the Debugger and Debugger2 interfaces, is one in the same. You just need to cast the object to the different interface type, to ...Show All
.NET Development Progressive Slow Down using XmlDocument
I am writting an application that communicates with another local application through xml using TCP/IP. There is steady communication, and one application acts as a server sending and receiving contant results to and from the main interface. After a while simple methods invoked on an XmlDocument object take longer and longer. I was origrinally using one member XmlDocument in the class that was doing the work, so I changed it to use localized XmlDocument's inside each function of the class, and the progressive slow down persists. I have mapped the time it takes for specific lines of code and it grows at an exponential order. One line of code that does this is: p_obj_XmlDoc.LoadXml( "somexml string here"); Any ideas of what coul ...Show All
Windows Forms Running ClickOnce app clears DOM document object in IE7
Hi, I have a javascript method that launches a ClickOnce application from a portal front page in our web application. It does this by launching the *.application file. The Launching Application window comes up as expected and the application launches fine. However, once the application is launched, the "document" object is set to "undefined" in the containing web page. This has the effect of rendering any javascript that needs to access the document object useless, and the user can not continue to use the portal page. No javascript is running after the application has been launched. This only happens while using Internet Explorer 7. Does anybody have any idea why the document object is effectively being clea ...Show All
Visual Studio 2008 (Pre-release) The Name attribute value 'label1' cannot be set on the element 'Label'
I have a custom control which extends ContentControl and until I upgraded to the June Beta everything worked without a problem (I had the Feb CTP installed previously). After the upgrade, I now get the following error. I have removed all 'Name' and 'x:Name' properties I can find without resolving the issue. So firstly what is the problem and secondly how can I find the offending 'Name' The Name attribute value 'label1' cannot be set on the element 'Label' because it is under the scope of the element 'Form1' that already has names registered under it when it was defined in another scope. Thanks for the help Kendrew I resolved my issue Kevin, but for the life of me I cannot remember how ...Show All
Windows Live Developer Forums DEP blockin Live Messenger 8.1
Why does DEP keep block my Live Messenger how do i overcome this problem For those with and ACER laptop, you might want to go here: http://www.acerpanam.com/synapse/forms/portal20.cfm recordid=1130&formid=3390&website=AcerPanAm.com/us&siteid=7293&words=all&keywords=&areaid=7 ...Show All
.NET Development C# Thread Safe Class events
Right now I have created a custom base class that has numerous events. These events have non-standard signatures and are fired from a thread I have that is basically just a while loop checking variables against older ones for telling when something has changed. As far as I know this is the best way to go about doing this is to just make a void on another thread in a while (true) loop, in the loop just doing ifs... than doing a thread sleep. I make sure the thread is a background thread that way it'll exit propertly when the consumer exits. If anyone knows a beter way of going about this than stop reading here. :) If not that onto my real question... I have events that are fired from this loop on the thread I created, now they're att ...Show All
SharePoint Products and Technologies sharepint first website setup
Hi, I am trying to make a website suing wss3.0. I am trying to restrict some users to access this website:- 1.How to restrict the access of site collections to some users of my Company domain.As per now i have enabled integrated authentication, so everybody on my company domain can loggin using his valid credentials. 2. WSS3.0 provides only all zones and windows as security zone only(No inranet and internet zones).Is there any anyway to add zones. 3. I need only one specific user to have access of administration website.I tried a user which is not included in farm administrators list but exists on the machine. That too works, which should not be Hope i am able to put up my query correctly ...Show All
SQL Server Service problems after SP1 upgrade
We have an instance of SQL 2005 enterprise that was upgraded to SP1 over the past weekend. This instance has been very stable and the server hardly ever has any issues. After upgrading to SP1 a couple times a day SQL service has been terminating unexpectedly. The following events are being logged - Application Log: Event ID 17311 SQL Server is terminating because of fatal exception c0000005. This error may be caused by an unhandled Win32 or C++ exception, or by an access violation encountered during exception handling. Check the SQL error log for any related stack dumps or messages. This exception forces SQL Server to shutdown. To recover from this error, restart the server (unless SQLAgent is configured to auto restart). SQL Ev ...Show All
SharePoint Products and Technologies Item Level Security Issue with Folders within a Document Library in MOSS 2007
In MOSS 2007 you can give item level security to your files or folders in a document library. 1) Lets say you have a normal word document library with the name worddocuments on your wss site. 2) In this document library you have created a folder with the name sharedfolderforguestusers. 3) You have given contribute rights to a user with the name user1 to this folder and limited access right to the overall document library i.e. the right which will allow the user to only see items that he has rights to in this document library. 4) lets say we send the link to this document library to the user. 5) user navigates to the document library based on the link and he can now only see the folder i.e. sharedfolderforguestusers that he has contri ...Show All
Visual Studio Express Editions C++ Express Help finds C# instead
I installed everything according to instruction, but my "help" functions are not working properly. Instead of showing C++ related stuff, it shows things for C#. For example, if I go to the help index and type in "Sleep", it shows Thread.Sleep. I am assuming that's C#. Whatever it is, it's not helpful. The whole index is like that -- stuff that looks completely foreign to me. What to do Thanks, J. It isn't really showing you C# stuff (but I can see why you might think it is). Remember that C++ is a fully fleged managed code language. You can program in C++ and still make use of the Base Class Library and all the other good stuff the CLR makes possible. Thus, the C++ documentation has to include ...Show All
