goldstei's Q&A profile
SQL Server Creating referential integrity constraints
Two ways to do this... Creating the constraints when creating the data model OR using SQL to use the 'reference' constraint. Does 2005 provide any other automated method of creating the Primary Key - to Foreign key constraints without writing the SQL to do this Thx Thank you for your answer, I didn't know that the GUI would do the things that you described. That was what I was referring to. I guess for me, the automated method would be that when you create a primary key, the create the foreign key in the 'create table' GUI, the foreign key constraint would be automatically created if the column names are the same. Does this make sense Maybe coffee is the answer. As you mentioned above, there a ...Show All
Visual Studio 2008 (Pre-release) mesh limitations
Hi, just read a really interesting post here . It got me thinking about the limitations around net.P2P. That discussion was centred around a high number of messages in a network with few peers in the mesh. What kind of limitations are there in the number of nodes in a mesh Also, is there much difference in scale when using PNRP v a custom resolver regards, steven http://stevenR2.com Ravi I have a chat client implemented along the lines of the MSDN sample with a Custom PeerResolver. Can you point me to some documentation on how I can change this so that the clients may use PNRP - rather than use the PeerResolver. What change in behaviour can I expect if I transition from PeerResolver to PNRP I w ...Show All
.NET Development Adding new records via OleDbConnection
I'm writing a console .net app (vs2005). I've an open OleDbConnection, using it, how do I add new records to a specific table Is it possible to add records with code rather than using SQL If so, how Thanks for your reply. Before adding new records, is it mandatory to call the "Fill" function from OleDbDataAdapter first If so, why My example is shown below, where "da_p" is an instance of "OleDbDataAdapter". ////////////////////////////////////////////////////////////////// DataSet^ ds_p = gcnew DataSet(); da_p->Fill(ds_p, "mytable"); DataTable^ dt_p = ds_p->Tables["mytable"]; DataRow^ row_p = dt_p->NewRow(); row_p[ "memo_test" ] = "xxx" ; dt_p->Rows->Add(row ...Show All
Visual Studio 2008 (Pre-release) Can a MessageContract be used with some other parameter in an Operation Contract?
I tried using a string type with message contract, I am getting the following error. MessageContract parameters must be either a single input parameter or a return value. Is there any other way to use other types with MessageContract Thanks Sangeetha S So you're using a msgcontract attributed object as well as a string parameter for the operation Something like this: [OperationContract(Name = "ThisIsASimpleCallUsingMessageContract", Action = "urn:MessageContractTest/SimpleMessageContractCall", ReplyAction = "urn:MessageContractTest/SimpleMessageContractCallResponse")] ResponseMsg1 SimpleMessageContractCall(RequestMsg1 input, string blah); If yo ...Show All
Visual Studio Team System Already exisiting object
If you drop an object from your project, e.g. a table, then import it as from a script, you won’t be able to build the database, because the project is mourning that the "Obejct already exists in the database" not matter what settings your use in the Build pane in the properties dialog. -Jens. --- http://www.slqserver2005.de --- Unfortunately it does not. -Jens --- http://www.sqlserver2005.de --- ...Show All
.NET Development I am facing "Item has already been added"
I have an appliction created in .Net 2003 using SortedList. And it is working fine with .Net framework 1.1 Now we are analysing the impact of migrating the application to 2005. There we are facing this problem SortedList mySL = new SortedList (); mySL.Add( "First" , "Hello" ); mySL.Add( "Second". , "World" ); mySL.Add( "First" , "!" ); Error message: Item has already been added. Key in dictionary: 'First' Key being added: 'First' IS it only because of Duplicate entry Please any one kindly clarify this. Thanks Moi Hi, Yes you are right You cannot have duplicate keys. You can alternatively use Item property to add new elements ...Show All
.NET Development Requirement on XSLT- Checkboxlist, XML and XSLT.
Hi, This is related to the Checkboxlist, XML and XSLT. I have a requirement where the controls are dynamically generated from an XML. This is my sample XML file: < Question Name = " Check " TypeMode = " Check " Text = " What’s ur tech " Value = "" Type = " DropDownList " > < answer ></ answer > < answer > Yes </ answer > < answer > No </ answer > </ Question > < Question Name = " Check " TypeMode = " Check " Text = " Please select one or more Technologies " Value = "" Type = " CheckBoxList " > < answer ...Show All
Game Technologies: DirectX, XNA, XACT, etc. A Managed DirectX9 UserControl on a web application
Hello, i've been searching the internet for a while, but cannot find proof that it is possible to user Managed DirectX functionality (embedded in a UserControl) in a C# Web applet. Has anyone come across some code or references that proof that it either can or cannot be done I guess that given the proper permissions it should even from whitin an embedded UserControl be possible to render 3D images, but before i spend hours and hours trying the impossible, i was wondering if someone else has already tried this... Please give a yell and thanks in advance, Peter Vrenken Yup, it's really too bad. I was hoping to try my hand at creating a single C# game, then just create a different build for the "demo" version that could be ...Show All
Audio and Video Development Sample HD WMVs for Testing
http://www.microsoft.com/windows/windowsmedia/musicandvideo/hdvideo/contentshowcase.aspx These works great for testing in iHDSim. ...Show All
Visual Studio Team System Problem with source control (Data is Null. This method or property cannot be called on Null values)
Hi, VS hangs up during project loading. Re-getting the project from source control does not help. VS installation does not help either :( The following error in the server's event log: Edit: it does not hang. After a few minutes in unfreezes and says 'look into your server event log'. the project is open as source-control ounbound. TF53010: An unexpected condition has occurred in a Team Foundation component. The information contained here should be made available to your site administrative staff. Technical Information (for the administrative staff): Date (UTC): 6/26/2006 12:48:55 PM Machine: VSSERVER Application Domain: /LM/W3SVC/3/Root/VersionControl-1-127957963704837131 Assembly: Microsoft.TeamFoundation.Common, Version ...Show All
Visual Studio Tools for Office Can't edit text in RichTextBox (VSTO 2005)
Hi, When I add a RichTextBox to my Word document at Runtime, my textbox displays correctly my formated text. But if I try to change the format ot some text in the RichTextBox once Word is launched, nothing happens! How can I enable the formating of text in the RichTextBox Thanks, Claudia Hi Claudia, If you are using VSTO, the RichTextBox control isn't supported (which is why it is not enabled in the designer). The Windows Forms RichTextBox control wraps the Win32 Rich Edit Control. Unfortunately, Office uses a different version of the RichEdit control and WindowsForms does not behave properly if that version is loaded. Sincerely, Geoff Darst Microsoft VSTO Team ...Show All
Visual Studio 2008 (Pre-release) anonymous methods type inferring at assign time
While assigning anonymous types like this: 118 Action < Rectangle , Color > DrawRectangle = delegate ( Rectangle r, Color c) 119 { ... it would be a really great to be able to rewrite it like this: 118 var DrawRectangle = delegate ( Rectangle r, Color c) 119 { Currently this will result in an error: error CS1811: Cannot infer local variable type from delegate or lambda expression The Action<A, B> delegate could reside within System namespace. Or is this already suggested and this just wont make it into the Orcas cheers, i guess this can be an answer for ur concern Yes, there is a difference between a lambda and a local of a delegate type. ...Show All
Visual Studio Team System MSF Essentials book: natural vs. planned vs. externally facilitated checkpoints
Hi all, What are natural checkpoints, planned checkpoints, and externally facilitated checkpoints I found them in MSF Essentials book, Chapter 3, p.36, which says: "MSF builds in natural checkpoints ... help a team reflect and assess successful and not-so-successful aspects of a project. Planned checkpoints throughout the MSF Governance Model help teams to make midcourse corrections... MSF emphasizes the importance of organizational-level learning from project outcomes by recommending externally facilitated project checkpoints and post-project reviews." Would anyone explain it for me Thanks in advance! Checkpoints are a chance to sync up and/or compare plans with reality. The main differe ...Show All
Visual Studio 2008 (Pre-release) WCF Authentication - Point me in the right direction pls
Greetings, I am writing a c# 2005, smart client application and have decided to use WCF as the transport layer. Having previously only used HTTPS ASMX based web services for such a distributed style application I am quite new to some of the concepts involving how to secure WCF. Perhaps someone can recommend the best approach to my scenario, the smart client will be public web based and ClickOnce updateable, therefore no Windows usernames or groups will be used, each smart client user has a set of 4 custom credentials required in order to logon to the WCF service, these credentials would be checked with custom code which looks in a back end SQL database. In the past I have kept it pretty simple and used a custom single Logon me ...Show All
Visual Studio Express Editions Dynamic help doesn't work in cpuid.c, but works in cpuid.h and test.cpp???
I download it from http://download.microsoft.com/download/B/A/D/BADA8219-9761-498D-85B4-4565C28F4DB8/crt/cpuid.zip.exe I found that in "cpuid.c", dynamic help shows "No links are available for the current selection", and in "cpuid.h" and "test.cpp" dynamic help is okey. And I can also build and run the program. But why Dynamic help doesn't work in cpuid.c Need help. To build that sample, you need to change the current configuration. Build + Configuration Manager, change Platform from Titanium to Win32. You can't expect dynamic help to give you any info on cpuid.c; it is filled with assembly code and other low-level stuff. If you really want to find out ...Show All
