soccerdude1000's Q&A profile
.NET Development Creating a new table in SQL Server from ADO.NET DataTable
I have some C# code which is dynamically creating a DataTable, using ADO.NET. I would like to be able to create a new table in an SQL Server database, matching the schema of my DataTable object. Is there any ADO.NET functionality that I can leverage to do this Or should I just go to plan B - construct and execute a CREATE TABLE command, using the properties of my DataTable to build the command - seems a bit clunky, with all the flash capability of ADO.NET. Thanks! Nick Tompson You can use SQL Server Management Objects to create tables in SQL Server using SMO. Here is an example I wrote particular ...Show All
.NET Development Adding child nodes to my xmldocument
hi there, i have 2 functions: the one method (serialize) must create a new xmldocument and call the other method (getxml), which will create and return an xmlnode. the problem is i keep getting the same error message: "The node to be inserted is from a different document context." i don't want to pass the whole xmldocument to the method because of performance reasons. here is the code, can anyone help public void Serialize() { //create xmldoc and call control's getXML method to add their xml to doc XmlDocument mainDocument = new XmlDocument (); XmlElement rootElement = mainDocument.Cr ...Show All
.NET Development Security questions
Hi! At the moment I’am trying to figure out a concept for my company to create a "secure" client-server application. What I have right now: Host: Windows Service (IIS is no option as the host) Channel: Secure TCP (.NET 2.0) Formatter: Binary / Soap Client: Windows client (Windows XP) / Web server (Windows 2003 IIS 6) Network: Intranet I allready checked the new features .NET 2.0 gives me to make the data transfer secure, but I still have some questions, where I havent’t found a answer right now. 1. How can I limit the access to the server to a single user, or even a group of users I allready checked the new "impersonate" featu ...Show All
Visual C++ control Parameter info by ctrl+up/ctrl+down
Unfortunately parameter info now is controlled by simple up/down if there are multiple entries. I'd really prefer if I could switch it back to ctrl+pageup ctrl+pagedown as it was in VS6. I looked for keyboard assignment, but didn't find something suitable. Another downgrade is that parameter info is not displayed anymore when the cursor is on the function name, only if the cursor is between the parameter. Does anyone know how to change this Harald Hi Harald, I haven't found a way to change the shortcut for cycling through the overloads, but given that this is something common to all languages hosted in VS, I think the best place to ...Show All
Visual Studio Team System Cannot change TFS from Team Explorer - Team Explorer Bug?
I've Team Explorer installed on a mobile PC on which I've registered my internal TFS Beta 3 Refresh. Then I've published my TFS to the WAN, the TFS publishing works great, but from outside the LAN, when I try to register my TFS using the public published name, Team Explorer shows a Messagge box telling it cannot find the Internal TFS. Of course that it will never find my TFS server using the internal private server name. I just want to tell Team Explorer that now TFS is on another public pubished name, but theres no way to get to the "Connect to Team Foundation Server" form to add the new Server. ...Show All
.NET Development n-teir application
dear all i need to create 3-teir application interface business Data but when i need to create another application with same details i cant where can i but connection string ...Show All
Visual Basic A newbie's question
I´m trying to develop a decent tv tuner/capture application (since there are no such apps, nowhere, I say) in Visual Basic 6.0. I´m using the MSVidCtl component together with the AnalogTVTuningSpace and IChannelTuneRequest object to achieve this, as described here: http://msdn.microsoft.com/library/default.asp url=/library/en-us/directx9_c/directX/htm/hostingthevideocontrolinavisualbasicform.asp and here: http://msdn.micro ...Show All
SQL Server declare programaticly a X number of variables
Hello everyone, I really need some help; I need to declare dinamicly an number of records to be pulled out of the table.. so I need to declare first DECLARE @NumberOfRecords int then DECLARE @i int set @i=0 and WHILE @i<@NumberOfReocords begin declare @Record int <-- Here is my Problem set @i= @i+1   ...Show All
Visual Studio Error When Deploying Application
Hi, When I deploy my win app which includes a reportViewer control I get the following message. Unable to install or run this application. The application requires your system to be updated to Microsoft.ReportViewer.WinForms Version 8.0.0.0. Any idea what this error means Terry, that didn't work for my problem of using a ReportViewer in a webform in local mode at a hosted website. By the way, your previous article, "Visual Studio 2005 Beta2 and Reporting Services - The Most Interesting New Feature for Me", was VERY helpful to me. Many thanks for that. ...Show All
.NET Development How to access objects from another thread...
I modified this example to output to a textbox on a windows form. So instead of Console.WriteLine I used Textbox1.AppendText. Unfortuantely this won't work being that async sockets work in a seperate thread and I get an exception stating the control "textbox1" cannot be accessed from a thread other than the one it was created on. How do I take the data from the receive event and move it to another object created on another thread Interesting, i tried shaka's technique a few month's ago and it didn't work for me. I'll try it out again, it would cut down alot ...Show All
Windows Forms Implementing IDesignerSerializationService
Anyone have a clue how to do this Not many resources out there. Thanks Jamie Based on my research, there is not a working example with IDesignerSerializationService available to the community yet. So it's a great chance for anyone trying to influence and educate the community on this topic, please MVPs, MS Gurus and any experts help... Alan ...Show All
Visual Studio 2008 (Pre-release) MyCalculatorService Tutorial
Hi all, Just starting with WCF. Installed WinFx Runtime, WinFx SDK and VS2005 Extensiond for WCF and now trying to follow the tutorial. It asks to create a project of type 'Windows Type Library' and I couldn't find one. Can someone pleasse provide me a little guidance here Thanks kr Hello Khalique, 'serviceType' has been renamed to 'type' as you discovered. 'bindingSectionName' has been renamed to 'binding'. 'contractType' has been renamed to 'contract'. 'wsProfileBinding' has been renamed to 'wsHttpBinding' in recent builds. Thanks, - Craig McLuckie ...Show All
Windows Forms Sluggish performance 2005 final release - Us or MS?
We have a windows application, originally developed in VS 2003, now in VS 2005 final release, using Visual Basic. It has become painfully sluggish to design in, though the speed when running the app is fine. My PC is a Pentium 4, 2.5 ghz with one meg ram. I can not tell if the problem is with us and the way we designed the solution, or if it has something to do with Microsoft and Visual Studio as a whole. I realize that you are capable of having a field day on my ignorance but hope you will resist the temptation. When opening the app it takes 3 minutes before we can actually get anything done. The Solution Explor ...Show All
Visual C++ Freeing Memory
Hello, I've got a question; how is it possible to free memory using VC++ 8 .net 2 With Thanks, Gal Beniamini. Here is a link of how to use the delete method: http://msdn.microsoft.com/library/default.asp url=/library/en-us/vccelng/htm/express_29.asp Thanks, Ayman Shoukry VC++ ...Show All
.NET Development App.config and saving the configurations...?
Hello, I've searched the internet but couldn't find what i need.I created a config file: App.config: < xml version="1.0" encoding="utf-8" > <configuration> <appSettings > <add key="Refresh" value="60" /> <add key="File" value ="einstein.jpg"/> </appSettings> </configuration> I created a winform to view and change the information. I can show the config ,it's ok: this.refreshTextBox.Text =System.Configuration.ConfigurationSettings.AppSettings["Refresh"]; this.fileTextBox.Text = System.Configuration.ConfigurationSetti ...Show All
