Jeff Putz's Q&A profile
SQL Server Two approaches: which one is recommended?
I need to import a CSV file with a few million records and 50 fields into a table. Only 1 column in the file needs to be transformed and a second column needs to be checked for data validity (e.g. don't want to let someone pass in 'CA' for an integer field.). Two approaches come to mind: 1. Use SSIS to read the file directly into the table, then apply t-sql to do a mass update to the single field that needs to be transformed. (with this approach it is not clear how to check the data valdity in each row via t-sql, though). 2. Use SSIS to import the file, 1 line at a time, transforming the data and checking its validity.as it goes. I suspect this approach will be much slower than that in 1) but I haven't tried it yet. Which way do y ...Show All
Visual Basic Reading compressed Files
How do you access a Zip/compressed file like a folder with visual basic .net I saw such posts. but my question is this, "How do I read a zip/compressed file into memory and manipulate that data w/o decompressing the information to the disk." And after reading this information into this file, I would like to edit files in the zip/compressed file. any information on that ...Show All
Software Development for Windows Vista Workflow Designer Rehosting and XAML Workflow
Hi all, I am new to Windows Workflow. The XAML only workflow consists of custom activity which is defined in the 'test' namespace. The Namespace mapping construct maps Xml Namespace to the clr-namespace. I load this workflow in the workflow runtime. i.e. XAML Activation. This works fine. My problem is: I am trying to load the same XAML workflow in the workflow designer re-hosted using the WorkflowDesignerControl. The xoml is deserialised correctly and the root element 'MyRoot' is identified and added to the designer host. It cannot identify the child activities i.e. WriteLineActivity since it resides in a custom namespace and so the number of children for root element is 0. So only the root element is rendered on the designer and ...Show All
Visual Studio 2008 (Pre-release) Hide the black dottet Border when Control has the Focus?
Hello, i have defined a Style for a Button, but when the Button gets the Focus, it has the ugly Border, How can i hide it Thorsten ...Show All
Visual Studio Express Editions better installer!!!
Hi, i hate the installer in Visual C# 2005 Express.. is there any better installer (free or cheap).. Here . Use dem brain. ...Show All
Smart Device Development Receiving continuous mouse/key "up" events
My codebase is running under both the Windows Mobile 5.0 API and Win32. Under Win32, I correctly receive mouse & key down/up events via: WM_KEYDOWN WM_KEYUP WM_LBUTTONDOWN WM_LBUTTONUP ...in my window proc. For key events, I use the 30th MSB (0x40000000) to determine whether this is the "first" key down, and "first" key up event of it's kind as per the documentation: http://msdn.microsoft.com/library/default.asp url=/library/en-us/wceui40/html/cerefWM_KEYDOWN.asp However, under WinCE this bit does not appear to be correctly set for WM_KEYUP which means I keep processing all of them as they each claim to be the "first" key up event. I have the same issue with WM_LBUTTONUP ...Show All
Software Development for Windows Vista Windows Service Running Word via DCOM
Hi everyone, I developed a Windows service which uses MS Word to generate documents. I call Word using DCOM / OLE. Up to now it worked pretty well. I tested the service on Windows Vista (Beta2, RC1, RC2) and it doesn't work anymore. Opening a Document in Word crashes with varying error messages. Office 2003 sais somthing like "Not enough memory". Office 2007 sais something like "type mismatch". I guess it might have to do something with the Session 0 isolation in Windows Vista. As services in Vista now have an own session. But I guess Word has problems with it's screen. In older Windows versions, Word worked "in the dark". When I run the service as console everything works fine. Anyone an idea w ...Show All
Visual C# Getting Image Source URL
Hey everybody, I'm trying to drag-and-drop an image from a web page to my application. What I wanna do is to get the image source url.. When I drag an image to my app. I got the image itself or the target link (if the image is a link HREF).. How can I get the source url of the image.. For example, in the upper-left side of this forums there is a "msdnR" image.. When I drag and drop it to my app, I got as a result the image itself and the target of the image ( http://msdn.microsoft.com ).. What I want from my app to do, is to give me the location of the image itself, in this example, I wanna get http://forums.microsoft.com/library/toolbar/3.0/images/banners/msdn_masthead_ltr.gif as a result.. Can you help me ...Show All
Internet Explorer Development IE 7 CPU Utilization
I recently installed the IE7 release candidate. Over the past couple days, there have been numerous incidents where iexplore.exe process uses 95%+ CPU, and it hangs there for a minute or longer. I haven't found anything specific on this, but is it a known issue that Microsoft is going to fix Thanks, Jen I"m having the same problems too... I HATE IE7, its a memory hog when opening tabs or multiple windows and CPU utilization is usually 97% or so...... ...Show All
.NET Development How to make code wait "n" amount of seconds while being responsive to user input?
Hello, I need to check certain function every 10 seconds. I used Thread.Sleep() method but problem is that after I call it my Windows form is non-responsive and I can not see either screen updates or even exit from application. What is the proper way doing what I'm trying to do Maybe a better way would be a Windows.Forms.Timer because it executes its function on the UI thread and you don't have to deal with marshaling calls from a ThreadPool thread to the UI thread. Of course this assumes that you can finish your work quickly and not block the UI. ...Show All
Visual Basic Visual Studio .NET 2003
Hello: Where is the best place to ask a question, or report a possible bug, with Visual Studio .NET 2003. My probelm is with the "Propert Pages" of a project in a solution. Thanks. to post any bugs, I think you should post to here: http://connect.microsoft.com having said that, tried applying SP1 for VS2003 Are you able to tell us more about the problem you are having ...Show All
SQL Server Access Denied running SSIS package as a Job
I having a wierd problem. Environment: SQL Server 2005 (64-bit) If I create a job with an OS step with the text below "c:\Program Files (x86)\Microsoft SQL Server\90\DTS\Binn"\dtexec /DTS "\MSDB\new Import" /SERVER HAYDN /MAXCONCURRENT " -1 " /CHECKPOINTING OFF /REPORTING V I keep getting the following error: Message Executed as user: XYZ\Administrator. The process could not be created for step 1 of job 0x2161C39C2C34C54AA850602A482E82DF (reason: Access is denied). The step failed. HOWEVER... If I take put the above text within in a batch file (foo.cmd); and chanage the step to execute "c:\foo.cmd" it works fine. What am I missing here It's seems wierd that it works one way, and not the other. ...Show All
Visual Studio VB.NET Project not working Test Machine (Urgent)
Hi, I have a very strange thing happened. I have developed a shared Add-in using VB.NET (Visual Studio 2005), everything was working fine on my machine even on test machine but i don't know what happened yesterday my project stop working. I really dont know what to do, because there was nothing wrong even i have created a complete new project. It might be a dependency problem but i have included everything which was required and a Shared-Addin Update for .NET Framework (KB908002). Please help me in this regard, In short, my VB.NET application stop working suddenly on any client machine or Test machine but surprisingly it is still working on my machine (development machine). Thanks, Asim. If you think it is ...Show All
Software Development for Windows Vista Lack of "go to" functionality in WF
I understand that there is no built-in functionality that allows the workflow to jump from one activity to another one up or down the stream... This seems to be a serious flaw in the whole WF framework... Any comments from the esteemed readers will be appreciated.... HI. a new discuss for "Go To Activity" is here Matt. ...Show All
Visual C# How can I code this?
I am writing a text editor. I would like to have a combobox with all the fonts, and I would like the font to change in the rich text box to the one the user selected. How can I code this Matt Error 10 Operator '&' cannot be applied to operands of type 'System.Drawing.FontStyle' and 'bool' C:\Documents and Settings\HP_Owner\My Documents\mRibbon\Sample\Form1.cs 85 17 Sample Thats what I get. Something seems to be wrong with this line: if (style & FontStyle .Bold == FontStyle .Bold) Matt ...Show All
