kailass's Q&A profile
SQL Server Validate by column name
Hi, I would like to validate a large file using an IS package before importing it into a table using IS. The Validation rules are stored in the database against each column name Question 1. Is there a way I can get the column names of Input (coming from the file) (So I could check them against the validation table) 2. Can I store these rules in memory, may be using an array if so how do i create an array 3. What would be the best way to go a ...Show All
Visual Studio Express Editions How to create a sort of login?
Hello I want to make a program for certain people and I want it so that they need to enter a code the first time they run the program. The codes would need to be programmed into the program and a certain code would need to show certain info in the program ( for example: if someone entered code 12345 on the first startup the program would show 'welcome name'). If you need some extra explenation just ask. I would like to know how to do this. ...Show All
Software Development for Windows Vista WWF Performance issues
I am doing some timing measurements to figure out whether we can use WWF for orchastrating code within our project. Here are some of the numbers I am getting and questions associated with them: 1. For a workflow with about 5-6 activities including a parallel activity and several code activities, the time to create the workflow the first time is more than 300 millisecs (328, 359, etc). All subsequent times it takes about 15 millisecs. What i ...Show All
Windows Forms Search for values in a comboBox
Is it possible to search for a value in a comboBox when I type in the comboBox For example, I have a comboBox that is populated with Suburbs of Australia. I wish to allow the user to type in the comboBox for example the first 3 letters of a Suburb lets say Wes and it will take them to the first record that has the first 3 letters of Wes and the full Suburb name is West End. has anyone ever done this Ok. So I h ...Show All
Software Development for Windows Vista Lost in a while loop!
Please help me, I'm lost in a while loop! I have a basic workflow I am designing. It is designed to send an email to a person, and then wait for some time before checking a database. If the database has been updated, the while loop ends. Otherwise, it sends the email to a different person. My problem is with the SendEmail activity posted on the workflows site. Specifically ...Show All
Visual Basic Can reflection do this?
I wasn't sure if this was the best place to post this question but I figured why not give it a try. What I want to do is write code that can look at the input parameter values that are passed to a method at runtime. I would suspect this is something we can do using reflection but I can't find any way to do it. I know I can look at a specific instance of a class and look at it's property names and values but what about the methods that are being ...Show All
Visual Studio Express Editions a minor problem
whenever i change the graphics of a cursor, as soon as it goes over a picture box the graphic changes back to the pointer. How do I make it so that the graphic i set stays the same I have minor problems too, hanging out at my house at late hours drinking all my liquor, sheesh. Dumb minors! hehe ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Are there any drawbacks to this?
Hi again! I had this freaky idea earlier today where I decided to render my entire GUI to a texture and render this texture to the screen. This way, I don't have to go through my entire GUI rendering process every frame, which seems to double my framerate in GUI intensive situations. I only update this texture when when the GUI needs updating. I can't shake off this dodgy feeling that this can't be a good way to do things though. Is there ...Show All
Visual C# IEnumerable/IEnumerator example
I copy pasted the example from MSDN and get a compile error. Can anyone give me a hand From http://msdn.microsoft.com/msdnmag/issues/04/05/C20/ , under section titled " Iterator Implementation" public class CityCollection : IEnumerable < string > { public IEnumerator < string > GetEnumerator() { yield return "New York"; ...Show All
Visual C# Generic Base Static Constructor behavior
Hi all, I have found some weird behavior with a class that derives from a genericized base class when the base class has static methods, etc. Here is some sample code: public class TemplatedBase <TDerived> { static TemplatedBase() { Console .WriteLine( "TemplatedBase cctor" ); } public static void TemplatedBaseStaticMethod() { Console .WriteLine( " TemplatedBaseStaticMethod " ); } } ...Show All
Windows Forms Problem Deleting Data from DataGridView
Hi. I am using a DataGridView control, when I select a row in this control and type "Supr" key, the row that I selected is deleted of DataGridView Control. I want to display a Messagebox after typing "Supr" key asking: "Are you sure you want to delete this row ", if user select "No" button, the row shouldn’t be deleted of DataGridView, but if user select "Yes" button, the row should be dele ...Show All
SQL Server Exceptions and damaged databases in SQL Express 2005 & C#
Hi, When a database has become corrupted (for whatever reason), when you try to open a connection to it using the SqlConnection class in C#, will it allow the connection to open I'm trying to figure out if it will allow the connection to be opened, but will throw an SqlException when a command is sent to the server. Thanks, KingyNL When you try to open a connection, exception will thrown if damaged dat ...Show All
Visual Basic lost on final steps of project.
I am trying to learn Visual Basic on my own and would like to create small one window programs that can be run independently on any windows machine. I created a simple math program that runs fine in visual basic 2005 express beta 2. I want to build it as a simple application I can load on another machine by way of a floppy disk but I can't get it to work. I'm missing something basic but I don't know what it is. I followed the steps in chap ...Show All
Software Development for Windows Vista Activity Property values not available at runtime
I am currently experimenting with a custom activity. We have a number of business rule objects which implement various, relatively complex data validation rules. The custom activity allows these business rule objects to be assigned to the activity and for parameters to be assigned as part of a workflow that links together a number of these business rule classes into a sequential [potentially brancing] workflow. So I basically have: BRActivity ...Show All
Visual Studio Team System Sample Files for Team System
In the documentation for Team Architect, there is a link to the MS downloads area to get the sample application. This link doesn't resolve and you are dropped at the top page. Searching for the sample applications doesn't come back with anything. Any idea when the code will be posted The url given is: go.microsoft.com/fwlink/ LinkId=40867 Just to be clear this is the eCommerce Logical Datacenter Diagram and the Catalog Application. I ...Show All
