Selva Kumar.T.P's Q&A profile
SQL Server Best Practice/recommendation dev data maint plans
We are working on converting to SQL 2005 database. During the conversion we are having to rewrite a lot of code and doing a lot of intital testing and development on development data. This is causing our transaction logs to really big. I have created a maint plan that runs nightly that does a back up of database and tran log but throughtout the day the tran logs are getting really big and eating up a ton of disk space. Does anyone have suggestions on what sort of maint plan I can setup to run on my developement data where as at this point I am not concened about being able to roll back the database just keep is small as possible and "healthly" All ideas are appreciated Thanks Chris Hi, As you said that you have ...Show All
Visual C++ Giving the user a language option in VC++??
Hello, Could any one please explain how it is possible to give the user the option to change the language of the status bar,main frame etc during runtime I create a dialog box in an SDI based MFC-application(using Visual Studio dot net 2003) and have a list box in the dialog box,with language options such as "English","French","German" etc.The default language is english,but if the user selects German,then on pressing ok the language should change to german. I heard it can be done by using "String resource".A little detailed explanation would be highly appreciated. Thank you Yes you have to translate the resources by yourself. We use RCWinTrans as a tool (very good)! Sorry I never had time t ...Show All
.NET Development HttpWebRequest & CookieContainer broken design & implementation
I've spend several months working with HttpWebRequest & CookieContainer, and simply had a miserable time making it work. My question is whether there's a better approach/workaround to it, and if not hopefully these bugs will be fixed by next 'patch'. Issue #1. HttpWebRequest does not setCookies for redirects until the end of redirect. Suppose you have a scenario where you log in, gets a 302 redirect with a SetCookie header. Now, the new redirected page verifies that the cookie is set before sending the correct response. Using HttpWebRequest & CookieContainer, the second redirect request does not have the cookie that response #1 specified, and thus you can never log in using these APIs. The only workaround I found so fa ...Show All
Visual C++ please help!
I made a short program,when I then sent it to a freind without .net seted,my program didn't work on his PC giving the error: "This application has failed to start because the application configuration is incorrect". I was wondering ,that's release. when I use .net2003 ago,there's no such error! thanks! Maybe because that computer has the .net framework 1.1 installed already. This isn't Microsoft's fault. This is an update which you need to install yourself. Microsoft has had these available for a while now too. ...Show All
Visual C# Windows Service : Finding installation directory??
I have done a Windows Service program. From this Windows Service program, I want to launch an application that resides in the same directroy as the Service program. Now, how can I find and know the installation directory from my Windows Service program Please kindly advice. I promise to grade you answer. Thanks Have a look at this thread: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=729426&SiteID=1 ...Show All
Visual Basic Out Parameter
Hello. A question please. In .net if I create a method that returns a whole record of a file sending a key, the out parameter I must declare "ByRef". Is it true Thanks... That's correct - vb doesn't (yet ) support a purely out parameter, so you need to make it ByRef. That will return whatever value is assigned to it inside the method. So your function definition would be something like: public GetRecord(ByVal FileNumber as Integer, ByRef Key as string) as string ...Show All
SQL Server connection time outs in a script component
I get connection time outs with a script component when the time out on the .net connection string is 120 secs. I get time outs before i am connected and i also get time outs dureing the execution of the command. got any ideas on what is causing the problem please tell ...Show All
Visual C++ Defining Classes
Sorry if this isnt in exactly the right place... But here goes. I'm trying to build this program and i cant figure our what im doing wrong, if you guys could look at the code and give me some tips it would be great. Thanks. Three separate files. //*************************************************************** //File: Point2d.h #ifndef Point2D_h_ #define Point2D_h_ class Point2D { public: Point2D() : m_x(0), m_y(0) {} Point2D( float x, float y) : m_x(x), m_y(y) {} float x() const { return m_x; } float y() const { return m_y; } float set( float x, float y ) { m_x = x; m_y = y; } private: float m_x, m_y; }; #endif //************************************************************* //Rectangle.h #ifndef Rectangle_h_ #define Rectan ...Show All
Smart Device Development Questions on using RIL on Smartphones
Hello, I am new to developing on the Windows Mobile platform and have just started writing an app for Smartphones running Windows Mobile 5.0. My first task is to get the cell tower ID that the phone is currently registered to. I searched MSDN and other discussion forums and found that I can use the RIL functions to get this information. My first confusion was wether RIL was even supported on Windows Mobile 5.0 since MSDN includes RIL and Cellcore under 'Windows CE Embedded 6.0'. However, judging by some messages on other forums, RIL does seem to be available on Mobile 5.0. So far, so good. I tried to write a simple app using RIL functions but couldn't build it. I can't find any RIL-related files in my SDK install. After some more searchi ...Show All
Software Development for Windows Vista Visual Studio compatibility with Vista
I currently run Windows XP Media Center Edition on my main development laptop. I have Visual Studio 2005 and Visual Studio.NET 2003 running side-by-side with no problems. Are there significant issues I should expect if I upgrade to Windows Vista Ultimate without reformatting the hard drive I don't mind doing so, but I really don't feel like re-installing all my apps all over again. If Vista does a really, really clean straight upgrade, I won't reformat. What do you think Bill This forum is geared for questions about development compatibility issues on Vista, and this is more a migration issue. You should try posting in the Vista Migration forum for a better response. http://forums.microsoft.com/TechNet/ShowForum ...Show All
SQL Server Inconsistent performance from queues
Hi everyone! I have a very brief question... I have 10 queues in my database and each of them are sent equal number of messages... There are instances where they execute/activate the stored procedures very fast but there are times where they don't, does anyone have an idea why this happens Thank you very much for taking the time to read my post. :) What is inconsistent, the activation of the first proc for the queue, or the activation of subsequent procs for the queue. How many messages are being sent to the queues What do the procs do ...Show All
Visual Studio Team System TF80070 Error in Microsoft Project
We are using Team Foundation Server Workgroup edition. I open up Microsoft Project and 'Choose Team Project'. Then I can 'Get Work Items' into the project, but it throws the error below before all of the work items are rendered (but they all show up after I hit OK). Also I can't 'Publish' or 'Refresh' the Work Items from Project. When I try, I get the following error: "TF80070: Team Foundation encoutered an error while performing the operation. It is recommended that you save your work and restart the application." Any help/ideas would be greatly appreciated. Also, could you please answer these questions... Does this happen no matter what work item you are trying to publish (and no ...Show All
Visual Basic searching for & highlighting text
hi, i am trying to make my application search for text (in a combobox called "comboboxfind") in a listbox ("showbox") when i click on a button (called "findnow") can someone help me Private Sub FindNext_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles FindNext.Click Dim loc As New List(Of Integer) Dim index As Integer = 0 If loc.Count = index + 1 Then FindNext.Enabled = False End If ListBox1.SetSelected(CInt(Val(loc(index))), True) index += 1 FindPrevious.Visible = True CommandsFindPrevious.Enabled = True End Sub ...Show All
Windows Forms Closing all forms but one
This can be a very simple question, but I can see the answer I have an Application (No Mdi) with one Main window that opens several non modal windows. When I hide the main windows I want to close every other window but Main. I already tried with foreach ( Form frm in Application.OpenForms ){ if (frm.Name != "frmMain"){ frm.Close(); } } But this loop can’t complete well because the form OpenCollection is modified. Any Sug thanks A quick and easy way would be to create your own Forms collection in your Main form and add each other form as you open it. Then just iterate through that collection when you want to close them. Then just clear the collec ...Show All
SQL Server Lock out user for database structure update
Is there any way to disconnect active users from a live database and lock them out till the database strucure has been updated Something like this should work for you. use <db> go --remove all active users from the database Alter database <db> set SINGLE_USER with ROLLBACK IMMEDIATE go --make changes to the database structure on this connection go --let users back in Alter database <db> set MULTI_USER ...Show All
