Secor_BobF's Q&A profile
.NET Development highlighter?
Hi. I have a string. I have extracted some things from it, really using regular expression to do a match. it works great I want to know now, since this text will be displayed after words (the entire string) is it possible to highlight the matched words in the string (highlight = color/bold) I will be writing this in either RTF or html I just want to know how I can detect that through out the string if the matched words exist then for each match word, find the word in the string and when found highlight it. possible Thanks! There is no builtin mechanism to do what you want but it is pr ...Show All
Architecture Design Patterns
What is the usage of common GoF design patterns in daily coding I ask this because as a developer I'm constantly trying to improve both my code and my overall design, to create software that's easy to maintain and easy to extend--- hopefully easy to change without effecting the 'client' aspect through the use of interfaces etc--- Is there a more straight forward application of certain design patterns For example, does anyone sit down and actually implement a bridge pattern in their code--- you read about it a lot, but only in academic articles, you equally read of people who find them absolutely useless most of the time... I don't think I ...Show All
.NET Development BIG problem with huge storage procedure execute on SQL Server 2000 SP4
Hi! I have a big problem with one of my storage procedures. First of all some information about the server: Dual XEON 4 gig RAM Windows 2003 SQL Server 2000 with SP4 On the database work at the same time 30 peoples…. But not all execute storage procedure. The storage procedure with that I have problems is executed only one time a day. The storage procedure is so huge that the SQL Server needs 11 minutes to execute it. The storage procedure do some work with data on the DB and return no values. The problem: When I execute the storage procedure directly on the SQL server ( with query analyzer ): execute OC_Auto the storage procedure wor ...Show All
Visual Studio 2008 (Pre-release) Is the pseudo SQL syntax necessary?
Current LINQ syntax is like this: var upperLowerWords = from w in words select new {Upper = w.ToUpper(), Lower = w.ToLower()} where w.StartsWith("a"); But I think that this is unnecessary breeding of C# with SQL. I believe that combination of methods with lambda calculus would be better: string[] words = { "aPPLE", "BlUeBeRrY", "cHeRry" }; var selectedWords = words.Select( w => {return w.StartsWith("a")} ).Collect( w2 => {return new { Upper = ...Show All
SQL Server How to Call a c#.net class from stored procedure
Hi, I would like to know how can I call a c#.net class from a stored procedure. I have a class file which will generate a pdf file from sql reporting services and mail that file. Now I want to call this class from a stored procedure. Is it possible, if so please send me the sample code. Thanks in advance Regards Babu Which version of SQL Server are you using HTH, Jens Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
Visual Studio 2008 (Pre-release) "yield enumerate"...
(Slightly off-topic, but it at least deals with enumerations.) Lately, I've found myself using the following pattern: public IEnumerable<T> Foo(IEnumerable<T> values, IEnumerable<T> moreValues) { foreach (T t in values) { yield return t; } foreach (T t in moreValues) { yield return t; } // more yielding } For example, if I want to maintain the sanctity of values, but catenate another set of values (checksums, e ...Show All
Visual Studio Team System Multiple vsmdi files
Hi, We are getting multiple vsmdi files.Everytime someone runs a unit test the solution is automatically checked out and a new vsmdi file is created using the naming pattern MySolutionName1.vsmdi, MySolutionName2.vsmdi, etc. I've compared the files and they are the same. They live in the solution root and always have. The workaround that we have is to undo checkout on the files in question and then it works fine unti one next restarts the IDE. Any ideas anyone else getting odd behaviour with vsmdi files I've C&P'd the XML contents below: < xml version="1.0" encoding="utf-8" > - < T ...Show All
SQL Server SQL 2005 Enterprise June CTP Installation Error
Tried to install several times (on Win2003 Ent. SP1) but I always get the following error: Failure adding user NT AUTHORITY\NETWORK SERVICE to local group SQLServer2005MSSQLServerADHelperUser (1388) The user varies (sometimes NT AUTHORITY\SYSTEM) and so does the local group (sometimes SQLServer2005SQLBrowserUser). Any tips Regards Roger I have tried to install SQLDEV ,But got the same error mesage. ...Show All
Visual Basic New to VB6
I have just been given an unused copy of VB6 Stuido 6.0 Enterprise to use at work. I am to try an learn how to use this software. So far I have been able to develop a few forms and things. Now I want to see if I can create a menu and see if I can run my forms from here. Can anybody explain or show me where I can get some information on the Menu Editor. When I try to load and show a form - ControlView I use load frmcontrolview frmcontrolview.show from the book that I borrow is said to use show, It doesn't let me use show. Can anybody recommend a CHEAP book or some training videos Thats correct. Visual Ba ...Show All
Visual Studio 2008 (Pre-release) "late binding" communication and more questions
I have several more basic questions concerning indigo: 1. Does the WCF provide a way to communicate to a slick way to communicate to a web service which is discovered during runtime. As an example: somebody provides a WSDL and an operation he wants to call from this service as well as a XML message he sends to the service and a XSL that he wants to apply to the response message. Currently I do something like that with a manual HttpWebRequest. Is something like that possible with WCF in a better way or is the contract/a known interface a requirement for WCF communications 2. Is WCF supported on the Compact Framework or will it be 3. ...Show All
Visual C# Getting yesterdays date?
Hi, Is it possible to get yesterdays date I have taken a look at the Date Time options but I see nothing that will help me. Any advice would be great. ...Show All
Visual Studio No items in the toolbox
I have created a brand new Domain Specific Language Designer project based on the class diagram template but when I debug the solution and open the sample file there are no items in the toolbox. Can anyone help This even happens if I try to run one of the samples from the Microsoft DSL Tools Samples - November 2005 Russ and I looked at this offline, and the problem turns out to be that his My Documents was mapped to a network drive (and he was creating the DSL project in the default VS directory, which is "My Documents\Visual Studio 2005"). A network drive is by default an "untrusted l ...Show All
Windows Forms how can i trap the forms on closing event from a menu item
I am out of hair! New to .net so be kind... I have been trying to get my "exit" menu item to trap the on closing event that the close X button does. When i click the X i get the on closing event and i can do what i need to there but when i simply code "application.exit" the on closing event doesn't&n ...Show All
Visual C# Compiler warning CS0728
I'm getting a compiler warning with the following code: foo = someOperation(); lock ( foo ) { ... internalmethod( ref foo ); ... } The warning is: file.cs (3,1): warning CS0728: Possibly incorrect assignment to local 'foo' which is the argument to a using or lock statement. The Dispose call or unlocking will happen on the original value of the local. Has the compiler not recognised that foo is a ref parameter Is this a bug/problem or I should I be doing something different Thanks in advance! I'm compiling using VS.NET 2005 Beta 2. VS.NET 2003 did not generate this warn ...Show All
SQL Server Problem using dates in XMLtoFLFF Transformation
I am having a bit of trouble transforming a XML (xs:date) type to the DBDATE in my FLFF. I believe the problem is because the SSIS DF (Metadeta) converts xs:date to DT_DBTIMESTAMP which becomes 01/01/2005 00:00:00 -- appending the time. So when I try to transform in my fixed length flat file, it throws a truncation error when the length is set to 10. (which is the length of date) Is it possible to (A) use some other xs format that changes DF Metadata to only use date and not DT_DBTIMESTAMP, or (B) is there a field type in the destination FLFF Connection that will allow a length of 10 without throwing a truncation err ...Show All
