James Howey's Q&A profile
.NET Development why is Update() so Slooooow
I found one fatal problem which I would like an explanation; in the old days (2 weeks ago) I used an access DB and I would open the access program and a macro would simply read from a text file and load 3 tables and stop. Once I got out of the Microsoft access program the 3 tables in access would have the new data, I say it took about 35 seconds to do. Now I switch over and created an SQL DB and my new program in VS 2005 reads from the same 3 text files and writes each row into the virtual tables waiting for the update to take place, now like I said 3 tables 2 small with 20 or 30 columns and the 3rd with 190 columns and 15000 records, s ...Show All
.NET Development asp remoting
I have been unsuccessful in connecting an aspx page to a remote dll because the format for web.config commands have changed and all the examples are for vs 2003. I am using vs2005 andMS does not have any samples of how to config aspx 2 remoting (at least that I can find) The questions a little vagues in terms of what you're all handling, but I've included a code snippet that might help you out. <httpRuntime useFullyQualifiedRedirectUrl="true" enable = "true" maxRequestLength="4096" executionTimeout="150" minFreeThreads="2" appRequestQueueLimit="4& ...Show All
.NET Development How can I move the SQL Server database from local to public web server?
Hello Everyone, I have developed one Windows support front end application to connect my local SQL Server database and its working fine. Later I want to move my database to public web server to access the data from internet. But my front end application should be remain same. For the connection changes I will update my code to connect well. Can someone who have a idea please guide me. What I have to do Thanks in advance, Jose Hi, just read your Connectionstrings out of a comfig file. Your app will connect then to the db defined in the config file. ...Show All
SQL Server creating a table column that contains long string
I have made a database inside a C# project using project --> Add New Item --> SQL Database. I have made its tables and define the columns, but I need a data type that allows inserting a long string , as a news paper . When I use the 'text' data type , the inserted document can't entered as a whole, only subdocument can be entered. I need also to know how can I create a table that contains Objects . of any created class. Thanks, Aya. The text type can hold up to 2GB of data. Should be enough no Could you show us your insert procedure ...Show All
Visual C# calling functions one after another and get result into Main again
Dear all, I have this C# code. public class SimpleUdpClient{ ... void recieve_msg(){... msg[] contains data... } void capture_off(){... recieve_msg();... } public unsafe static void Main(string[] args){... simpleclient.capture_off(); fixed (byte* pSrc = msg, pDst = buffer) {...I want to use the data in msg[] to save to buffer[] here and do other operations... } } } But how do I get the data after Main calls capture_off(), then capture_off calls recieve_msg() and get the msg[] from there to continue working in Main. Hope you guys are not confused by me. Really appreciate your help! Thanks a million. Regards, Siew eng ...Show All
Visual Studio Tools for Office Reapply Template Programatically
Hi there, how do I reapply Template AFTER actual document has been created (sure I'm ready to sacrifice all the existing content) I suppose I can use Copy All -> Past All, but it doesn't seem to be elegant enough. Thanks, Dmitry I assume you're referring to Word templates. Document.AttachedTemplate is the property controlling which template is attached to the document. You may change the attached template. This will not have an effect on the content of the document. It may have an effect on the style definitions though (depending on how the styles were defined), toolbar customizations and other t ...Show All
SQL Server Avarage "up time" report
I am trying to generate a monthly report for upper management that show the total up time for my servers during production hours. Some thing like Average server availability for A is 98% during business hours. This doesn't include scheduled down time. Any Ideas on how I would go about this I do not need all the bells and whistles of a lot of products that are out there. So is there a function with in Server 2003 that will do this ...Show All
SQL Server Another question about Login failed, but with Windows NT Integrated security for SQL 2005
Hi, Happy New Year! I have been struggling with this problem for a while with SQL 2005. I have never had such login problem with SQL 2000. Here is the scenario: I have installed SQL2005 standard version on a XP Pro box and I am trying to access it from another XP Pro machine. I can access it using a SQL user name and password that I set up on the server, but I have not had luck with using Windows NT Integrated security. When I try to connect to it (e.g. by a UDL file), I get an error saying Login failed for user ‘HP-AMD64\Guest’ where ‘HP-AMD64’ is the name of the PC running the SQL ...Show All
Software Development for Windows Vista HUman Interaction Sample
Great whitepaper. Any idea when the rest of the sample code will be posted, all that's in the .msi referenced on the page is for the parallelIFActivity.. I sure would like to see the activity for interacting with AD and the RTC. If you are talking about "Simple Human Workflow Quickstart Sample Code" The download page, http://www.microsoft.com/downloads/details.aspx FamilyId=6DE9F614-E4D9-4180-886A-195538A58603&displaylang=en , has been fixed. ...Show All
Software Development for Windows Vista running legacy VC++ applications on Vista
Hi friends, We have legacy application VC++ (COM) built using VC 6.0 on XP machines. On trying to run this on vista,we are bumping into various issues. I want to be able to debug (5308 build) the application on vista. I tried installing VC 6.0 on vista, it doesnt work and our code doesnt build using VS 2005. I tried making debug build on XP and tried running it using VS 2005 on vista. VS 2005 on Vista ( 5308) complains that it cannot load debug symbols, where as the VS 2005 on XP works fine, it loads the same pdb files. Please help. Thanks in Advance I did get Visual C++ 2003 to install succes ...Show All
Visual Studio Registry permission solution to Beta2 install errors (e.g. MSXML DomDocument could not be created)
I encountered several errors attempting to install Visual Studio 2005 Beta 2 on a clean Windows Server 2003 machine, and I have now discovered that the cause was a registry permission problem. The machine had not had any previous beta versions installed, and I was logged in with my domain account with administrator privileges. I attempted a full install of all pieces of Visual Studio 2005 Beta 2 (including SQL Server 2005), and most of it installed, but I encountered several errors, such as: (1) SQL Server 2005 beta version (that’s included with the beta of Visual Studio) wouldn’t install – it complained that MSXML is not installed, but it ...Show All
Windows Live Developer Forums New "IMAPPS" bot launched
To commerate the PDC and the launch of the MSN Messenger Activity API, we have created a Bot that will give you more info about the Worlds Best App contest as well as info about the PDC. Add imapps@msn.com to your contacts list and start talking to the IM Apps Bot! Scott Swanson Group Product Planner MSN Messenger Platform Planning Another way to launch the Bot or add it to your contact list is via the new MSN: protocol that was introduced in the Messenger 7.5 client. The syntax looks like this: msnim:add contact=imapps@msn.com to automically add a contact to your contact list. Or, click here to see it work. The syntax ...Show All
Visual Basic class error's
Hi all, I don't know if this is an error in .NET or an expected condition. My question regards creation of a class using a dynamic array. the array set works if you share the class but if you do not you get an error of refering an object to a null referance. here are the two classes below. TData will cause as error and T1Data will not. I would like for the class not to be shared so that multiple seperate instances of the can be created. Public Class TData Public Depth() As Int16 Public Capacity() As Int16 Public Description() As String Public OnSide() As Boolean Public Sub NewDim( ...Show All
Visual Studio site deployment
Hi, I'm trying to deploy my site to a pre-production server, however hitting serveral problems. I need to confirm a few bits and hopefully resolve my problem. Using vss i've had problems with dll's and references. Currently my dll's for my project are not under source control (no blue padlock), should they be Any help would be good, thanks, Michael Hi Michael, There are a few ways that binaries in your bin folder will not be under source control. 1. If the assembly has an auto-refresh path set (i.e. you see a .refresh file under that file in the bin folder). 2. If the assembly is a dependency of a file that has an auto-r ...Show All
Visual C++ Open a word file in Word using my application
I'm a novice so please give me a break. I'm builduig a little MFC program for my little entreprise wich will open a word document on the clic of a button. I want want my program to open the word program wich will load my .doc file. How do I do that, i've search and all I can find is the CFile class::open wich does not help me at all. Thank you Eric You need to use ShellExecute. See http://www.codeproject.com/system/newbiespawn.asp ...Show All
