John Malkovich's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Which version of MDX to choose?
Hi! I've decided to start learining C# and MDX. Which version of MDX i should choose I thought about 2.0, but it's still beta and there's no documentation for it. What advantages does it have over version 1.1 use 1.1 its release and it works. mdx 2.0 is being rolled up in to the xna framework, and is currently not being worked on :( and in its current release, 2.0 has bugs i guessing MS hasn't said when the xna framework will come out ...Show All
SQL Server Full Text "And Not" Fails
I have set up a simple "ProdTest1" table with 3 columns: ID (int) which is an Identity column and indexed, Name (nvarchar 45), and Description (nvarchar 2000). I have then entered a single row with the following data: ID: 1 Name: Purple Black Blue Description: Black Blue I have then set up a Full-Text index based on the Name and Description columns. When I execute the following query that row is returned in the query results: select * from ProdTest1 where contains (*,'Black and not purple') I would not expect any returned rows. Am I missing something I am using Microsoft SQL Server 2000 - 8.00.2039 (Enterprise Edition) Thank ...Show All
.NET Development Using c# in Visual Web Developer
Hi, I have a question: Is it possible to use the c# language in Visual Web Developer How Regards, Behzad When creating a new website and specifying the type and location, there is a ComboBox on the form that allows you to chant change the language. See http://beta.asp.net/guidedtour2/Library/Sample1-1.vb.jpg for a screenshot of this. ...Show All
SQL Server How to not send subscription report if no data
I have a report that may or may not have data. I have a subscription setup for this report. The subscription has a defined To list. I would like to NOT send the report if there is no data on the report. I did this in SQL 2000 by raising an error from the stored procedure if there was no data. However, that approach does not seem to work with 2005. Is there another way to accomplish this It shouldn't have worked before... The best way to do this is via data driven subscriptions. You can return no rows in the subscription query, which will result in no reports being sent. ...Show All
SQL Server SELECT permission denied on object 'database object', database 'databasename', owner 'dbo'.
I have created a sql login account called "webuser" and has given public role in my database. In my asp.net application i build connection string using above account and its password . We give permission on store procedure for for the above account to execute .We dont give table level permission for the above account . When we run the application with the above settings it runs fine on test server . However Now i have transfered the databse object to live server with its permissions . Now while I executing the aspx page , I am getting above error . I have checked that the store procedure has execute permission for webuser account a ...Show All
Visual Studio Team System Possible to detect use of enum.ToString()?
Does anyone know if it is possible to detect the use of an enum's "ToString()" method The reason I ask is because we have started obfuscating our code using Dotfuscator, and of course because that renames the enums, it plays merry hell with any use of enum.ToString()! It'd be great if FXCopy could detect such usage. Also, I guess we'd need to detect enum.Parse() and other reflection-style access. Any help would be much appreciated! Just to follow this up: I used Michael's source code to solve the problem - thanks Michael! I also had to add a rule to detect the boxing of enums, because you can pass an e ...Show All
Visual Studio 2008 (Pre-release) Why not go one step further and allow persistence?
I always wondered why the LINQ project does not go the extra mile and provide persistence to the LINQ project. DLINQ is a good step; but, from an OO point of view, one goes backwards: from a Database Schema to an OO Model. It should be from an OO model to the Database Schema, and the database schema automatically updated. I believe LINQ should provide that to be complete. :-) Call it LINQS (S=Save). I assume you're not just storing blobs in the database I think there are a couple things you would need to answer: - Is identity management supported - Is change tracking supported ...Show All
Windows Forms build propertygrid at runtime...
What I want to be able to do is add properties to my propertygrid at runtime depending on what properties the user has specified with a database table. Let me give you an example and hopefully it might all become clearer. I have a propertygrid called 'propGrid1' which is placed on my form already at design time. I then have a database table w ...Show All
Visual C# Problem in overriding or adding methods in Collections .Can you help?
First of all ,please be patient with me as I am trying to learn c#(moving from vb) + use of generics Collections and I am problems in trying to improve my collections I have created a set of collection all inheriting from the original ones. I would like to extend the collections that MS gives us by either overriding or adding my own methods etc.However I seem to have all sorts of problems 1)Trying to override Contains to give my own implemention tells that I cannot override it. making the class internal tells me that I have to use the New keyword as I might hide a method. WHat do they mean add New keyword.Also How can I ...Show All
Visual Studio Team System Automated Test?
I was under the assumption that 2005 had a way to create automated test. I can not find it we are trying to move from IBM Rational Robot to using all products Microsoft. Can anyone point me in the right direction What type of test are you trying to create All of the testing features are in Visual Studio 2005 Team System. http://msdn.microsoft.com/vstudio/teamsystem/products/test/default.aspx (note in the Product dropdown select Visual Studio 2005 Team system) http://msdn.microsoft.com/vstudio/products/newfeatures/default.aspx http://msdn.microsoft.com/vstudio/teamsystem/products/suite/ ...Show All
SQL Server AttachDbFilename, |DataDirectory| and SQL Server 2005 June CTP Relative Paths
Hello, I am using "AttachDbFilename" to connect to a June CTP SQLExpress database. I have a windows forms application that has the following connection string (which works fine at the moment): "Data Source=.\SQLEXPRESS;AttachDbFilename='|DataDirectory|test.mdf';Integrated Security=True;User Instance=True" However, I would like to make my connection string: "Data Source=.\SQLEXPRESS;AttachDbFilename='|DataDirectory|..\..\Database\test.mdf';Integrated Security=True;User Instance=True" But no matter what combination I try (including not using DataDirectory at all), I cannot seem to open the ...Show All
Audio and Video Development Is the new Media Foundation a replacement of Direct Show?
They seem to perform the same task too me. Is Media Foundation supposed to replace Direct Show Thank you both for your answers! I'm looking forward to read the whitepaper, Prakash. I will monitor the MSDN RSS feed, since I assume it will show up there as well. ...Show All
SQL Server INSTEAD OF UPDATE trigger and cannot be a target of an UPDATE FROM statement
Hi all, I have a view called Item CREATE VIEW ITEM AS SELECT * FROM General.DBO.ITEM UNION SELECT * FROM Specific.DBO.ITEM Schema of Item & ItemLog in General & Specific Itemcode int, ItemName varchar(50), Rate int, Flag char(1) I have a trigger (Instead of Update) on this view : CREATE TRIGGER UpdPageItem on Item instead of update as Declare @Itemcode int, @ItemName varchar(50), @Rate int, @Flag char(1) Select @Itemcode = Itemcode , @ItemName = ItemName, @Rate = Rate , @Flag = Flag from inserted If @flag = 'G' Insert General.DBO.ItemLog Values (@Itemcod ...Show All
Windows Forms Microsoft Certificate Services and ClickOnce
Good morning, all! I apologize if this question has already been addressed, but by an admittedly cursory search I wasn't able to find one, so I'll go ahead. Our organization has a configured Certificate server on our active directory network that we are using for certificates other than code signing. However, since we have this server and all of our applications are being depolyed internally only, we don't see the need for third party (ie, VeriSign, etc.) certificates when we can issue code signing certificates ourselves. However, I have as of yet been unable to determine how to request a certificate for our organization or department rather ...Show All
Windows Forms Adding dynamic panels to a panel in C#
I am apologizing in advance if this doesn't make sense; I am new to this and may lack the proper vocabulary. What I am trying to do is make a window form that takes in data to send it to a Db. There is a set of required information that requires to be there in order to be processed, which I will call a "slot". The problem that I am encountering is that I want an option to create many slots in this form. I have a main panel and was wondering how to add multiple instances of my "slot" panel to it. Hope this makes sense. Thanks Hi LC, If I'm not mistaken, these slots of yours correspond to rows of dat ...Show All
