Mike__P's Q&A profile
SQL Server Old FSO snippet of code
Hi everyone, Does anyone has ever written VbScript .Net stuff which do anything like that I've got a dtsx package and I'd need covering along folder looking for subfolders and so on objFSO = CreateObject( "Scripting.FileSystemObject" ) objFolder = objFSO.GetFolder( "c:\test" ) colSubfolders = objFolder.Subfolders For Each objsubfolder In colSubfolders ... ... Thanks in advance and best regards, System.IO.FileSystemInfo is what you need http://msdn2.microsoft.com/en-us/library/system.io.filesysteminfo.aspx -Jamie ...Show All
Architecture MVC when to use,MVC framework( continued)
Hi, In my previous posting on the same topic ,pranshu recommended reading atlas.net. This is a new area for me.When i digged into this, i came to know that there are many players in this area like ajax.net,comfortasp.net etc. In case of ajax.net, i came to know that it has licensing problem for commercila use.Comfortasp.net is giving very features but it is still in beta and not claer about whether its release version will be aid or free for commercial use. Can pranshu or somebody else guide me about which is the best one to be looked into. regards Rajiv, as it says at http://atlas.asp.net , “Atlas” is a free framework for building a new generation of richer, mo ...Show All
Visual Studio 2008 (Pre-release) IRC Help Channel!
Hello, I just created a #netFx irc channel so we can talk in live. 1.) Install mIRC (get it here: www.mirc.com ) or any other irc chatting software 2.) Set it up with your nickname etc. 3.) Click here: irc://irc.freenode.net/netFx to auto join the channel or join manualy by selecting any freenode server and joining the #netFx channel. 4.) Have fun and talk about netFx cya there! :) ...Show All
Visual Basic launch windows form directly underneath toolstripcombobox.
Private Sub frm_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load Me.Top = MainForm.ToolStripComboBoxDirectoryHistory. bottom 'however there is no ' bottom' property for the combobox. End Sub do I use a new point(x,y) something or other to achieve this positioning of a form with respect to some existing control on the mainform Thank you, -greg The bottom of the object is equal to the top of the object plus the height of the object. Therefore.... Me.Top = MainForm.ToolStripComboBoxDirectoryHistory.Top + MainForm.ToolStripComboBoxDirectoryHistory.Height Dustin ...Show All
SQL Server cannot convert between unicode and non-unicode
I keep getting the error message below when attempting to import a text file (flat file) to an SQL Server Destination using SSIS. This database has recently been migrated from SQL Server 2000 (where I used a DTS Package that worked fine). I plan on doing further manipulation to the file after importing but have so far tried to keep one step at a time. I have tried using a smaller files and different tables but still get a similar response. I believe that the encoding of the text file is ANSI. If it is relevant the database collation is Latin1_General_CI_AS (the same as it was when 2000). Any help anyone can provide will be greatly appreciated!!! TITLE: Package Validation Error ------------------------------ Package Validation Error ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Microsoft.Xna.Framework.Storage Namespace Classes
Are the StorageContainer and StorageDevice classes not implemented fully or at all The methods for the classes don't seem to be static and there's no constructor defined to create and instance of either class OK, I've added a suggestion here . ...Show All
SQL Server Help with Distinct SQL Statement
I'm trying to return a select statement with distinct values. I have 3 tables: Documents, DocumentAuthors and the linking table DocumentAuthorsRel. Since a document can have multiple authors, the DocumentAuthorsRel table holds the DocumentID and DocumentAuthorID values. I simply want to run a query which displays a list of all the document titles (no document title should be repeated, i only want to show the title once, distinct) held in the documents table, and with the document title, show the last names of a documents author(s). This is the statement Im using which is returning duplicated document titles (as a result of a document having multiple authors - found in the DocumentAuthorsRel table) SELECT Documents.DocumentID ...Show All
.NET Development Impersonation fails when running a web app within the ASP.NET Development Server (VS 2005 SP1)
I am attempting to create a COM+ object, that is located on a remote server. Before creating the COM+ object, the code uses WindowsIdentity.Impersonate to impersonate an account that has rights to create the COM+ object. The code works perfectly, when running under IIS. But fails, with an "Access Denied" HRESULT, when creating the COM+ object, when run by the ASP.NET Development Server. The WindowsIdentity.Impersonate call returns successfully and a call to WindowsIdentity.GetCurrent().Name returns the name of the impersonated account. The server's security event log showed that the my logon account information was being used to create the COM+ object -- instead of the impersonated account information.  ...Show All
Visual Studio 2008 (Pre-release) Question about concurrency and sessions
Hello. I've been trying to understand the interdependencies between: SessionMode, InstanceContextMode, ConcurrencyMode and the used binding. I’ve done a systematic test where I issue two concurrent asynchronous calls over the same channel, and observed the following: With SessionMode=NotAllowed the calls are processed concurrently, independently of the InstanceContextMode (PerCall or PerSession), of the ConcurrencyMode and of the binding (NetTcpBinding throws an exception). This is ok because every call is handled by a different instance. With SessionMode=Required and InstanceContextMode=PerSession and ConcurrencyMode=Single, the calls are processed sequentially. This is ok because the instance is always ...Show All
Visual Studio Team System Web access to work items
Hi Is there a way (from project portal) to add/update/quary work items of a project I am looking for a full web access to team system (using only explorer) Thanks. With TFS V1, there is no built in way to add/remove/update work items using a web client. There are plans of adding this capability in the next release of TFS. Meanwhile, you can utilize other 3rd party tools to accomplish this. ...Show All
Visual FoxPro Combo in Grid with Incremental Searching
Hi all I know we can put a combo into a grid and seen in a previous thread a link to Marcia's example on her web site ( http://www.tightlinecomputers.com/Downloads.htm ). However, whenever I put a combo into a grid, the incremental search (based on the interactive change) never works. I can post my code, but just need to know if I'm flogging a dead horse or not. Thanks Hello Peter. Peter Dorotiak wrote: Never really thought the incremental search for Combo's was any good. In the grid, you have to set the typing delay and it is poor. If didn't work very well. I would like the validation on the combo itself so it only lets you type what is in the combo. Well, if ...Show All
Visual Studio 2008 (Pre-release) Can convert Winforms to WPF
I haven't used WPF yet, so I apologize in advance if these are stupid questions. Is there a way to convert Winforms application to a WPF application Is there any ability to interoperate between Winforms and WPF Thanks! > Is there a way to convert Winforms application to a WPF application No. Those two UI platforms are very different and there is no app which converts a WinForms app to a WPF app. Of course, this will not prevent you from reusing any business/DAL/logging/Ioc/etc libraries you use in WinForms. > Is there any ability to interoperate between Winforms and WPF Yes. There is lots of info about interop on the web. You might want to start here: http://www.infusionblogs.com/blogs/ ...Show All
SQL Server Decision Support System using MOLAP
i need to create a DSS (in C#) by using multi-dimensional database. But i don't know how to start doing it.. can anybody be kindly to guide me do i need to create the multi-dimensional database in SQL Server 2005 first, or i can directly create it in Visual Studio .NET 2005 can anybody tell me what should i do Looks like you need to get yourself familiar with functionality provided by SQL Server Analysis Services 2005. In most cases you you need to spend some time and build a multidimensinonal database using SQL Server Analysis Services. Read some more about Analysis Services on http://www.microsoft.com/sql/technologies/analysis/default.mspx Edward Melomed. -- This posting is provided "AS ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How do I protect my code when distributing it?
Having read the FAQ. I noticed that in order to share your game creations (and lets face it, you can't get recognised without sharing your games), you need to send the other person the entire uncompiled game. This includes sourcecode, graphics, music, sound etc. etc. They then compile the code and download it to their xbox360 account and then only if they too are on the games creation program. My key worry here is that you send them everything you have just worked incredibly hard to create. Presumably they can then send this stuff on to whoever they please and god forbid, even sell it on! It strikes me that there isn't much incentive to distribute things this way. How is Microsoft going to prevent the above scenario Is there going to be a ...Show All
Visual Basic Opening an existing Word Document in Read/Write mode Using VB.NET
I am using VB.NET to open up an exisitng Word document which works fine, the problem that I have is that it is defaulting to opening the document up in read only mode. How can I change that so that the word document opens in read-write mode so that Word can subsequently be used to update and save the document Thanks Bill Partridge Is the file on your disk read only, or is it opened by another user or another instance of Word already -- SvenC ...Show All
