Prince_san's Q&A profile
.NET Development How to fill one dataset from another dataset
Does anyone know how to accomplish the above behavior I want to update a database table from a dataset currently populated from another table. I can iterate thru the, filled dataset, and populate the other dataset or directly insert row after row into the other table. I'm hoping to find a 'bulk' way to accomplish this without going row by row. I created one dataset and used it's tableadapter to fill dataset1. Now I created another datas ...Show All
Visual Basic Computer take a nap every third time through a for/next loop.
Hi All, I have the wierdest problem I have come across in my 40 some years of troubleshooting code and hardware. The followinf code is simply 3 nested for/next loops. About every third time (sometimes 2, sometimes 4) through the inner, y loop both of my computers take a 15 millisecond nap. An instruction gets performed and then it is 15 milliseconds before the next instruction is performed. Nohing else is going on, t ...Show All
Visual Studio Team System Is there no support for native C++ in Team System?
The subject says it all. What test tools in VSTS actually do work for native C++ So far, I've found prefast. I get the impression from the help that none of the unit test tools, or code coverage tools are usable for native C++. Am I missing something, or is VSTS not very helpful for native development Another non-unit-test possibility is to set up a generic test (that just opens your native c++ app), configure ...Show All
SQL Server Invalid Descriptor Index calling SQLGetData
In previous versions of MSSQL and on every other SQL engine I've tried the following pseudo-code works. SQLExecDirect('select employeeid, photo, notes from employees where employeeid = 1') SQLFetch() SQLGetData(for column 3) SQLGetData(for column 2) With the Native Client I get an error 07009 "[Microsoft][SQL Native Client]Invalid Descriptor Index" Is this a bug in the Native Client or am I making an incorrect ass ...Show All
.NET Development Threading problem
Hi, I have a Windows Form and I need to create another thread to wait for an input somewhere else in the program. When this happens, I will have to access the form and modify it. Right now, this creates an error because I can't access/modify the form from a thread that didn't create it. I've searched through the reference and found that the ThreadPool class allows me to "wait on behalf of other threads" but I haven't found a solution with that y ...Show All
.NET Development Best way of saving lists in app.config file?
I'm looking to save a collection of values in app.config, preferable without having to spend time getting involved with writing any special handlers. In straight XML, the data would look something like this: <xml> <items> <item name="Letter" width="8.5" height="11" value1="something" valuen="x" /> <item name="Legal" width="8.5" height="14 ...Show All
Visual C++ Stack corrupt after managed callback (w/ parameter) from unmanaged
I have a callback function that calls from unmanaged to managed code. Using code derived from the MSND article “How to: Marshal Callbacks and Delegates Using C++ Interop”, it works fine. When I change the callback function and the delegate to pass a parameter I get a corrupted stack. Could anyone offer a suggestion of why this is happening Any help a greatly appreciated. Here is a short sample program that shows the problem with the outp ...Show All
Visual Studio 2008 (Pre-release) Data Grid control in Avalon
Hello, Is there any grid control available for Avalon Are there any samples presenting such functionality Thanks in advance Edmundas Hi, I just look into the DataGrid Demo but saw a selfmade Grid and not a Grid made from Microsoft. Will Microsoft develop such controls like in ASP.NET or Windows.Forms Thank you very much in advance. ...Show All
SQL Server copying table in a database
Hi good day to everybody, Can we copy a table from a database and saved it into a diskette Because i did not find or maybe i miss or doesn't know how to do it from EXPORT/IMPORT tools. The computer to where I attach the table is not connected on d'same network, and if I backup & then reinstall the whole database into that PC, all records in their will be overwritten by the new one which is not I wanted to be. H ...Show All
Visual Studio Team System Team Explorer & Project Portal
hi I read in some article that "Projetc Managers in VTTS env can manage the whole project by using only the team explorer client." That leads me to a confusions which are .... 1. "Whenever a new project is created a new WSS site is created which can be accessed with the Internet Explorer....then why project managers needs Team Explorer" Muhammad Ali Inayat Hello Muhammad! "Team Explorer Client& ...Show All
SQL Server Help Designing an App. to be Run from a Job
Hello, I'm working on a project that uses SQL Server 2005 and C# 2.0. I need some ideas of the best way to design/implement an application that will be executed from a SQL Server job. The general idea is: a SQL Server job will call [ something ] and pass a couple of parameters to [ something ], then [ something ] will query a database and gather other information, then [ something ] will do some processing of data, and finally [ something ...Show All
Visual Basic Automate MS Word Doc with VB.Net
I amtrying to pull info from a Sql Server to populate a word Doc using a VB.Net App any ideas Hi, If you're using Visual Studio 2005, a good place to start is Visual Studio Tools for Office: http://msdn2.microsoft.com/en-us/library/d2tx7z6d(en-US,VS.80).aspx There is a section for automating Microsoft Word tasks: http://msdn2.microsoft.com/en-us/library/78whx7s6 Regards ...Show All
SQL Server VSS6 and SQL Server Management Studio
I'm trying to get our older VSS 6 to work in a new project on Microsoft SQL Server Management Studio. In our current VSS - we have a folder named: DATABASE and subfolders named as SP, Views, UDF, and so on. I beleive I'm supposed to create a project and point it to the DATABASE folder location in VSS. On my local drive I have it mapped as d:\DATABASE\ However; I'm having trouble figuring out how to add the existing sub-folders that are ...Show All
Visual Basic clickonce install link opens manifest file
We have published a windows form application, using publishing wizard of clickonce. The publishing is successful. For the first install (version 1.0), the framework 2.0 as prerequisite and the app get installed OK. However, if the version 1.1 is published on the same FTP and install link is clicked, it opens Application manifest file. The application does not get installed. Is there any settings issue or publishing steps missing Thanks ...Show All
.NET Development int on a 64-Bit machine
Hi! If I declare a variable of type int in C# it will normally map to System.Int32. If I run the same application on a 64-Bit machine will it then map to System.Int64 In C#, unlike C++, ints and longs are predefined as being 32 and 64 bit respectively. This is the same on any platform, whether 32 or 64 bit. As long as you aren't using any unmanaged components, you really don't need to worry. However, I still use Int16/ ...Show All
