Meisash's Q&A profile
SQL Server Parent-child hierarchy: how to get readable member unique names?
Is it possible to have a parent-child dimension which is referenced from the fact table via an integer key but shows a string key in it's MDX unique member name Here is the background to my question: I have a dimension with a single parent child hierarchy. The key column is test_key and the parent column is test_key_parent, both of type integer. This works beautifully except for the MDX member names which are similar to "[Dim Test].[Hierarchy].&[10]". This project has a requirement that the member unique names are readable so this is not acceptable for me. My next approach was to add a couple of string columns: test_co ...Show All
Visual Studio Express Editions website expression validator
hi all..... how can i check the website whether it is in valid format / type when user input the webiste url in the textbox.... the code below is used to check email expression Regex.IsMatch(txtEmail.Text, _ "^([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\] )$") = False but i can't find out the website expression in visual baisc....... please let me know if anyone got the solution.... thanks thanks for u replies i have found out the sulution.........i check the url by using the code below.. If Not txtWeb ...Show All
Visual C# VS 2005: "Key not valid for use in specified state"
Hi all- I'm running VS 2005 final release version. I have a solution with two projects in it; an ASP.NET website in C# and a VB project which is my data access layer. Yesterday, this code was working fine. I can compile and run the solution, and all the code works. But when I try to access or add a new datasource through the VS 2005 Data Sources Explorer, I get a popup which says: "An unexpected error has occurred. Error message: key not valid for use in specified state." This message pops up after I select database as the source of my new datasource. The wizard does NOT fail if I use a Web Service as my new datasourc ...Show All
Windows Forms Multiple MainMenu problem
I have a Form with 3 MainMenus on it. I am trying to make as follows: foreach menu in "MenuCollection" menu.some_method My Problem is that I do not know where the "MenuCollection" is. I cannot create the collection manually. I know that all controls on a Form are in Form.Controls, but MainMenu is not. To  ...Show All
Visual Studio Express Editions Hoe to write a simple plugin for Visual Studio Express?
Hello, I have written a application specific(for Systemc kernel) profiler which records the statistics for a proces. I write these data into a file now.. I would like to display this information into a graphical view inside the IDE. I have developed plugins in the past for visual studio editions(6.0). I am not able to find a plugin project for Visual Stidio Express.. It is not available for this edition That will be really unfortunate.. since otherwise, Visual Studio express nicely meets all my needs and customers Is it in roadmap that plugin devlopment or atleast deployment will be supported in future editions of VS express Rega ...Show All
Visual Studio Team System Extensible Compiler for .NET
This may be a bit esoteric but...I thought I'd post it anyway. I've created a tool that relies heavily on the FxCop rule engine. I call it the Extensible Compiler for .NET. You can get the latest drop here: http://www.jasonbock.net/JB/Code/ExtensibleCompiler.zip Basically it's a way that you can add your own custom compilation rules. The rules I have in the drop to illustrate how it works by enforcing the following rules: * Checked exceptions (ala Java) * Base virtual method invocation * Constrained interfaces I use attributes in conjunction with these rules but any FxCop rules can be added to the engine. The code drop includes a Word doc th ...Show All
Visual Studio Team System Developer has no access to SCC
Hi, I am using TFS beta3r and am experiencing a strange problem with the project I've created last. Since project creation failed a couple of times I had to use tfsdeleteproject.exe to remove it twice before I was able to successfully create it. After that it seemed to work just fine but my developers are not even seeing the project in SCC. They can interact through Team-Explorer, but cannot see nor access the source-code. The complete hive is missing in the source-control-explorer. If I look as administrator, I see the TFS-Project hive 3 times and all 3 show the solution and files. I've checked the rights in SCC-explorer and they are ...Show All
Visual Studio Team System Individual Website settings versus Default website settings / Websites not available
If you choose to import settings from all Websites and Create a New Web site endpoint per site, the LDC correctly creates endpoints for each web site. Problem: There are no settings available for the individual endpoints. I have to configure settings on the Default Website node in Settings and Constraints Editor (SCE), and this applies to ALL websites. Example: I want to set the AuthFlags for an individual website to NTLM. Currently, I can only do this on the Default Website in SCE. However, in IIS, I am able to configure the individual websites separately. Why the discrepancy between the LDC and the physic ...Show All
SQL Server SQL String Help Please
I'm in the process of creating an application that converts one database to another database with different fields...pointless, yes, but easier than typing in 4000 entries My SQL string is SELECT * FROM tblInformation However, that's all fine and dandy, until I don't know the name of the table in the database...I know this doesn't work: SELECT * FROM * or SELECT * FROM ALL but I don't know what else to try. Is it even possible to select everything from every table First, there is no included (and supported) feature to do this, but htere is an unsupported feature to do this: sp_msforeachtable ' ...Show All
Visual C++ NMAKE : fatal error U1052: file date.mak not found
I am self-coaching myself VC++. I don't get it error. Could someone tell me where I went wrong Much appreciated. Thanks in advance. Header file: #ifndef Date_dot_h #define Date_dot_h 1 // Address class using dynamically-allocated strings class date { protected: int year_; int month_; int day_; public: date(); date(const int& d, const int& m, const int& y); bool valid() const; int day() const; int month() const; int year() const; void set_day (const int& day); void set_month (const int& month); void set_year (const i ...Show All
SQL Server Schema changes after Replication
I see from help books that table changes are not allowed using Enterprise Mgr. after a publication exists. The only way to make db changes is to use T-SQL. I found the correct sp to make changes below. I am using sp_repladdcolumn <tablename>,<columnname>,<datatype(25)> sp_repladdcolumn does not allow datatype length to be supplied. Result defaults to 1 and sets to NULL. I need a variable length on my datatype. Is this a syntax error on my part or am I not able to supply this parameter How to accomplish thx..bt sp_repladdcolumn supports datatype length, below is an sam ...Show All
Smart Device Development Maximized borderless forms on Pocket PC
Hi, after migrating an existing application to .NET CF 2.0 I experience an ugly behaviour with my maximized, borderless forms: I'm displaying stacked modal forms e.g. one modal form opens another, then that one closes etc. The not-so-nice thing is that now under CF 2.0, the Windows Start menu is briefly visible between the close of the child form and the redraw of the parent form. This was working nicely under CF 1.0 and seems to be a problem of CF 2.0. Any ideas or workarounds Thanks, Detlev Hi Detlev, Have you been able to solve the forms issue. I've just migrated from VS 2003 CF 1.0 to VS 2005 CF ...Show All
.NET Development How to release a program?
Hello world!, I have come to a point were I want to release a program to friends and other network computers though I am having a few troubles... I'am using Visual Studio .NET Enterprise Architect 2003, and program in most the languages though I've never released any programs due to had no real need till now. 1st. I compile the program as release, so I go to my release folder and sent it to another computer and it does not work. What files will have to go with the .exe 2nd. Once I work out the 1st question, I would like to put it in an installer so I can transpher as one file ect, though it will need the .NET framework in it as we ...Show All
Visual Studio Team System error 3200
I have the follow error: error 3200 when I’m for finish the install Visual Studio Team Foundation App-Data Tier Beta in a single Server. Unfortunately that error number can mean a number of things. We are working on improving the error reporting in setup. For now, the only way to investigate the problem is to examine the setup log and the event viewer. It's often a web service that isn't starting up properly for some reason. ...Show All
Windows Forms FYI - "Fixing" javascript events with .NET Framework 1.1 and SP1
For those of you who are using or were using javascript events prior to SP1 with the .NET Framework and are having issues - there exists a fairly straight forward workaround. Steps to take: 1. Do not use standard Javascript event syntax or object.attachEvent(...) - Both of these raise SecurityDemands for the UnmanagedCode permission - which will fail in IE unles ...Show All
