javathehut's Q&A profile
SQL Server System Variables in a SSIS package
hello all, I am having a hard time referenceing system variables. Can some one give me a quick lesson I am trying to save system variables suck as StartTime finishtime and processes ran I want to store these items into a table for use later. FATSO wrote: This is what I have been trying to do. Declare @MyProcess as char SET @MyProcess = 'Zrocess 1' INSERT INTO dbo.ProcStat (Starttime, Process) VALUES (@[System::StartTime], @MyProcess ) Should be simple, but it is not working. Your best bet would be to create this as an expression on the Execute SQL Task's SQLStatementSource property. The expression will look something like this: "Declare @MyProcess as char SET @MyProcess = 'Zrocess 1' INSE ...Show All
Visual Studio Adding contents of textboxes on RDLC report
I have an rdlc report that has two textboxes. The values of these textboxes are items received on time, and items late. This is caluclated using decision function and counting the rows that match. I have a third text box that I want to add the contents of textbox 1 & the second textbox. Currently I am recalulating using decision functions which seems a bit excessive when I alreay have the values sitting in other textboxes. Thing is I cant find the way to call the textboxes on the rdlc report. Using =textbox1.value + textbox2.value does not work. Can anyone tell me how to use the values in these fields Try the following expression (if all three textboxes are in the same scope) for your textbox3: =ReportItems!textbox1.Value + ...Show All
Software Development for Windows Vista Disconnect pin cause video card driver Stop
Hi I use Direchshowlib-2005 with C# and 2 head room video card. for the first video card i use VMR and for the secound one i just use simple Video Renderer. I dont have any problem with VMR at all but when I want to close the program, blue screen appear and said: graphic card driver stop. i release all of the direct show object and put the owner of video window to IntPtr.Zero. But when ever that i want to disconnect the Video Renderer Pin my application crashed and windows also restart. i be appreciated if someone help me As a general rule, it should be impossible for applications to cause blue screens. This probably indicates a driver problem. ...Show All
Visual Studio Visual Studio DVD Label
Hello, I, know its an untypicaly question for this forum. I'm studying Science and we can download microsoft products for free at e-academy.com My question is, if someone could scan the labels for Visual Studio 2005 Pro, Sql Server 2005 Standard and SourceSafe 2005 perhaps someone has the time to do that :) greets from Germany! Dirk ...Show All
Internet Explorer Development IE7 problem with frame and base target pages
I have a central page with frame ( 2 cols). In the left col, i have a tree menu. When i click at the select item one page will be displayed in the right col (base target frprincipal) . But it is not happen. The page was displayed at left col. Have any problem, with frames and base target in IE7 <frameset cols="25%,*" > <frame src="nostreeeng.htm" NORESIZE> <frame name="frprincipal" SRC="sld001.htm"> </frameset> Hello Dave Massy I have a case #1030496857 with IE7. Can you give me some insite on why my code doesn't work. See . . . http://f ...Show All
Windows Search Technologies Vista search functioning, but unable to open files from results pane
Hi - my machine is running Vista Business, built in indexing and search work perfectly but files cannot be opened from the search results. Is there a fix for this that anyone can advise me on Thanks in advance for your advice. Hi Eric - thanks for the response - yes, everything in respect of searching works exactly as expected except interaction with the files - I just tried a few other options like move / copy / fwd etc, all not happening. Preview pane works. ...Show All
Visual C++ Can I debug???
Hi, I worte an MFC program and compiled it in "Debug", but I compiled it in "Release" configuration. Then, I modified my code for additional functionality, but I can't debug the program anymore with "Debug" configuration. It gave me error like "Debug Assertion Failed" when I ran program in "Debug" mode. I do want to debug my program for its correctness. Do you have any idea how I can debug Thanks, vcboy It is quite difficult to see why it is giving a debug assertion by looking at the above code. To have more clarity, start your program in debug mode (Press F5) and when it shows the assertion dialog, press retry. It will go to the lin ...Show All
SQL Server PAE, AWE and pagefile
Can you please consider the following scenario: Windows Server 2003 Enterprise Edition (32-bit) SQL 2000 Enterprise Edition Server with 8GB memory 1. If we enable /3GB and /PAE, the server can see and use 8GB memory, OS has 1GB, applications can use the remaining 7GB, can install 2 instances of SQL with a max server mem set to 3GB each, SQL should be able to allocate memory from the upper 4GB RAM. (True / False) 2. We only need to enable AWE if any single instance need to cache more than 4GB of data so we could for example configure one instance with AWE and set the max mem to 5GB and set the second instance to use 2GB max . (True / False). 3. 32-bit windows server OS can support a maximum of 4GB virtual memo ...Show All
Visual C# Using assignment in an if/while/ condition?
Hey all, I am currently working on a rather large product and am nearing completion, and I was currently working on some of the Excel/Word conversion and IO routines and I thought to do something like this... StreamReader sr = new ...blah blah blah while ((tempString = sr.Readline()) != null) { < parsing code here...> } .. Is there anything absolutely wrong with that type of while or if statement Is it considered bad practice Will that sort of thing even work right ;p You can nest however much *** you feel like reading. As long of course as all the the return values make sense. I miss being able to use multiple assignments like x=y=z=t like ...Show All
Visual C# Missing a Cast ??
I have a function something like this... private IList < CPhone > Numbers { get { IList < CPhone > numbers = new List < CPhone >(); } } When I try to call it....something like this contact.Numbers = Numbers; I get an error message saying Error 2 Cannot implicitly convert type 'System.Collections.Generic.IList<CPhone>' to 'System.Collections.IList'. An explicit conversion exists (are you missing a cast ) There is a return statement, I think I just deleted it with unncecessary code for the forums its there something like return numbers; ...Show All
Visual C# Applying downloaded update?
How do I apply an update for my app Well you can't write to your own application whilst its in use so there are a couple of ways of going about doing this. Create a seperate application to download an update. The update service could be a customly built webservice which this application calls, giving it the current application versionings. The webservice will then compare the versioning given to it (current version) to the updated version on the server and send that file down to the client, which will take it and write it to disk. This is one way, and common, of doing so. I've done it myself and proven very successful, thankfully. You could also use clickOnce I believe to update your application: http://msdn2.microsoft.co ...Show All
SQL Server Problem with PreComputed Partitions and numeric partition key (HOST_NAME())
BOL says the following (headed with important): "The HOST_NAME () function returns an nchar value, so you must use CONVERT if the column in the filter clause is of a numeric data type, as it is in the example above. For performance reasons, we recommended that you not apply functions to column names in parameterized row filter clauses, such as CONVERT(nchar,EmployeeID) = HOST_NAME () . Instead, we recommend using the approach shown in the example: EmployeeID = CONVERT(int, HOST_NAME ()) . This clause can be used for the @subset_filterclause parameter of sp_addmergearticle (Transact-SQL), but it typically cannot be used in the New Publication Wizard (the wizard executes the filter clause to validate it, which fails because the compu ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Why I can't see any game component in VC# express 2005 toolbox?
After I saw the demo of game component video from XNA team blog, I want to try.But I can not find any game component in toolbox. What is the problem The following URL is from XNA TEAM Blog about Game componet demo at Gamefest. http://xnateam.members.winisp.net/Videos/gamecomponentsdemo.wmv You can see in the video there are some game components in the toolbox, the speaker just "drag and drop" the component and RUN.How can I do that And I can not find any game componet in the Toolbox after creating a Starter Kit project. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Rants on XNA 1.0
This is my first reaction when I installed and tried the 1.0 of XNA. To summarize my feeling: it's still 95% for XBox and no nearer to replace the old MDX 1.0. So I decided not to migrate from MDX to XNA though I want to do that very much. I feel like MDX 2 more; amen to MDX 2. The hardest issue for me is the content pipeline, which is very necessary, but the workflow is fixed and it assumes the contents are only built before the program runs. The helper functions wrapping D3DX can only be used with types in the content pipeline. I have to utilize the full content pipeline just for generating something dynamically, of course with significant performance cost. Or I have to write those D3DX utilities my self. Currently I don't have a good id ...Show All
Visual Studio Team System TFS - Multiple Projects
Hello I hope you can help me with this... I would like to create one build-type with more solutions that should be built. The thing is that I have different project-types (C/C++, C#) and I have to copy certain files (eg. *.dll) after 1 solution was built correctly, and those files will be used by the next solution. 1. How can I (and is it possible to) import another target at runtime if it fullfills a certain condition 2. Can I also change the <PlatformToBuild> (like Any CPU/Win32/...) at runtime before the next solution starts to build Thank you, MrMoon Hi MrMoon You could create multiple build types and write a script that builds them in the sequence you want. You can copy dlls in between the ...Show All
