Judah's Q&A profile
SQL Server Variables set via Script task don't change
I've got a container with two variables: xxxNextFile and xxxLastFile , both with EvaluateAsExpression = False. My container has a dataflow followed by a script task followed by another dataflow. The first dataflow starts with ae existing raw file source from variable xxxLastFile and wants to write output to a new raw file from variable xxxNextFile . The script component then sets the value for xxxLastFile equal to the value of xxxNextFile and generates a new value for xxxNextFile . The final dataflow component does pretty much the same as the first one, i.e. it uses xxxLastFile for the source and xxxNextFile for the destination. I've got two package scoped variables pkgFolderTemp and pkgCurrentTime that I use to come up with a unique file ...Show All
Visual C++ Reading files from a folder.
for a project to get me more confortable with c++ forms. i need to read the filenames from a folder. i have tryed: [code] DirectoryInfo^ di = gcnew DirectoryInfo( "." ); array <DirectoryInfo^>^diArr = di->GetFiles( "*.jpg" ); Collections::IEnumerator^ myEnum = diArr->GetEnumerator(); while ( myEnum->MoveNext() ) { DirectoryInfo^ dri = safe_cast <DirectoryInfo^>(myEnum->Current); this ->comboBox1->Items->Add(dri->Name); } [/code] this is the only error i get: [code] error C2440: 'initializing' : cannot convert from 'cli::array<Type,dimension> ^' to 'cli::array<Type> ^' [/code] would this work, just so you know, i ...Show All
.NET Development DynamicILInfo.GetTokenFor
Just want to make sure I understand for what things I need to get tokens and insert them into the byte code stream I am generating. I believe it is anything that is referenced in the byte code stream that would have a metadata token associated with it. Working from the overloads for the GetTokenFor method documented in msdn, that would then be any: byte array, other dynamic method being invoked, field being accessed, assembly-based method being invoked, type, string method on a generic type Before submitting a custom-generated byte code sequence I would want to resolve the metadata tokens for any of these items. And so if I keep my generated byte code along with a record of those offsets that need to be resolved and ...Show All
Visual Studio 2008 (Pre-release) Equivalent tool to Spy++? Debugging .net System assemblies.
I ran into a great little tool yesterday: .net Reflector http://www.aisto.com/roeder/dotnet/ -- a C# decompiler for .net system assemblies, which, I think may become a great friend. But I still can't debug through system code. Has anyone seen tools for debugging through decompiled system assemblies in the Visual Studio debugger That would be a great thing. Either that or open source for WPF. Somebody needs to tell somebody at Microsoft in no uncertain terms that open source for WPF would *definitely* increase programmer productivity on WPF. A lot. *nudge* *nudge* *nudge*. And does anyone know of a tool that's equivalent to Spy++ for WPF Some insight into behaviour of routed events would make it much easier to figure out w ...Show All
Visual Studio Express Editions Directories?
Hi all I feel really stupid posting this question, because I know I saw it somewhere before, just couldn't remember where! Here's my situation: ------------------- I already have: - a listbox named " List1 " - a " Form_Load " sub which calls the " loadorrefreshdata " sub I need some code to do the following: - Get all the sub-folders in a specified directory (" testdir ") - Get the names of these subfolders (not the Directory.GetDirectories, as this returns the full path eg. "C:\Program Files\demofolder1\demosubfolder", where I only want "demosubfolder" as name. - Populate List1 with these names What would be the best way to do this Thanks in advance! Johannes g ...Show All
.NET Development Preserve timestamp
Hello everyone! Currently I'm working in an application using .NET Framework 1.1. I have to download several files from a server to the client machine, but for security reasons, we would preserve the TimeStamp that the file originally had in the server machine, and have to do this programatically. Do you have some idea about how to achieve this Sorry if this seems a newbie question, but I haven't benn able to find some API or documentation explaining something about this. Thanks in advance! Wow! It has been a long time since I posted to this forum... and was seing that I never came back to tell you what happened... and in fact, I used the LastModified header to set the file date... actually the applic ...Show All
.NET Development Soap Extension not firing
I have a Class Library (dll) that calls a web service and includes a form where a I am trying to implement a progress bar using the code in "Adding a Progress Bar to Your Web Service Client Application." The web service executes fine, but I can't get the SoapExtension to fire. The code for the soap extension is similar to the sample code: ' ' Progress bar - C# to VB.NET hack ' Class ProgressClient Inherits webapp.MyWebServiceWSE Public Progress As ProgressBar Public Transfersize As Integer Dim MyForm As ServiceForm Public ProgressDelegate As ServiceForm.UpdateDelegate = AddressOf MyForm.ProgressBarUpdate End Class ' ' SOAP Extension - C# to VB.NET hack ' Pub ...Show All
Visual Studio Team System Saving an object rebuilds entire database?
I'm using CTP5 and have imported one fairly large DB with around 500 SPs. Every time I save an object (Stored Proc, etc.), it appears that the entire database is rebuilt which temporarily freezes the UI (I presume because it is not done on a separate thread). It would be great if it only rebuilt the current object and didn't rebuild the entire project until you ran a build/rebuild. Please let me know if I'm missing something. As Liangxiao indicated we are not rebuilding the complete project, we are recalculating the dependency graph by logiclaly dropping and recreating child objects, to make sure that the internal dependency tree is correct, therefore see some weirdness in the Schema View UI in CTP5, t ...Show All
.NET Development install windows service application
hi how can install windows service in the computer that only have .net framwork 2 I want to know is there any way to start Windows Service at the time of installation so i dont have to start it manuaaly after installing it. Thanks, sagarsinh Rathod ...Show All
SQL Server drilldown group expanded by default
Hello!! I have a matrix in a report with groups and subgroups like this : *group1 *subgroup1.1 item1 item2 etc. I would like to show the group expanded by default so when I view the report I see: *group1 subgroup1.1 *group2 subgroup 2.1 Right now I've played with InitialToggleState and visibility->Hidden properties but I don’t know how to do it....help me please Thanks I published an article showing the steps for this (at least an example similar enough to be useful, hopefully): http://www.databasejournal.com/features/mssql/article.php/3527321 This was for MSRS2000, but the logic should be good in SSRS2005. Good Luck! Bill ...Show All
SQL Server how can i delete my matrix's header ?
I want to delete my matrix's header, set header not displays . I set the header 's content with none and can't set the height with 0cm. I don't know what to do, I give up at this point and need help from someone here . Right click on the header row of your table and go to Properties. Then, under the 'Visibility' property, change the 'Hidden' setting to True. Hope this helps. Jarret ...Show All
.NET Development FileStream running slow in Window's forms but not in a windows service
Hi, I'm runnning the same piece of FileStream code (see below) in a simple windows form and in a service but the code in the windows form is running 50 odd seconds slower (7 seconds in the service, 59 seconds in the form) . The file that i'm running the test on has a size of '1.56 MB (1,641,874 bytes)'. using (FileStream s = new FileStream(@"c:\ss.drs", FileMode.Open, FileAccess.Read)) { DateTime start = DateTime.Now; while (s.Position != s.Length) { s.ReadByte(); } TimeSpan ts = DateTime.Now - start; Debug.WriteLine(ts.ToString()); } Any ideas anyone Thanks in advance JK Like Lucian suggested, it could be cache. The ...Show All
Visual Studio Express Editions Adding images to a project?
I want to sort of store my images I use in my program with my project, so that other people can see them is there a way to do this I have an image stored under resources but when i go to call it ie mapImage=My.Resources.Washington it says it isn't a member of Resources. Anyone know why this is the case, I have set it as an 'Embedded Resource'. I fixed that error I think but it still refuses to recognize the image even though its in the resources list, it says "image is not a member of resources. ...Show All
.NET Development Binding My Application to SQL Server 2000 ??
Hi Firstly many more thanks for any collaboration and help I have the following situation :- I work on a very small text exchange application among clients connected to a SQL Server 2000 database through Windows Forms App. the problem is generally : how I can handle the lost of the connection e.g. : how I can update a field in the database and say hey xxxxx is now offline WHILE I do not have any actual live connections to the Data Source ( think of this lost during to any network problems). But I want to know another important aspect !! in the SqlConnection object we have an StateChange event , O.K I add handler on that event and Stopped the SQL Server from the Service Manager !! the event does not respond If ...Show All
Visual Basic A Squigley
Why is there a squigley under the Ex It's only under the first the message reads Unused Local Variable:'ex' Catch ex As Exception 'handles any errors MessageBox.Show(ex.Message, "PGS", _ MessageBoxButtons.OK, MessageBoxIcon.Information) I tried your snippet and I still didn't get the squigglies on the 2 locations that you mention. I did made some changes to get the code to compile but I don't think that it would make a difference. Anyway, the squigglies that you see are compiler warnings. Their main purpose is to inform you of potentially problematic or inefficient situations. Because they are only warnings your code still compiles and executes just fine. If you f ...Show All
