Leon Mayne's Q&A profile
SQL Server xml data source, not sure why i'm losing data
I created a SSIS package, it calls for web service which creates an .xml file, then I use XML source to point to the xml file and want it to be imported to a table, but data won’t go into the database table. I believe it’s something wrong with the xml file format, but don’t know how to change it. Here is what the .xml file like: < xml version="1.0" encoding="utf-16" > <DataSet> <xs:schema id="NewDataSet" xmlns="" xmlns:xs=" http://www.w3.org/2001/XMLSchema " xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> <xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true"> <xs:complexType> ...Show All
Visual Studio Express Editions A strange error? Help!
I installed Visual C++ 2005 Expression in my computer on driver E: and I also registered, later received a thanks reply, but I can't creat a new project,when I try to creat one,just jump out a window warning:" Automation 服 器不能 建 象!"(Translated like the following:Automation can't creat an object!). This morning I installed it ,and reinstall it on driver C:, I also registed with the same hotmail address then receive another thanks reply,When I opened the start page, I select "Help->Register Product" but the Visual C++ 2005 Expression window tells me "The product has already been registered!". And when I try to creat a object,the same thing happen again . What's wrong with it Can someone tell me I just ...Show All
Windows Forms how to avoid flickering in repainting
hi, I have developed a user control , in that i have overridden the onpaint method. whenever a mousemove event happened i am invalidating the control using Invalidate(). The thing is it is flickering often, Can anyone explain, 1) why the flickering occurs ( since internally every control like buttton, trackbar are repainted everytime right...correct me if i am wrong ) 2) how to avoid the flickering( it should not contain even 1% flickering in the control ) thanks singam. Flickering occurs like this: 1) something is painted (usually the background of the color) 2) user sees that 3) another thing is painted (let's say a line) 3) user sees what has been painted in step 1 and the new line from s ...Show All
Visual Basic Copy control in tabpage of trabcontrol to another tabpage
Hello, In tabcontrol, is it possible to copy controls from a tabpage to another tabpage. The initial tabpage has 2 textbox and 1 button. The click event of button is the same in each tabpage. The purpose is to have x tabpages identical just the name of tabpage change. Thanks Ben OK, Here's a solution. Put you controls (Tetxboxes and Button on a panel control on a form) And then when the Tabcontrol - selectedindexchanged event fires then simply add the panel to the appropriate tabpage controls collection. This means you only have one set of controls which can be used across all the tabpages. In this case I have two tabs - which ever one you click on the controls will be ...Show All
SQL Server Slow access unless administrator account
We have an issue with accessing SQL Server 2000 where the access of data from the database is slow unless the user is logged in as an administrator to their computer. The system is as follows: SQL Server 2000 on a W2K server. Users logging into a Win 2003 domain server. Users using W2K on their workstations. Application is VB.NET using the Enterprise Library Data Block, connection pooling ON, and windows authentication. We are assuming that the issue is down to one of authentication and that when a user is set as an administrator then they have instant access. We have been able to replicate the issue using just SQL server on a W2K workstation and accessing from another W2K workstation. Again data access is way slow unless the account ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How do I sign up for XNA Creators Club
I have been looking for how to sign up to the XNA creators club. Some other post says you can do this through the xbox live marketplace. I can't for the LIFE OF ME find anything on the dashboard even mentioning XNA. Can someone PLEASE tell me how to do this. Thanks ! Clicky . Also, make sure you don't have parental controls set that would be hiding it. ...Show All
Visual C# How to Make Form "Snap" to the Screen Edge of Another Form?
Hi... How to Make Form "Snap" to the Screen Edge of Another Form Is there are way to do it on C# Thanks. Khalid Ashraf wrote: Use this code to snap a form to the upper left corner of the main form: Form f1 = new Form (); f1.StartPosition = FormStartPosition .Manual; f1.Location = new Point ( this .Location.X, this .Location.Y); f1.Show( ); How about just snapping it to the bottom of another window Thanks. ...Show All
SQL Server insufficent system memory
Running a large transaction that runs successfully in SQL 2000 in a couple of minutes but running on another system with SQL 2005 after 4 hours it failed with error “ there is insufficient system memory to run this query” Both systems are running a GIG of memory with 1 instance each and nothing else running. 1 Gig of memory for SQL 2005 seems to be way underpowered as crazy at that might seem. Is the only answer to add more memory or are there settings I can adjust to avoid SQL 2005 from being such a hog Thank you in advanced, Pauly C ...Show All
Visual Basic updating acces database
Hi friendz I made a program with an acces database. I have a problem with the updating: I run program, enter a new name, press ok, name appears. But when i restart the program, the name isn't there anymore. Code: Me .Tabel1BindingSource.EndEdit() Me .Tabel1TableAdapter.Update( Me .GamesDatabaseDataSet.Tabel1) Also I changed the "copy to output directory" property to "copy always" Can some1 say what I do wrong PLEASE DON'T GIVE ME LINK, I DON'T GET ANYTHING OF THOSE STUFFS I'd like the good code Ty in advance Marnik If you have it set to copy always, the database that holds your changes, will always be overwritten by the original database that you created the program with. Basically, you ...Show All
Visual Studio 2008 (Pre-release) Do you plan some editable ListView (DataGrid) WPF control?
Do you plan some editable ListView (DataGrid) WPF control It is my understanding that the set of controls that will ship in v1 are complete in the current beta/ctp. There are control vendors working on such things, and you can get most of the way there with the existing controls. Look at the ATC Blog for some good examples on how to combine the current controls to produce a more complete data presentation result. For a full database editing experience you will need a third party control, or need to do some coding on your own. ...Show All
Software Development for Windows Vista Anyone has latest Vista-specific version of <SDDL.H> Windows header file?
I am looking for the latest version of the Windows header file <sddl.h> that contains cnstants related to Vista's Mandatory Access Control and to Process Isoation. Does anyone have it or knows how to get it Is such file available from Microsoft The speciifc definitions I am looking to get from this file are: * String constants to construct SACL ACE for Mandatory Access Control * Constants like SDDL_IL_LOW, SDDL_IL_MEDIUM, SDDL_IL_HIGH * Any SDDL ACE declarations/definitions that might be related to the activation of running COM/DCOM servers from various Integrity Levels I'd appreciate any help, Hello karen_tgha, sddl.h is included with the Windows Vista SDK and is located in C:\Program Files\Microsoft SDKs\Windows\v6.0 once ...Show All
.NET Development strange Thread-pool behavior behind WebService
since a few day's i'm running around the problem that I stocked with a change i need to do. hopefully somebody here can give me a tipp which will be usefull to solve my problem. I'm using a thread-pool within my WebSite which done some requests to several interfaces the readed data will be added to the cache. This operations consumes much CPU and I want to have this outside my website so i decided to change the flow. It should looks now like this: User Request -> Internal Call to DB to read needed Interfaces to Invoke -> Create Base Shared Cache Object and Add it to Shared Cache -> Call the WebService -> Navigate to Result page Thr result page will trigger the Website and the Code Behind triggers the shared Cache to ...Show All
Visual Basic Custom CType operator not being called
This code defines a custom CType operator that converts Integer to TestNumber. This works great when converting from Integer to TestNumber. But an InvalidCastException occurs when converting from Object of type Integer to TestNumber. The online help for CType function implies that this call should work. "If the conversion is undefined, an InvalidCastException occurs. This can happen, for example, if expression is of type Object and its run-time type has no conversion to typename ." But because of the custom CType operator, there *is* a conversion from the run-time type (Integer) to typename (TestNumber). This problem is causing big headaches in my app. It happens on both VS 2005 and VS 2005 SP1. This seems like a CType bug ...Show All
Visual Studio ss.exe get with no prompt
Hi, In the VSS i want to write a script that perform a get for a directory but it stuck and wait for user answer ,I get the following prompt ( the string in <> is changed by me it's directory name that i am checking out ) : <directory> as the default folder for project < vss-directory> (Y/N) How can i set that the answer is NO. Thanks. Zvia I was looking for that for ages. The command line help for this is quite confusing I think. I had a read over the -I (i) switch thinking it was nothing to do with such auto answer / silent run options. Until you go right into the full switch details and read the info on that particular switch I had no idea where it was hidden. Tha ...Show All
Visual Basic Creating a component inherits from a windows forms control
Hey All, I have a question, I want to create a class which inherits from a Windows forms controls, for example a "Combo box". Like : Public Class SampleCombo Inherits Windows.Forms.ComboBox 'New Events 'New Methods 'Other codes End Class After I create the new class I want to use it on my applications. I can easily include the newly created class to my project with code. -- Friend With Events NewCmb As SampleCombo . But I want to be able to see the new class (or component) in my tool box just as the other components. What kind of steps should I take Thanks for your time, Regards Ayhan ...Show All
