DogObsessedperson's Q&A profile
Visual Studio 2008 (Pre-release) How to return a List<T> using WCF
I have an application that reads lots of small blocks of records from a data store primarily to supply the application's numerous lists (drop-down etc.) I have been returning DataSets using web services in .NET 2. Now I would like to implement the same functionallity in WCF. I have already got methods that return DataSets in WCF that duplicate the functionallity. However it occurs to me that I could make a list of the rows represented as class objects and return a list instead. The idea being that the server is doing some of the work for me and that I could more easily port a web version of the service if the result is in List<T> form from the service. At this point I take a DataSet and create the List<T> at the client which ...Show All
Windows Forms Adding an Edit Column
Hello, I am trying to add an edit column at the end of each row for my datagrid. I have easily performed this task in asp.net, but now I am trying to perform this task in a winform. When I click on the edit button/link I want that one row to become writable and I want to be able to edit anything in that row. Thanks for the help in advance Sean Bump....Anyone with any idea....Ive been toying around with the idea of just adding buttons to a custom column. Any advice for this is greatly appreciated ...Show All
Smart Device Development Querying from my PPC to a Desktop Database
Hi, I would like to ask what are the things needed to connect a pocketpc to a desktop database server so it can query to it. What I mean to ask is, what pocketpc OS, database server and visual studio must be used Is it even possible without any CE Database on the pocketpc Im trying to develop a program that will help waiters in restaurant to place orders using pocketpcs. The main objective of the software is for the waiter to input the order of a customer and the data will be passed to the database to make the order. Any help would be greatly appreciated. Thanks. Jup I have already VS2005 and SQL Server 2005 installed. But I cannot find SQLClient Reference in VS2005 and I had it in VS2003. Can I download ...Show All
Visual Basic SQL Connection accros network
Hi every One I need to Make My application connected to SQL Server from another machine in Local Area Network I have tried with changing data source name and IP Addres and port number but i fiald Plz Help Thanks For your time ahmedilyas The problem Solved It was a security problem between two machines Dosen't Releated to SQL Server Or My Application , it was only XP Professional SP2 Securtiy It was solved by changing the Guest Account Password and make it blank Thanks ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Simple 3D Cube using BasicEffect -- No shading/color
I am trying to just create a cube using BasicEffect, not shaders like in the sample code for a simple cube in the help (see http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=687011&SiteID=1 ). However, I only see the cube as a flat grey hexagon -- no colors, no shading, not even the edges of the cube are seen -- only the flat grey against the background. When I run the above code, I do get a colored cube. I have an NVIDIA GeForce FX 5900XT, which does support Pixel and Vertex Shader 2.0+. I've messed with every effect method there is, so I'm not sure what I'm missing. Below is the code: using System; using System.Collections.Generic; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Audio; using Microsoft.Xna.Frame ...Show All
SQL Server How to get DBName, IP, Domain Name, Data Path and stop services
How can I get dbname ip domain name Data path using TSQL. how can I stop services using TSQL Emad If you are using sql server 2005 you can use the dynamic management view sys.dm_exec_connections. ( http://msdn2.microsoft.com/en-us/library/ms181509.aspx ). Run select * from sys.dm_exec_connections to get the ip of the both the server and the connecting host. By Dath path if you mean the path for the database files , you can use the catalog view sys.master_files. select * from sys.master_files. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Are you making a game for the 360 using XNA?
if so I would like to have you on our next show. I co-host a Xbox Gaming Podcast called XBL Radio and every other show we have a gaming roundtable. Well this next roundtable we are going to be discussing what XNA is, whats its like using it, why your using it and where you see it going. So if you would like to be on it and have this Thursday, January 4 at 630pst available , I would like to get you in our chat. Now we do it over Xbox live in a Texas Hold'em Lobby. So if you would like to be on it and if the time works for you, get with me at Steve at xblradio dot com now I only have 5 slots open so it would kind of be on a first come first serve basis unless you have some weight to pull around. So again if you wanna join our show ...Show All
Visual Basic populating an Access database using visual basic 2005
I am trying to create a new employee application that gets input from a user in text boxes and then take that information and populate a database in Access that will later be pulled to the Track IT! database on SQLserver2005. How do i do it Thank you. This helps... but i still dont fully understand it :(... I like the datagridview way better... but seeing as how many users will be using it i dont think that my boss will like it so much... unfortunately... I am going to do it both ways and see which he likes better... however, what i dont understand is: (i am only going to be asking questions from the insert into the database from textbox b/c i am pretty sure thats how he wants it) A) how does the O ...Show All
Visual Studio Team System New Team Foundation Server MSSCCI Provider Available Now!
I am happy to report we have released an updated TFS MSSCCI provider here . We have been able to address a number of requests (keep them coming) in this release including the following: PowerBuilder support Enterprise Architect support Improved Open from SCC experience Work items can now be modified in the checkinwindow Get latest on checkout support Check-in lock is treated as exclusive Setup works on x64 This is an unsupported "powertoy" like tool. There have been some discussions about the possibility of supporting it, but nothing yet. Keep reporting issues and comments to the forum or by e-mail . Hi, You suggestion works well, thanks! When I modify (change back) regkey, ...Show All
Visual Studio Visual Studio 2005 SP1 is now available!
Visual Studio 2005 SP1 has now shipped and is available for download here: http://msdn.microsoft.com/vstudio/support/vs2005sp1/default.aspx I'd like to take a moment to thank everyone for using the ReportViewer controls, for helping to answer questions in this forum, and for bringing issues to our attention. I have enjoyed answering questions in this forum over the last year and look forward to continuing. While we haven't been able to respond to every question posted on this forum, I can assure you that we do read all of them and use the feedback to help plan and prioritize future releases. Below is a partial list of fixes that are included in the ReportViewer controls in Visual Studio 2005 SP1. Fixed several issues around A4 ...Show All
.NET Development HOW TO DELETE RECORD IN A DATABASE ?
Hi, I have question to delete record in database. After clicked delete button I was able remove that row from view in datagridview but this record still exist in database. Here my coding : private void button3_Click( object sender, EventArgs e) { int Z; Z = dataGridView1.CurrentCell.RowIndex; maintenanceDataSet.MTN_Request.Rows .Delete(); maintenanceDataSet.MTN_Request.AcceptChanges(); } Thanks for your help. Joseph Hi, I am using data set and this data bound to datagridview. With data adapter I have to know one field for delete key. I want base on row position in datagridview and we can delete also in database. I did in VB6 and very simple. Thanks. Joseph ...Show All
SQL Server Stored Procedure with CURSOR OUTPUT parameter, using JDBC and a callable statement
My server is MS Sql Server 2005. I'm using com.microsoft.sqlserver.jdbc.SQLServerDriver as the driver class. I've established a connection to the database. I'm trying to invoke a stored procedure using JDBC and a callable statement. The stored procedure has a parameter @CurOut CURSOR VARYING OUTPUT. How do I setup the callable statement so the output parameter is accepted by the driver I'm not really trying to pass a cursor up to the database Server but I'm wanting a cursor back from the stored procedure that is other than the result set or other value the stored procedure returns. First problem: What java.sql.Types (or SQL Server specific) value do I specify for the out parameter I'm registering on the CallableStatement Second ...Show All
Software Development for Windows Vista Where is the Application database to be installed?
Hey all, According to the Windows Vista Software Logo Spec 1.0.doc ( Version 1.0.0006 ), Item 2.3 "Install to Correct Folders": Applications should be installed to Program Files or the user’s AppData folder by default. For per-machine installations, user data must be written at first run and not during the install. Since the install potentially elevates to a different user account during the per-machine install, there is no correct user location to store data at install time. Our multi-user application is intended to be installed "per-machine", so any user of the machine (or network) could share the application data. That said, can anybody explain in plain English, where should the application ...Show All
.NET Development how to not include base class in shema
Hello I have three classes A,B,C. B derves from A and C derives from B. I only want to include A and C in the wsdl so that the client does not see B. I tried to use the [ XmlType (IncludeInSchema = false )] on B but then C wont be included either. Even adding [ XmlType (IncludeInSchema = true )] to C wont include C. How can this be done I do not want to include B and B:s properties should not be seen in C either. Thanks Yes I have been using [XmlIgnore] on all properties of B so A and B are exactly the same seen from client. I guess the only thing left to do is to tell the clients not to use B and that A is identical to B. ...Show All
.NET Development Root / Global element issue in Schema
Apologies in advance if the question sounds silly but here is my problem. I am reviewing a schema generated by a tool which does get validated without a problem. Looking deeper into it I found that there is no root or global element specified in the schema because of which I cannot generate a sample XML. I was under the assumption that you have to specify at least one root or global element in a schema but it looks like that is not the case. Should this not be enforced or am I missing on something Please help!! Sumeet You can write schema modules to compose a schema from several modules using xs:include. You can also import schema modules for other target namespaces using xs:import. A schema might for instance only define a ...Show All
