ghomf's Q&A profile
Visual C# concurrency violation
Why public void MoveUp( int ID) { OpenConnection(); DataAdapter da = connection.GetDataAdapter(); string SQL = string .Empty; SQL += "Select..." DataTable tbl = connection.GetDataTable(da, SQL); //my lib, no problem executes SQL and return result in datatable // 2 righe di risultato if (tbl.Rows.Count == 2) { // swapping int temp = Convert .ToInt32(tbl.Rows[0][ "Ordine" ]); tbl.Rows[0][ "Ordine" ] = tbl.Rows[1][ "Ordine" ]; tbl.Rows[1][ "Ordine" ] = temp; } da.Update(tbl); <-- Error sometimes CloseConnection(); ...Show All
Smart Device Development which is efficient way to create and deploy sql server2005 mobile database to PDA?
Hi All, I want to create and deploy .sdf database(sql server 2005 mobile database) to the Pocket Pc .I had done with that using web service by processing xml file and executing q ueries on PDA locally , but the time requires to create XML file on server , send to PDA , and Process it on PDA is about 25Min(25000 transaction). can we create database of PDA and insert data on server itself to reduce time And after that we can simply copy that databse on PDA directory . Is it possible with new sqlserver2005 mobile edition & ...Show All
Visual Studio Tools for Office Generating XSLT from Word 2007 document?
Hi, After attaching an XML schema to word 2007 document, I would like to generate an XSLT file from it. In Word 2003, I can do it by running WML2XSLT.exe tool on doc.xml file. As .docx is a container with many parts in it, Is there a way in word 2007 to do the same TIA, Kris Hi Cindy, Does that mean one has to live with own predefined xslt templates with limited formatting capabilities. Or Else If I have a XML schema attached dotx template and I want to apply the DataOnly.xml to it, then do I have to parse through the document parts and edit the values on my own. You have answered me in the below thread for ...Show All
Visual C++ To detect any 'Enters' pressed
Hi, How about detecting any 'Enters' pressed in the keyboard How can we have a thread for detecting this Thks & Rgds, HuaMin What is your idea To get all hits to the enter key in all applications Or just your Application or just a window of your application What do you want to solve To answer this question I need more infos about the problem. ...Show All
Visual Studio Team System Project Alert doesn't work after office is isntalled
Hi I have a TFS configured for a while and everything seems to be fine until I installed a copy of MS office on that server. The project alert doesn't work any more. I took a look at the application log, and found this error message. <--Error Message Begin--> 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): 5/19/2006 9:21:43 PM Machine: SVR-VALSIM-001 Application Domain: /LM/W3SVC/3/Root/services-2-127925385247521666 Assembly: Microsoft.TeamFoundation.S ...Show All
SQL Server Previous Row Calculations (sql server 2000)
if anyone know a way that you can look up a value from the previous row in a View to do a calculation on (in sql server 2000) for example: expr1=PreviousRow.Expr1/30 + expr2 - expr3 =100 so the next row is expr1=100/30 + expr2 - expr3 =300 so the third row is expr1=300/30 + expr2 - expr3 =100 or tell me if it not possible please and special thanks to Umachandar Jayachandran - MS for help. the second line is the initial expr1: update #temp set pv = 0 where id = 1 ...Show All
SQL Server SSIS package won't run in production server
Hi, I have a package that I developed on my local machine and runs well. I run it through the command line on my production server the following way: D:\test\CMS_MoveContentToLive>dtexec /f D:\test\CMS_MoveContentToLive\CMSMoveIte mToLive.dtsx -de The -de option is because i changed the default security protection level of the package as BOL says that for the default protection level (EncryptAllWithUserKey): "Only the user who created or exported the package can open the package in SSIS Designer or run the package by using the dtexec command prompt utility." The problem is that the package does not run successfully and vomits a ...Show All
SQL Server Mapping Variables to Resultsets
Is there a problem mapping variables to resultsets with a bigint as datatype I've tried using int64, and others, but all fail except for object datatype. I cant use object datatype because i wont be able to use it as a derived column. Any ideas here Big integers are returned now as strings. So if you choose your variable as a string variable you should be able to get the result correctly. This will probably change. soon. ...Show All
Visual Studio Express Editions How to Hide Blinking Cursor in the Textbox
I have a problem now hiding the blinking cursor on the textbox, how can i do this in visual basic express if i set it to textbox1.readonly = true, the cursor still appear, what i've done is setting the textbox to textbox1.enabled = false is there any way to hide it thanks:) ...Show All
.NET Development connecting using localhost
hi all, i'm using VS2003 .NET with SQL2000. after changing my computer's name (i think that was the "trigger"), i get the infamouse "SQL server does not exist or access denide" message if using "localhost" as my datasource in my connection string. i have no problem if i use the server name "hard coded" (datasource = myserver). any ideas how to make "localhost" work again thanks. problem solved! this has been bugging me for days now! solution- i unregistered and reregestered my sql server in enterprise manager and then set an alias "localh ...Show All
Visual Basic Change one field in a table
I've written a program that reads a comma delimited text file into an SQL Server table. I have more than two hundred such files with literally hundreds of thousands of rows of data. Unfortunately, the existing time data is in the wrong format (e.g. 0350 instead of 03:50. How can I read, each record, change that one field and move on to the next I know there are Datasets and BindingNavigators available. I have read the help files and online docs but I can't quite figure this one out. PS Due limitations of clients existing software, I'll also want to write the results of queries back to text files. What would be the most efficient approac ...Show All
.NET Development Object reference not set to an instance of an object
m using windows xp home edition and I just installed VWD 2005 Express beta edition I have a problem every time I try to create Cs (c sharp file ) it give me an error saying :Object reference not set to an instance of an object . thanks for help Sam I had the same problem and applied Edgardo's suggestion, which worked for me. Everything works fine now. I originally installed VWD and then later uninstalled it to install the full VS2005. Maybe that had something to do with the cause of the problme ...Show All
.NET Development XmlSerializer or custom serialization?
Hi! I'm currently not sure whether I should use XmlSerializer to save the properties of a class to an xml file or if should just write the file manually with XmlTextWriter. The problem hereby lies in the speed of deserialization. My program will load an undefined number of such files and create instances of the corresponding class at startup. Thus the deserialization operation should take as few time as possible, even if that means writing more code. If I have a class named Employee with the properties Name, Address, Age, and Salary I'd deserialize it with an XmlReader as follows: while (reader.Read()) { if (reader. ...Show All
Windows Forms derive from base Control, why do child controls not render correctly?
I'm trying to derive a custom list-type control from System.Windows.Forms.Control. But I need to put some scroll-bars on it. I'm doing everything, but I just can't get the scroll-bars to work correctly. I need to either inherit from Control, or I need to come from Panel (but I don't want the developer to be able to put child controls into it at de ...Show All
.NET Development Generic's - Collections
Hi all, I aint too cluded up on Generics yet, but let me give you a run down on my problem so that you can advise me if Generics is the way for me to go. OK - I have a a couple of collection classes that inherit from CollectionBase. These collection classes all have the same property members that I have overriden,, such as Add, Remove (Overloaded), this, etc etc. I may be going down the wrong route with Generic's here, but could I have one Collection Class with these Property Methods that holds generic Types, and then do some running conversion to the appropriate types Am I going down the right path with this Tryst The idea behind ...Show All
