OmegaMan's Q&A profile
SQL Server Team foundation server with sql 2000?
will team foundation server work with sql 2000 as the back end instead of sql 2005 If not does any one know of any future plans to make team foundation work with sql 2000 ...Show All
.NET Development GetResponse method from System.Net.WebRequest
Hi I've written this code for retrieving some web pages using the WebRequest and WebResponse methods: private void webDownload() { foreach (WebPage w in webList) { // Initialize the WebRequest. WebRequest myRequest = WebRequest.Create(w.Url); try { //get the response WebResponse myResponse = myRequest.GetResponse(); //the code for the decodeData method is taken from [1] String htmlContent = decodeData(myResponse); myResponse.Close(); //here I'll do some tiny operations with the html.. // .... } catch (WebException e) { if (e.Message.Contains("(4 ...Show All
Visual C# reference type
Hi all, I was reading the following: " If you specify that a reference type should be passed by value, a copy of the reference is made and the copy is passed". How do you pass a refernece as value in C# I thought, for example, string is a reference class, all I need to do is just call Foo(str) and it is passed by reference and there is no need for ref. Am I missing something. Thanks You pass a reference type by value if you don't use the ref keyword. But that doesn't necessarily mean you can't change the value of what the reference type is referencing, it just means you can't change the value of the reference itself (you can change the data it points to, but not which data ...Show All
Software Development for Windows Vista Vista Shell and Managed Code
are there any good examples of extending the vista shell using managed code Does WPF support this If someone could point me in the right direction I'd appreciate it. I can't seem to find anything on MSDN. What I would like to do is write a managed code preview handler. Thanks! In-process managed shell extensions are strongly disrecommended. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=125283 ...Show All
SQL Server Report needs to go to word
Is there any recommended way to format and export a report so that it can be modified in Word if purchasing SoftArtisans OfficeWriter is not an option Try Aspose.Words for Reporting Services, http://www.aspose.com/Products/Aspose.WordsRS/ ...Show All
Visual Basic Fraction to decimal
Hi! I have a list with prices of US Treasury bonds. They are quoted in a particular way that I would like to convert to decimal form. They are quoted like this eg: 99-02. Now this means that the price is 99 and some decimal. The two first numbers are the number of 32:s. Thus in this case the price is 99 and 2/32. However if there are three decimals eg 99-021 the last digit refers to the number of 124:s. Thus the price is 99 and 2/32 and 1/256. Sometimes There are only two decimals followed by a plus or minus sign eg 99-30+ or 99-10-. The plus/minus indicates that you should add/subtract 1/64. Keep in mind that the non decimal numbers may be one, two or three digits. Thus, it could be eg. 6-02 87-22- or 105-21+. Is there any wa ...Show All
SQL Server LEFT OUTER JOIN
Hi All, Greetings! I have a problem converting *= to LEFT OUTER JOIN. Here's my code that will retrieve a single record when executed: SELECT * FROM ar_t_memo_hdr A, ar_r_trbal_cust_tmp B, common..fs_currency_master E, ar_reval_history rev WHERE A.company_no = 'RAM' AND A.company_locn = 'BANG' AND E.fs_company_code = 'RAM' AND E.fs_locn_code = 'BANG' AND A.currency = E.fs_curr_code AND A.memo_type = 'DM' AND A.cust_no = B.cust_no AND A.so_locn = B.so_locn AND B.host_id = 100 AND A.memo_dt <= '2006-09-25 00:00:00.000' AND A.unapplied_amt >= 0 AND ( (CONVERT(varchar,A.reversal_dt,101) > '2006-09-25 00:00:00.0 ...Show All
Visual Studio Team System Error in unshelve - 'Cannot insert null @MissingParents.ItemId'
I just tried to unshelve a weeks work and am now presented with : A database error occurred (SQL error 515) ---> Cannot insert the value NULL into column 'ItemId', table '@missingParents'; column does not allow nulls. INSERT fails. I will try to work around it unshelving one file at a time - but thought I would report as a bug. Ask for any more information that you need. Ended up being a directory that was shelved with a pending undelete, and a file by the same name in that directory with an edit. Attempting to unshelve the file caused the error to occur. Hi Buck, I have contacted Customer Support, and they said that if i can quote the KB article number, the ...Show All
Visual Studio 2008 (Pre-release) Problem in Xaml Design Part
Hi, When I try to open design part of. XAML , facing the problems listing it below; It’s displaying a Black Screen . It display the Error Message Cannot locate resource 'ms/internal/assemblyresources.baml' . Version Mismatch (0.86 to 0.96). I tried with all the solutions provided by the. Xaml Forum but unable to resolve the issue. Please send me valuable solutions to resolve the issue. It sounds like the application is built against a different version of WPF than the one installed on your machine. Can you post the whole exception message and stack trace If this is an WPF XBAP then run "mage.exe -cc" from the SDK command prompt window to clear the application cache ...Show All
Visual Basic Report Viewer - simple question
I have a report viewer that is pointing to a Server Report that resides on a different machine. The VB Windows program crunches data and returns that data to the SQL server. Upon completion of the data processing, I would like the report to display in the viewer, however it always just shows blank. But when I go to the URL (through internet explorer), the report is there and shows fine. What code would I use to make the report display in the report viewer control I have tried reportviewer.refresh, reportviewer.update, etc. Thanks for the information Brad ...Show All
SQL Server SQLAGENT CAN't START
SQLAGENT CAN't START this log: SQLServerAgent could not be started (reason: SQLServerAgent must be able to connect to SQLServer as SysAdmin, but '(Unknown)' is not a member of the SysAdmin role). In the event viewer we have the following error: Event Type: Error Event Source: SQLSERVERAGENT Event Category: Service Control Event ID: 103 Date: 3/1/2007 Time: 10:16:30 AM User: N/A Computer: MyServer Description: SQLServerAgent could not be started (reason: SQLServerAgent must be able to connect to SQLServer as SysAdmin, but '(Unknown)' is not a member of the SysAdmin role). For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp . ...Show All
Visual C# find if a collection contains another collection
Hello, I have two collections of string and I want to know if the first one contains the second (which menas all the strings in the second are also in the first) is there a build in function which does it if not what is the best way to do it (I'm sure sorting is involved) Thanks. I think you would have to go through each element of each array and compare the values from one array with the current position in the other array. something like.... foreach (string currentItem in firstArray) { foreach(string theSecondArrayCurrentItem in theSecondArray) { if (currentItem.Equals(theSecondArrayCurrentItem)) { //handle it, the item exists in both collections } } } This will be very i ...Show All
Visual Studio 'CrystalDecisions.Enterprise.Framework' could not be found....
The referenced component 'CrystalDecisions.Enterprise.Framework' could not be found. I'm working in the VB.net 2005 & I got this error in the refernces..... BN25, Did you solve your error: The referenced component 'CrystalDecisions.Enterprise.Framework' could not be found... The referenced component 'CrystalDecisions.Enterprise.InfoStore' could not be found... I have the same thing, Craig Kelly-Soens http://www.SalonSoftwareSystem.com EDIT: This solved it for me in our .net 2.0 converted from .net 1.1 salon software! // crReportDocument.Load(tbReportIn.Text, CrystalDecisions.Shared.OpenReportMethod.OpenReportByDefault); crReportDocument.Load(tbReportIn.Te ...Show All
Visual Studio Team System Team Foundation Build and DB project.
We have a DB project that we have created a team foundation build type for and which does run fine, at least no errors in log file, but it does not create the output sql scipt file. If I build the db project from the build menu within the VS IDE it will create the .sql script file in the specified directory ok or if I use msbuild it also works fine. I have seen some documentation about modifying the tfsbuild.proj file along with the dbproj file for actually deploying the DB but at this point I only want to create the SQL script file using the team foundation build. Is this possible to do I am currently using latest TFS along with VS and SP1 applied to everything including the build machine. It soun ...Show All
Visual Studio Build Fails from Jan 01 2007. Versioning issue!! :-(
All our nightly builds have been faliling as of Jan 01 2007 we get the following error Error emitting 'System.Reflection.AssemblyVersionAttribute' attribute -- 'The version specified '8.1.70102.1' is invalid It is due to the versioning issue build.major.minor.revision. The minor is of form yyMMdd The revision is an unsigned int & so the max value is 65534!!!!! & so it fails from the 1st of the 2007 as 70101 > 65534 :-( :-( Has there been a solution found for this I saw a thread that says this issue was identified in 2005 dec..:( :(.. Somone pls do let me know how i can fix this Thanks in advance Ramya Hi Rayma, this one is discussed in http://forums.microsoft.com ...Show All
