Ackamajack's Q&A profile
.NET Development Programatically Setting the Priority of the Windows Service to Low.
Hello, I have written a windows service. But the service priority is normal. I need to set the priority to low or lowest. Does anyone know how to do this programatically using C#. Thanks In Advance With Regards Sunil Dutt Yes, Priority of the Service means the Priority as indicated in the task manager. I tried by assigning the AppParameters in the Regedit to -p 64 but my service is still showing priority as Normal and not as Low. ...Show All
SQL Server How to removing document map
I add document map to my report but I forgot how can I remove it thanks! Once I removed all of the labels for the testboxes showing in the document map, I was able to view my report without viewing the document map. ...Show All
SQL Server Calculated Measure at Totals Level
Hello guys, Y have the following cube. Dimensions: Age group, Year Measures: Mortality, Population, Standard Population (this measures doesn't have Year dim relation because it applies to all Years) I need to get the [Mortality Age Adjusted Rate] defined as: SUM(Expected Death) / SUM(Standard Population) * 100 000 Where: Expected Death = (Mortality / Population) * Standard Population As you can see the Mortality Age Adjusted Rate (MAAR) is a measure that is not at the row level but it depends of the set of Age Group(s) selected. Example: This is an extract for Year 2003 to show you as example: Age group Mortality Population Standard Population Expected Death 0-4 years 6 275, ...Show All
SQL Server A connection to the report server failed
Hello, I am getting extremely frustrated with this situation. I have two machines that are both connected to the domain and I am logged into both. I also have a W2K3 Server that is hosting SQL Server 2005 Standard. Both desktop machines have SSMS and all machines including server are now SP1. On one machine I can connect to reporting services just fine, but on the other I am getting the following error: TITLE: Connect to Server ------------------------------ Cannot connect to MEDUSA. ------------------------------ ADDITIONAL INFORMATION: A connection to the report server failed. Most likely, you do not have permission to connect to the computer. You should either try to connect using report server URL for the Server name, ...Show All
SQL Server Group age by a parameter and find out the value corresponding to that.
Hi guys... My goal is to change the given stored procedure so that I can find out the different age gorup according to users parameter and find out sumof these values for that group: s.TVmins, s.Notional$, COUNT(*) AS Qty, SUM(s.TVmins) AS TVMinsAmt, SUM(s.Notional$) AS NotionalAmt For that I am planning to put another parameter @count for the group interval and I need to group accordingly. So my answer should look like: if the user give the @count value as 10: the result should: age group TVMins Notional 1-9 1560 125632( the sum of that particluar group) 10-19 -- -- --- 91-100 -- --- I have a field DOB( Date of birth) , I have to extract age from that field first and then g ...Show All
Visual Studio Express Editions Declaring Nested Namespaces in C++/CLI
Is the following the only way to declared Nested Namespaces in C++/CLI namespace DEPT { namespace GROUP { ref class MyClass { public: int m_Num; }; } } I tried this way and it doesn't work: namespace DEPT.GROUP { ref class MyClass { public: int m_Num; }; } I tried this way and it doesn't work either: namespace DEPT::GROUP { ref class MyClass { public: int m_Num; }; } Is there a way to declare Nested Namespaces and avoid the extra braces and indenting of the first (and only) method Well, C# is a newer language and they've obviously made things easier. ...Show All
Visual Studio Unable to start debugging on the web server
Hi I dont know if this error has been addressed already couldnt find it but here goes. When I try to debug my website on VS 2005 it is giving me the following popup error. Unable to start debugging on the web server .An authentication error occured while communicating with the web server. I have tried almost everything suggested on the net also verified my username addition in the Debugger Users group The site launches successfully on CTRL+F5 Interestingly I havent come across this particular error message in any of the forums I visited. Any help would be extremely appreciated. Regards Amrit OK, I am running VS2005 on Vista RC2 build 5744 and I get this same ...Show All
Visual Studio Access to EnvDTE80.DTE2 from IronPython
Hi all, Sorry if this is off topic, please say so if it is more suited in an IP forum. I've been playing around with the IronPython integration sample and scripting VS and would like to access objects/properties defined by the EnvDTE80 namespace. I can import the namespace and have access to the types but cannot get the dte object to behave as a DTE2. Is it possible How could I implement the below VB macro code in IP Dim bp As EnvDTE80.Breakpoint2 bp = DTE.Debugger.Breakpoints.Item(1) Dim mac As String mac = bp.Macro I have tried many variations of the below import clr clr.AddReferenceToFileAndPath(r"C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PublicAssemblies\EnvDTE80.dll") import EnvDTE80 def Pri ...Show All
Visual Studio Team System Dropdown box value Validation query
Hi, I have a dropdown box box with the following code <select name="ctl00$ContentPlaceHolderBody$DropDownListEventType" onchange="setflag();setTimeout('__doPostBack(\'ctl00$ContentPlaceHolderBody$DropDownListEventType\',\'\')', 0)" id="ctl00_ContentPlaceHolderBody_DropDownListEventType" style="width:250px;"> <option value="15">Assessment: Superday</option> <option value="14">Assessment: Superday1</option> </select> I want to validate whether the dropdown value is "Assessment: Superday". I have entered Form Field Name with "ctl00$ContentPlaceHolderBody$DropDownListEventType" and value with "Assessment ...Show All
Visual Basic I need the best programmer's chair! Visual Basic programming is killing me!
Hello, All. This is a little off the subject, but not really... Its TOTALLY Visual Studio/Basic related!!! Since beginning programming with the Visual Studio Express Series, I cant get enough! I am spending hours upon hours in front of my pc programming, and my lower and upper back, as well as my elbows are killing me! Can anyone suggest to me the ultimate chair for programmers I have gone through 2 chairs already that were supposed to be ergonomic, but they dont really work like I need them to. Is there a chair of choice for programmers ! ! What chairs are used at Microsoft's Headquarters Help!!! -kaanuki- At MS we have stock issued chairs. At home, I use the Herman Miller "A ...Show All
Visual Studio 2008 (Pre-release) Focus() does not always appear to work for me ...
I've got a window created in XAML, and it's got a couple of TextBoxes on it. They are both focusable. Before I display this window using ShowDialog(), I set the focus to one of the TextBox controls. The first time the window is displayed, this works fine. But if the other TextBox gets focus, then it doesn't seem to relinquish it - the next time the window is displayed, the second TextBox has focus, even though I am specifically trying to set the focus to the first TextBox in code. I don't know if this matters, but I'm not destroying the window in between the times it is showed. I simply call the Hide() method to hide the window. Then before I show the window the next time, I attempt to set focus to the correct TextBox. I've stepped thro ...Show All
Visual Basic Troubleshooting with IDE - Unable to open search!
Hi. I have Visual Basic 2005 Express Edition and I am having problems with the "Search" option, where you type in Keywords and it searches on 4 different websites / places including my on-board MSDN. It has worked before, in the past, and has been very helpful... But lately it will not open when I try to start it. When I click on the "Search" button at the top it gives me this message box: "The type initializer for 'Microsoft.VisualStudio.CommonIDE.Help.Sylesheet' threw an exception." and that is all that it tells me. I have no idea why it says this and will not open. I have also tried reinstalling my software and that did not help a thing. Thanks, I hope you can help. -Joe M. ...Show All
Visual Basic About Notify Icon with windows service
Dear all, I am programming a windows service that will constantly run, and this application associated with a notify icon. I got a problem when I login and start this service menually, the notify icon displayed proerply. However, if the service is started automatically, the service will run in the background properly, however, if I login the windows this icon did not showed up in the system tray. I have tried search information on the Internet about the Notify Icon but no luck, I only got information that the tray will be destroyed once a user logoff, and recreated after logon. If do so, is there a way that I can capture this event in VB so that I can add this icon again I hope if someone in here can help me on the issue. Thanks, Dragon ...Show All
Game Technologies: DirectX, XNA, XACT, etc. DX 10 release
so when is the SDK avaliable to Download. I tried to open the Instancing10 Sample with the SDK. but I get this error "could not initilize Direct3d 10, This application requires a Direct3d 10 class device running on windows vista or later" does that mean i need to install Windows vista ( I will get it soon from MSDNAA) so DirectX10 wont be supported on XP I have the latest drivers for my 8800GTS. ...Show All
Visual Basic List box word wrap?
I was wondering if there is a way to multiline listbox strings so they dont get cut off at the end of the box. If not, it would still be helpful to know how to divide two strings into two different items if they get cut off at the end of the box. Thanks Why not just use multiple lines in the listbox http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1133498&SiteID=1 ...Show All
