KluchCode's Q&A profile
SQL Server Slow Running Insert After Changing OLE DB Destination Data Access Mode
Hello, In a Data Flow Task, I have an insert that occurs into a SQL Server 2000 table from a fixed width flat file. The SQL Server table that the data goes into is accessed through an OLE DB connection manager that uses the Native OLE DB\Microsoft OLE DB Provider for SQL Server. In the OLE DB Destination, I changed the access mode from Table or View - fast load to Table or View because I needed to implement OLE DB Destination Error Output. The Error output goes to a SQL Server 2000 table that uses the same connection manager. The OLE DB Destination Editor Error Output 'Error' option is configured to 'Redirect' the row. 'Set this value to selected cells' is set to 'Fail component'. Was changing the access mode the simple reason ...Show All
Visual Studio 2008 (Pre-release) ServiceBehavior attribute
I'm reviewing some service implementations written by another developer and I've found a number of concrete classes affixed with the ServiceBehavior attribute. I'm not sure why. The attribute has a single parameter defining the namespace. And it's exactly the same as the namespace parameter in the ServiceContract attribute used for defining the service interface class. Seems redundant to me, but I'd appreciate any feedback on why ServiceBehavior might be used. No need to apply ServiceBehaviorAttribute for redundant namespace definition. This could be useful only if the contract (interface) namespace will not apply to all service implementations. ServiceBehaviorAttribute should be used for many other re ...Show All
Visual C++ I want to add/remove ES_PASSWORD(CEdit) style, dynamically.
Hi all, How can I change style ES_PASSWORD of CEdit, dynamically ModifyStyle() didn't work. I just want to add/remove this style dynamically. Thanks. :) Purusothaman A Hi, We can use SetPasswordChar function to change the password style dynamically. m_EditBox.SetPasswordChar(_T('$')); - will set '$' as password char and m_EditBox.SetPasswordChar(0) ; - will remove the password style. The above function works fine with both VS2003 and VS2005. Thanx & Regards, Ch.T.Gopi Kumar. ...Show All
.NET Development Client to DLL that connects to a SQL Server database file
Remote Client -----> DLL that connects to .MDF file I'm having trouble getting my client to successfully talk to a DLL that opens a database file (on a remote machine). Here is what I've done so far: 1. in Visual Studio 2005, developed a Windows application (not web services) that references a DLL that connects to a named instance (server1) of a SQL Server database file. The connection string is: strConnection = "Data Source=.\SERVER1;Initial Catalog=" & dbName & ";Integrated Security=True" 2. using Transact-SQL, create a database on a bare-bones computer (which is running SQL Server). This is a regular production-level .MDF file. 3. the DLL uses ADO.NET to open a connection to ...Show All
Visual C# System.Char[] question
I am running a continuous download of records from a server. To monitor the progress I use a progress bar and at the same time I send symbols to a RichTextBox via an invoker. The symbols are just added to the previous content with a single space separating them. It is a continuous line for symbols but they are wrapped around in a small window thus I see about 6 symbols per line. At certain time I need to start a new paragraph, so to speak. I decided to send this character: char [] CR = new char [ 13 ]; to the textbox: Then the first symbol of the next paragraph is combined with CR like this: CR+symbol. Instead of getting a new line I get this in the window: System.Char[]ABCD where the ABCD is one of the symbols. In othe ...Show All
Visual Studio 2008 (Pre-release) DateTime display format in GridView
Does anyone know how to format the DateTime text and display it in my grid view. Right now the format is rather arbitrary. xmlns:local = " clr-namespace:BonusPromoWPF " then later: DisplayMemberBinding = " {Binding Path=startDate, Converter=local:DateTimeConverter} " wont parse XAML file, throws exception ...Show All
Smart Device Development what
i downloaded what the link said would be the device emulator but got bpvault.asp, what do i do with that am i not getting the right link or something or do i have to get the program off of the bpvault is it like an image or something Ludy wrote: i have the same problem as the other guy. i'm trying to download DeviceEmulator050419.msi . this is the link that it sends me to .http://beta.microsoft.com/source/bpVault.asp ProgID=1522000000&ContentID=121412 ...Show All
SQL Server No transparency used by report using PNG Image?
Hi, I used some transparent png images in my reports, but it seems that they are rendered using a white background. Why is this Best Regards. Luis Simoes Luis, There is a known issue with PNG Transparency in Internet Explorer, which may be what your experiencing. This link may help http://support.microsoft.com/ scid=kb;en-us;265221 Regards, Kevin ...Show All
Visual Basic COM Exception Error - Booking System Logon
Hey Everybody, I'm creating a booking system for my A-Level Computing class using Visual Basic Express 2005 and SQL Server and at the moment im having some trouble with allowing the user to logon to the system. To do this i have created a logon screen and am running a query when the user clicks the OK button after putting in their username and password. This query checks their username and password aswell as their access level against a table in my database and returns either a "1" value for there is a record or a "0" value if there is not. Depending on the outcome the user is either declined access or is allowed access to the next form. This Is The Code: Private Sub OK_Click(ByVal sender ...Show All
Windows Live Developer Forums Quote of the Day Plugin
I wrote another plugin today for inserting a Quote of the Day from a free web service. More details and download on my blog. http://www.myblog4fun.com/dmohorn/archive/2006/10/12/28.aspx Enjoy! Bonnie, a developer on the Writer team, put together a blog post describing how to make an installer using WIX. Check it out! http://bplo.spaces.live.com/blog/cns!CF2831C0AE64E81B!210.entry HTH! Charles Teague - MSFT ...Show All
Visual C# Little Help
I have figured out how to open webpages, but, if on the button click you open a webpage, say www.google.com. But, if you have a textbot on the program, and on the button click you want www.google.com/i-typed-this-in-the-textbot, how would you go about coding that Thanks I got the button fine, but if I want to search something containing 2 words it dosnt seem to use the second word, such as www.search.com/C++ tutoirlal, it will exclude tutorial, also im not sure how to click the search button by hitting enter on the keyboard ...Show All
Visual Basic Sorting a Listview
Hi, I' am currently writing an irc client for my own personal chat server. And I'm trying to sort the nicklist properly. So it would be like "." above "@" , etc. But I can't seem to figure out how. If you know what I' m trying to do then please help. Thanks. Becasue I remove the "." and "@" and replace them with icons on the listview so then the nicklist isnt sorted right. So you will have normal users above hosts. =\ Im writing this in Visual Basic .NET 2005 Express Edition. i see your problem the thing is the listview will not sort by character ie: . @ +, etc if those characters are removed. It will sort alphabetically. The .@+ MUST be present. I see no problems with having an icon and the usermo ...Show All
Visual Studio Express Editions Locking Mouse
Hi ive been looking for days to find the code that will lock "Block" the mouse move event from being processed... So far i've tried the code: actHook= new UserActivityHook (); actHook.OnMouseActivity+= new MouseEventHandler (MouseMoved); public void MouseMoved( object sender, MouseEventArgs e) { Cursor .Position = Ace; } where Ace is the point that the mouse was at last. This doesn't work unfortunatly as i can still move the mouse around... That event is hooked with a class called UserActivityHook (declared as actHook) (not my class) UserActivityHook public event MouseEventHandler OnMouseActivity; I'm thinking that Cursor .Position is only repainting the cursor and while the mouse ...Show All
Software Development for Windows Vista Handling RecognitionResults
Hi everybody! I have the following situation: I have a simple Label where the user can write on using an InkCollector. I also have a Recognizer started to recognize the written Ink in Background-Mode. The computed results are shown below the Label just in time being available. If the user clicks on one word of the recognized text he gets the alternatives. If he chooses one out of them the alternative should replace the original recognized word. And exactly here is my problem. How can I persist the chosen alternative I know, that I'm able to Modify the TopAlternative and I can do the SetResultOnStroke to copy the (changed) RecognitionResult to the appropriate strokes-collection. But in fact this strokes-collection is just a copy of th ...Show All
Visual Studio Warning: (dll) does not contain any types that can be unregistered for COM Interop
I am getting a warning in a large project that I cannot clear. "(dll) does not contain any types that can be unregistered for COM Interop" and also "(dll) does not contain any types that can be registered for COM Interop". I have searched the Microsoft website and the web without finding anything useful. I would like to know whether or not it is important and, regardless of whether it is, how to clear it or at least suppress it. I can't even suppress it because there does not appear to be a warning number. Rick Harrison This same "warning" (which sounds like a fatal error, if it's true) is also happening for me (VS 2005 on Win XP Pro) and has also been reported on the web at the following po ...Show All
