Kurt Biesemans's Q&A profile
SQL Server Change "Output Alias" on synchronous component programatically
Wanted to enquire how this is done. Tried doing it in the setUsageType method I have overwritten but only allows description to be changed. Basically need to change "Name". Best option would be to change it instantly when a user selects a column from the inputs in the custom component, ie. it changes the Output Alias to a desired value. (Input tab in advanced editor) All this is being done in a custom component which I would like to be synchronous, can achieve a similar result asynchronously. Thanks If you change the name is setUsageType you see a change in debug mode but eventually it does not change the column name (strangely description can be changed however), basically cha ...Show All
Visual Basic Mount a virtual drive?
Hello, I'm interested in making a program that has the ability to mount a folder (e.g. C:\MyFolder\) to a drive letter (e.g. F:\). Is this possible with VB If so how do I do it And if not, can it be achieved with C++ or C# robinjam wrote: Ok, I understand I can use subst.exe to mount/unmount drives, but is it entirely safe to do so I've heard horror stories about data corruption from this sort of thing. Subst should not cause data corruption. If you have more specific example of what horror stories you heard maybe it is possible to explain it. I can imagine that a common mistake is that a mapped drive is assumed to always be on the same drive letter. I will try one scenario that might explain something that can ...Show All
Visual C# Thread syncronisation is required...?
Hi… In my application I am using 8 threads. All 8 threads are calling 1 function & in that function I am passing a string & index of thread. According to the index & if that passed string is matched with the string then I am popping a dialog box with thread number… I want my all the threads to call the same function in between their routine… Does this require thread synchronization… My code is running fine but while debugging its giving error that Cross-Threaded Operation in Invalid… If thread synchronization is required how I can do that… or if not what is the other way to avoid this exception… //Sample code - : void Thread_Handler1() { for (; ; ) ...Show All
SQL Server Data Migration Error - SQL TYPE Variant data
I am trying to migrate our Portals database from SQL2000 to SQL2005, but I received "SQL Type Variant Data" error during the data migration with some database. Can anyone help me with this Thanks, Jay ...Show All
Windows Forms NumericUpDown Controls...how to select the text when it gets the focus
I am looking for a way to select the contents of the control when tabbed into/focus....it does not have SelectionLength/SelectionStart properties.... It's a windows Application and the control I was talking about was NumericUpDown control, available in .NET. ...Show All
Visual C# SQL 2005 selected maximum between columns for each record
Hello, I have a database in SQL Server 2005 and I am trying to figure out how to create a new field and populate that field with the maximum value from for other fields for each record. I am hoping that this is a simple SQL statement or even a function designed to do this task. Anyway I have limited experience and would appreciate any help you can offer. Thank you, Nathan Computed column can be calculated from values of that's row values. Also you can't use aggregate functions in Compute expression. I don't see a reason of having same maximum value in all rows in table. Trigers can be used but be carefull when updating rows, to not raise same trigger again. If you explain the problem little more, maybe I wi ...Show All
Visual FoxPro Deleted -SQL HELP
I am having trouble with a form i created. It is a form with a grid of an email address book - table. I want to the user an option of deleting names from the grid/table and it works fine when i "Set Delete On" and test it. But when I implement it into the program and call the form from a main program it gives me an error that says "Deleted variable not found". any suggestions this is the code for the command button that deleted the record: select emailaddressbook DELETE FROM emailaddressbook where idemail = temp thisform.grd_Email.Refresh like i said, it works stand-alone Try commenting out the delete command and see if you still get the error. It might be coming from somewhere else ...Show All
.NET Development Mapping objects amost real time
Hi, I don't know if it's the right newsgroup, but I have a little problem. I have a Windows Service which has a SortedList containing a lot of objects which I'm always updating. I'd like to save them almost real-time on another machine with SQLServer 2005, because, in case of a crash or a simple restart, I can populate again the SortedList with those very same objects. How should I do it I was thinking about serilizing the objects in xml and saving them on a specific table.... Many thanks for your kind help ! Massimo Hi, The best solution depends on The complextity of your objects : - if y have simple objects (no inheritance, no custom interfaces) u can store each object in a separate row. - Oth ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Bounding Box Not Rotating Correctly
I have a bounding box around a rotating object which is positioned at the origin. The object is only rotating about the Z-axis and I'm wanting the bounding box to rotate with it. To achieve this I am translating the bounding box's coordinates by the same rotation matrix as I'm using to rotate the object but it's not working correctly. Instead of rotating the bounding box it just appears to shrink and stretch it. I have written a simple method which just draws lines between the bounding boxes coordinates to display the bounding box which is how I know that the bounding box isn't being rotated correctly. Interestingly enough, the bounding box is always drawn with vertical and horizontal lines, never diagonal lines. So it could be my drawing ...Show All
Windows Forms OTP: how to put this...please helpme ..
hi all may be my question ll be easy for u but please tell me how to do this .. i having a grid view in my page .. am using select query and gettin the executed query in dataset and binding the gridview with this dataset i want to add a edit button at the end of the each row in gridview please tell me how to do this and how to call that editbutton for the code if i click on editing i should get tat window as like default edit comes with the gridview how to do this please help me out When you say 'page', is it a form, or a web page If it's a web page, you should ask at www.asp.net , ASP.NET questions are off topic here. ...Show All
.NET Development ASP.NET 2.0, Web SetUp Project
In VS2005 WebSetup, I have added the Project Output of a ASP.NET 2.0 Web Project. This adds the content files of the Web Project to the Web setup. Now how do I add a custom action to the Install Node in Custom Actions, as I am unable to get the primary output of the Web Project. In Asp.NET 2.0, When creating a Web Setup Project, On RightClick Set Up Project, In Add, will show Project Output, In Project Output, This will open Add Project Output Dialog, In Add Project O Dialog, Primary Output Option not available . I tried without this, but Setup will not run installer code. Please suggest any possible solution. Vivek I have one solution which contains few .vb projects in it and fo ...Show All
Visual Studio 2008 (Pre-release) UserName Password Authentication. Setting the Client side
Hi I have set up a server (wsHttpBinding) that should authenticate the incomming messages using asp.net membership provider. In the client proxy I write the username and the password to : prox.ClientCredentials.UserName.Password = "XYZ..." prox.ClientCredentials.UserName.UserName = "XYZ..." Unfortunatly the authentication failed. (of course the user was set in the DB...) (Exception I get: "The request for security token has invalid or malformed elements") Is there something I forgot to do in the client side What are the steps that should be done in the client to send the cridentials to the server Thanks Manu ( manu@sela.co.il ) Could be that the bi ...Show All
SQL Server SQL Server 2005 Data Encryption Issues
I read a couple of articles related to encryption topic in this forum and I feel that's really helpful I don't know if anyone has some knoeledge about the encryption issues in replication and clustering environment. I read some documents from Microsoft web site that explains how to move an encrypted database from its original server to another new server instance. That cause a lot manual works, if the database master key has been encrypted by the original service master key and you still want to enjoy the auto-open feature in the new environment. As we know the Microsoft SQL Server 2005 has a hierarchy encryption key structure and its top level service master key is really service oriented. For what kind of mechanism or set up, Microsoft ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Can't compile 3D code example
I'm having trouble compiling the tuturial code sample for GSE beta 2. The first 3d tutorial code as cut and pasted from microsoft (as modifed by me to reference my namespace) looks like what you see below. When I compile I get that a valid vertex or pixel shader needs to go on the device before it can be drawn, which make sense, except that the tutorial doesn't say how to do this. Can anyone help #region Using Statements using System; using System.Collections.Generic; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Audio; using Microsoft.Xna.Framework.Content; using Microsoft.Xna.Framework.Graphics; using Microsoft.Xna.Framework.Input; using Microsoft.Xna.Framework.Storage; #endregion namespace WindowsGame2 { /// <summar ...Show All
SQL Server Backing Up and Restoring Transactional Replication
From Help Transactional replication includes the sync with backup option, which can be set on the distribution database and the publication database: It is recommended to set this option on the distribution database in all cases. Setting this option on the distribution database ensures that transactions in the log of the publication database will not be truncated until they have been backed up at the distribution database. The distribution database can be restored to the last backup, and any missing transactions are delivered from the publication database to the distribution database; replication continues unaffected. Does database will not be truncated until they have been backed up at the distribution database mean that the d ...Show All
