MarkIsMobile's Q&A profile
Visual C# How to get the path of a process
how can i get the path of a process for example : The process Name: explorer.exe The process Path: c:/windows/explorer.exe It's not perfect, but you can try the registry: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths HTH, ...Show All
SQL Server Server Agent Job failed when running Copy database wizard
I am migrating databases from SQL Server 2000 to 2005 and have tried using the 'Copy Database Wizard'. The SSIS package is successfully created but when it gets to the last step to execute the job from the Server Agent, I get an error message that the 'job failed'. It does not give any further information and when I try to get additional info from the Microsoft help link, it tells me that there is no additional info regarding that particular error. Any assistance will be greatlly appreciated. Thanks, Pat E. Here is how it looks: ACTION STATUS Add log package Success ...Show All
SQL Server Slowly Changing Dimension performance
I'm getting exceptionally poor performance from the Slowly Changing Dimension transformation. I get thousands & thousands of buffer manager info msgs when I use it. My machine isn't memory constrained, nor is the SQL Server. SSIS seems more obliged to spit out these msgs than actually do any work when I use the SCD. Any ideas Information: 0x4004800C at Provider3, DTS.Pipeline: The buffer manager detected that the system was low on virtual memory, but was unable to swap out any buffers. 26 buffers were considered and 26 were locked. Either not enough memory is available to the pipeline because not enough is in ...Show All
Visual C++ Embedding comments in the dll for the managed classes
If I have this code: #include "Something.h" /// <summary> /// Description... /// </summary> public ref class Test { }; Is it possible to embed the comments of class Test as metadata in the dll (like in C#) If this is not possible, how can I restrict the compiler (when using /doc) from getting the comments from specific files For example, in the above example, how can I make the compiler not to parse the comments from the "Something.h" file Brought the topic up again in case someone that can answer didn't see the post. ...Show All
SQL Server Case sensitive AS server and VBA functions
I use VBA function, e.g. ABS, in an MDX statment, and try to deploy the project to a case-sensitive AS 2005 server -- got and error message "An unexpected exception occured". No such problem when server isn't case sensitive. Any one came across this problem and has any idea how to overcome this problem Thanks. Try to contact Customer support and report your problem. Edward. -- This posting is provided "AS IS" with no warranties, and confers no rights. ...Show All
Visual Studio Print a crystal report from two trays.
Hi, All I want to print a crystal report from my VB.net wins application. I want to print first two pages from upper tray with double side and the rest of them from lower tray. Or, printer can pick up first page from upper tray and second pages (to end ) from lower tray. Whatever I setting up the paperSource, printer will always picks up the paper from upper tray for whole report. I am using crystal report embeded in .net1.1 Here is my code: Dim objEnvoiceReport As CrystalDecisions.CrystalReports.Engine.ReportDocument ' Getting datasource and bind to objEnvoiceReport... objEnvoiceReport.PrintOptions.PrinterName = our ...Show All
Windows Forms help with usercontrol
I'm a new user and this is the first time I write. I'm doing a user control in VB.NET that has one commandbutton and one textbox and do several things. I created my properties and they worked succesfully. My problem is that I want to hide the other properties of the user control but I don't know how, and I haven't found an example on the  ...Show All
Windows Live Developer Forums Worlds Best App Contest Winners
It’s time to announce the winning applications for MSNR Messenger’s Worlds Best App Contest , which MSN ran from September through December 31 st , 2005. There were a lot of great entries, hard work and interesting new ideas for building new applications and games within Messenger. Submitted applications were judged based on the official rules and judging criteria which included creativity, launches during the contest, suitability for the medium and best use of other MSN services. The following identified winning applications still subject to verification and acceptance of their winning prizes : Grand Pri ...Show All
Visual Studio Team System Delete files from local folder
Hi, We have the following problem: When Developer A deleting files in his local folder (which mapped to Workspace), and Developer B makes changes in the same folder and checked in the changes, Developer A is trying to Get Latest Version but get no files at all. The solution is to create a new workspace and then Get Latest, but it's makes us a lot of problems. Thanks, Michael Quite true- the user should get the changed files from source control, though not downloading the unchanged files is expected. Apologies for the misread of the scenario. One question which could help pinpoint the issue- what folder does D ...Show All
Windows Forms How to split the column Heading of Datagrid in Two rows
In vb.net The column Heading of one of columns of the Datagrid is Normal Rate of Change As I have 9 columns to this grid I had set the width for this column 110 Then heading is truncating I want to wrap this heading as Normal Rate Of change I have difficulty could someone please let me know how to do this Thanks Hello Every Body I am also ...Show All
SQL Server MDX - How to calculate the range of years selected?
Hi all, I am having a problem calculating how many years or months have been selected as a filter on the current query, and then calculating the number of years (see: -- THE PROBLEM: below). I can get the ending value and beginning values, but am having a problem getting the # of years (mdx newbie). This is the formula: CAGR = (FV/PV) 1/n - 1 I have Dim/Measures as follows: Dim: [Calendar].[Fiscal Calendar Calendar Calculations].[Fiscal Year].[Fiscal Period] Measure: Measures.Sales Amount I have a calculation I am trying to p ...Show All
.NET Development Inconsistent InvalidCastException and FormatException errors
Recently we have started getting InvalidCastException and FormatException errors on 3 clients out of > 100 that are in use. We believe it is caused by the upgrade of our application from .Net 1.1 to .Net 2.0. In one case we get the following message - System.InvalidCastException: Conversion from string "0" to type 'Integer' is not valid. ---> System.FormatException: Input string was not in a correct format. In this particular case the error happened when user A was logged in but not when user B was logged in. Both users used the same PC. Even though this looks like a bug I suspect that there is some configuration i ...Show All
Visual Basic CommandLines, JIT, and Errors
Okay, so I've finally discovered a way to get the variables from startup and try to format them into a String. I can show the entire CommandLine from using: msgbox(System.Environment.CommandLine.ToString()) But I want to format this, then place it into a textbox as a value. I try this method thus: Dim args As String = System.Environment.CommandLine Dim values As String = args.Substring(args.LastIndexOf(".") + 1).Remove(0, 5) If values <> "" Then TextBox1.Text = values End If Strange error this time, VB is telling me to enable something in a config file ( ): ***** ...Show All
.NET Development Remove a table from xml file using C#
Hi, How can i remove a table from an xml file if the date is old using C# This is how the xml file looks like: <root> <table> <id> 0 </id> <date> 20060404 </date> </table> <table> <id> 1 </id> <date> 20060822 </date> </table> <table> <id> 2 </id> <date> 20060904 </date> </table> </root> What im trying to do is, removing a whole table if the date is old. Comparing dates is not the issue, removing a table is. Because if i remove it by name, it removes all the tables. Can anyone help me with this iss ...Show All
SQL Server Analysis Services 2005 OLE DB Provider Error
I try to open a SSAS Cube but I get a OLE DB error message below. The same cube I can browse with the SQL Server Business Intelligence Development Studio. Error message: Microsoft OLE DB Provider for Analysis Services 2005 Microsoft OLE DB Provider for Analysis Services 2005 reported: Errors in the OLE DB provider. Could not connect to the redirector. Ensure that the SQLBrowser service is running on the '<MY Server Name>' server. Errors in the OLE DB provider. An error occurred while named instance information was being retrieved from the SQLBrowser service on the '<MY Server Name>' server. ...Show All
