Surjeet Thakur's Q&A profile
SQL Server nvarchar datatype causes hungarian characters to not be displayed correctly.
I have a hungarian character which looks like a lower case o with two single quotes on top of it --> I have this character stored in two table the datatype of the column where this is stored at is varchar in one table and nvarchar in the other. When I try to view the field in enterprise manager the character appears as it should in the 2 tables, but when I use a jsp page deployed on weblogic to look at this character the one stored in the column of type varchar displays perfectly, but the table in which the column is nvarchar the character on the jsp page appears as a Q instead. Any inputs on how to correct this issue will be much appreciated. Any changes to the character set on the html / jsp pages has no affect on the resu ...Show All
Visual Studio Team System Setting default WorkItem field values during creation of New Team Project
Hi, I've created a creation wizard that will gather information from the user when they create a new team project. I'd like to be able to set some fields of work items when they are created to the values that were entered in the wizard during project creationg. For example, during the wizard a user will enter the project category along with name. Each bug entered will also have the project category saved in a field that is also a dimension. I don't want the user to have to enter the project category when entering bugs. Is there any way to get the information from the wizard back into the Team Project XML Or some way to change the Process template tasks lists during project creation to have the custom field default to a certain va ...Show All
Visual C# missing app.config in vs2005
Hi, I'm wondering how can i open (or create) an appconfig in VS2005. As I remember, in VS2003 it was created with the project, but in VS 2005 it is not (or somehow it is hidden). How can I create/access it (Or there is a new way in VS2005 to manage some settings ) Thanks Hi, sorry for bothering again, but I tried use the ConfigurationManager.AppSettings property but it returns a nameValueObject with 0 elements (I've inserted some elements in the app.config). What I am doing wrong Thanks again ...Show All
Windows Search Technologies fast searching/indexing service
As I am now using WDS 2.6, do I still need to have fast searching/indexing service enabled If not, how do I disable Indexing Service and does it maintain a file somewhere that could be deleted to free up disk space yes, I am referring to the XP Indexing Service that is optional. I searched for a while and found some MS documentation that showed how to turn it off. Thanks. I think I'm OK for now. ...Show All
SQL Server How do I do an Unattended install of "MSDE 1.0 sp4"?
I am trying to upgrade an MSDE 1.0 db with the Service Pack 4 patch but I need to do either a Silent or Unattended install. Does anyone know how to do this Does anyone know the command-line command to do this I tried using... sql70sp4.exe -a -f1 "unattend.iss" ....but that didn't work. It popped up a window asking where I should extract the contents of the .exe (that shouldn't be appearing either) and then after it extracted it didn't do anything else. Any help is greatly appreciated. see if this helps http://support.microsoft.com/default.aspx scid=KB;EN-US;q233312 ...Show All
Visual C++ OCX control right click context menu-cursor changes to crosshair
I have an OCX control which has a context menu.When i right click the control to get the context menu the cursor changes to crosshairs. I want the original arrow cursor.Any solutions ...Show All
SQL Server SQL SERVER SETTINGS
When SQL Server and Web site are both on same machine, it runs fine, can get data and display in web page. but when trying to get data from remote SQL Server, it gives error. What's the setting for SQL server configure and security settings in different versions MS SQL 2000 | MS SQL 2005 ============================================== Framework 1.x | Framework 2.0 | Thanks alot. Please provide some setting help for the OK, perhaps you are using another port than the default one 1433 and you disabled SQL Browser. This service acts like a redirector service. Any request comming in f ...Show All
SQL Server SQL Server 2005 Developer Edition Automated install.
I am working on a automated install (simulated with a batch file first) and I am having issues when I trying to install SQL2005dev, then SP1 and then the hotfixes. The main issue is SP1 returns to the batch file while it is still running. Does anyone know how to silently run SP1 and make it wait until after it is installed to continue (on to the hotfixes) Example batch file: "SQLDEVSEL\SQL Server x86\Servers\setup.exe" LOGNAME=C:\setup\setup.cab /settings %temp%\sqldevsel_1.ini /qb "sp1\SQLServer2005SP1-KB913090-x86-ENU.exe" /quiet /allinstances /norestart "Hotfixes\SQL Server x86\sql2005-kb918222-x86-enu.exe" /quiet "Hotfixes\SQL Server x86\as2005-kb918222-x86-enu.exe" /qu ...Show All
Visual C++ Mixed mode finalizer bug in C++ class destructor with std::vector member
I have discovered a bug when finalizing a CLR class which deletes a data member which is a pointer to a C++ class, and the C++ class has a std::vector<ANYTYPE> as a data member. When this occurs an exception is thrown, with the message in the debugger being: "An unhandled exception of type 'System.AccessViolationException' occurred in msvcm80d.dll Additional information: Attempted to read or write protected memory. This is often an indication that other memory is corrupt." Breaking in the debugger shows that the exception is occurring in the stack trace from the vector's destructor code, with the last source code trace being line 45 of xmtx.c in an _Mtxlock routine. Tracing the bug shows that the finalizer has executed afte ...Show All
Visual Studio Team System Missing merge options on first merge
Getting some strange behaviour from merge/resolve here... 1 main dev track $/XXXTestA/Dev 1 branch created from a subset of Dev $/XXXTestA/5.30.xx Check out 1 file on Dev, make a change, check out same file on branch, make a change in the same area. Open up a VS2005 command prompt and run the following command: (In a workspace where both Dev and 5.30.xx is mapped) tf merge /noprompt /recursive /version:C412~C412 $/xxxtesta/dev $/xxxtesta/5.30.xx Where 412 is the changeset created by the checkin on Dev This gives me a merge conflict (as expected). Now I do tf resolve to fix the conflict, but when the resolve window comes up, the "merge changes in merge tool" option is disabled, why The only available o ...Show All
Visual C++ Hotkey For Build Ouput Go To Next Message
I know this should be simple, but I can't find the hotkey or how to assign a hotkey for "Go To Next Message" in the build output window. The scenario: I press Ctrl-Shift-B to build my solution, I have build errors, and I want to press a key to cycle through these and fix the errors without fixing the error and then going to my mouse and selecting the next one. In Visual Studio 2005 the default key for mentioned operation is <F8>. In Options dialog it is called Edit.GoToNextLocation . I hope this helps. ...Show All
SQL Server SQL Configuration Package - C# app
Hi all, Hopefully a simple question. In my c# application i can call ImportConfigurationFile(<str>) to import an xml configuration file. How do i go about importing configuration settings from a SQL configuration package I have created this but see no way to load it. I'd prefer to use the config file created in the SQL database. Any help would be most appreciated. Many thanks, Grant Would i be correct in saying that the configuration settings are automatically loaded when the package is executed in the order that they are defined in the package Configurations screen If this is the case then the problem i am having is elsewhere. I am attempting to launch my SSIS package from a c# application. The pro ...Show All
Visual C++ Runtime access violation due to automatic conversion to std::auto_ptr_ref.
I have a problem with a class foo, which contains a member std::auto_ptr<derived>, where derived extends class base. The problem arises when I try to assign a 'newed' pointer to an object of type derived to the (previously uninitialized) std::auto_ptr<derived> member, then dereference the auto_ptr with operator->, and via its init method, call one of the virtual function members of class base: #include "base.h" #include <memory> class derived : public base{ public: void init(someargs) { assert(!base::isnull()); /*crashes here, apparently because of jump to invalid address*/ } }; class foo{ public: foo(){} void init(){ m_derived = new derived(args); //compiles with no warnings at level 4. m_de ...Show All
Visual Studio 2008 (Pre-release) 3D cube from code
I'm having problems creating 3D cube from code so that cube 'faces' display material right way around. I could create a cube by making 6 planes in ZAM3D and using transforms to arrange them as a cube. this is not really nice though... check the sample code below. There's a lot of samples in the Windows SDK samples but when I use VisualBrush as a material on the cube faces, material is mirrored, wrong way around, etc, etc.. If anybody has time, please let me know how to do it or give example code. thanks sample: <!-- cube side geometry --> < MeshGeometry3D x:Key = " SideGeometry " Positions = " -1,1,0 -1,-1,0 1,-1,0 1,1,0 " TriangleIndices = " 0 1 2 0 2 3 " TextureCoordi ...Show All
Visual C# How to keep base class methods private in a derived class
I am writing an API (C# class library) to distribute to users of my product. I derive this class (derived.cs) from a base class (base.cs) so that it is a wapper for the base class so that the base class is hidden. I have declared the methods in the base class as protected so that my derived class can have access to them. However, when using the the resulting .dll as a reference in another application the name of the base class, plus all of its protected methods are exposed (in the object viewer). I have also tried to declare the base class as protected, but apparently this is not allowed. I would prefer that my customers not be able to see the base class protected methods. How can I hide the name & methods of the base class ...Show All
