Deepthi Rao's Q&A profile
Visual Studio How to add a reference node in a custom project
In our VSTS SKU (VSTS for Database professionals), we have sql server projects which contain sql code and generate .sql file on being built. At present there is no reference node appearing inside the project node. Wonder what exactly is needed to have it there. I expect to add other database projects references to a database project. Thanks Sachin Kumar (MSFT VSTS-Data) Hi Sachin Kumar, Take a look to open source project WiX http://wix.sourceforge.net/ . It includes Votive (Visual Studio package - WiX project integration). Votive uses custom references. So you can find the sample of custom references implementation. Good luck! ...Show All
Community Chat any help for finding out CPU temperature? and RAM usage? in Dot net?
any help for finding out CPU temperature and RAM usage in Dot net thx.. We andrew, the DLLs you refer aren't MS DLL's they come from the boad manufacturer. The real answer is that CPU temp is just not available unless you have a driver/dll combination. Ram usage on the other hand is quite easy. See an example of the performance monitor in show and tell. But Biche is quite correct, this is not the place to make such an inquiry. ...Show All
Windows Forms How is {Name} property handled in designer?
I have some strange things happening with my controls concerning the Name property. I have a custom user controls in a custom forms designer. If I change the {Name} property of my user control through a Property Grid control, it doesn't call the set method of the UserControls Name property. The name is set, because the Property Grid recognizes the new name, but if I reference the controls overridden Name property , it still holds the old name. It is causing me major problems. It is really strange. Here is what I'm seeing. This method removes a control that I have from an internal array. It is called by the Change service when a component is removed. public void RemoveControlFromControlArray( DisplayObjBase dob) { ...Show All
.NET Development Switching from access to sql server express in vb2005
Right now im using an access database wich i connect to with oledb in VB2005. Now if in my whole program i want to change the database to sql server, is enough to just use sql instead og oledb (for example sqlcommand instead of oledbcommand, and slqconnetion instead of oledbconnection) Or is there something else you need to be carefull with To my understand, the sql language is almost the same so that shouldnt be a problem.. Hi cverdon, thank you very much for your kind answer. My problem is the following: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1159212&SiteID=1 Thanks again! ...Show All
Game Technologies: DirectX, XNA, XACT, etc. General Usage of Vertex Buffers
Apologies if this seems a really obvious question but what's the recommended way of using VertexBuffers I've got some game code with a 'renderer' class for each game object, each renderer class currently has it's own vertex buffer as a member variable which obviously means that I could end up with a lot of them. It's not causing me any problems just yet but I'm worried it will later. I guess my question is really whats the lifespan of a vertex buffer and should they be a pooled resource or can I just keep on creating them as needed until memory runs out Thanks, m< While allowing each object to have its own vertex buffer can and is done, the call to SetStreamSource (to bind the vertex buffer to the str ...Show All
SQL Server SP1 Cauthion: Problem with Execute SQL Task...
FYI... We have been waiting to install SP1 but got it forced by MOM inadvertently the other day and found a serious bug that caused us to get rid of SP1 for now. We have a task that reads a string from the database (TEXT column but also affected VARCHAR) and places that into a variable for use. The string when larger than 500 bytes would get some special characters placed in there when it was not visible from the data in the database using Management Studio. I worked with MS to confirm this issue and they are currently working on it now. We were always using XML output on an OLE DB connection with the FOR XML AUTO. Fred ...Show All
Gadgets people spamming live gallery ratings and down rating not mensioning any names (BAMKEE)
Iv'e noticed that a couple of people are creating sidebar, live and myspace gadgets and spamming other gadget search tags with their own email addresses and gadgets and stuff. These people are also Down rating other live, myspace and sidebar gadgets to get their gadgets to the top of the lists. one person in particular is Bamkee who posted 3 gadgets almost identical and had 5 star average out of 20 ratings before he had even had 20 downloads. See for yourself: http://gallery.live.com/Author.aspx a=46ba5aeb-394c-4346-a7dd-e06825791322&l=1 This causes problems for people with genuine ratings. Me and my brother developed a sidebar gadget for ebay which has been downloaded 5100 times since november and had 56 genuine ratings until ...Show All
Visual Studio Team System Project can not load while opening my Solution
I am working for a while with team Foundation Server Source Control, but this morning the Projects don't load with the following message (Interface not supported): --------------------------- Microsoft Visual Studio --------------------------- Unerwarteter Fehler. Es wird empfohlen, die Anwendung so schnell wie moglich neu zu starten. Fehler: Schnittstelle nicht unterstutzt Datei: vsee\internal\inc\vscomptr.inl Zeilennummer: 256 --------------------------- OK Abbrechen --------------------------- I can not reload the projects, so I can not work. If I select the Environment Page in the Option Dialog of the Source Control (Menu Extras) I get the errormessage "cannot load the Propertypage" (in german). The Reinstallation of Team Explor ...Show All
SQL Server Calculating the average over time
Hi all, As a follow up for my previous post about calculating the number of active subscriptions at any given moment ( http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1147061&SiteID=1 ) an other 'newby question'. With the measures from my previous post I managed to make two calculated members: [ Active subscriptions SoP] and [Active subscription EoP] (SoP = Start of Period; EoP = End of Period). What I would like to create is an other member which calculates the average number of active subscriptions for a given period, so I can create an pivot like the one below. At the question marks ofcourse should be the average for the entire week. This however is not equal to (10843 + 10866) / 2 = 10854.5 but equals (10854 + 108 ...Show All
Visual C# Generics and Virtual Function Calls
My question is regarding to generics and optimizations involving virtual function calls. Specifically lets say I have an interface IKernel. Now lets say I define a class - Machine<TKernel> where TKernel: IKernel Now if I call any function on a member variable that is of type TKernel the compiler emits a callvirt instruction on the IKernel interface. I also realize that a callvirt instruction could be optimized by the JIT compiler since it knows the type of the object. But does it I am dealing with CPU bound code here and would like to avoid virtual function calls if possible. I also noticed that an overloaded indexing operator also emits a callvirt. Is this optim ...Show All
Software Development for Windows Vista Custom Property Conditions
Hello all, I have a question regarding the TreeWalker sample and UI automation in general. Say, for example, I have a UI that contains several panes, with the automation ID's BrowsePane1, BrowsePane2, ..., etc, and I want to retrieve all of these. Assuming that I have an AutomationElement rootElement, I want to call rootElement.FindAll(TreeScope.Element | TreeScope.Descendants, condition), where my condition is such that I can retrieve all the elements that have an automation identifier that begins with "BrowsePane". Essentially, I want my condition to be that AutomationElement .AutomationIdProperty.ToString().StartsWith("BrowsePane") evaluates to true. Is there any way to create an object of (base)type Syst ...Show All
Visual C++ strange linking error with operator overloading
Hello everyone, I am meeting with a strange linking error regarding to operator overloading. I am creating a C++ static lib, and then linking it with a C application. Here is the error message and source codes, I am using adapter.cpp, adapter.h, foo.cpp and foo.h to create a static lib called foo.lib, then link it with a C application (goo.c). There is no problem to generate the static lib foo.lib. Any comments to solve this link error error LNK2019: unresolved external symbol "private: class FooNameSpace::Foo __thiscall FooNameSpace::Foo::operator=(long)" ( 4Foo@FooNameSpace@@AAE AV01@J@Z ) referenced in function "private: __thiscall FooNameSpace::Foo::Foo( long)" ( 0Foo@FooNameSpace@@AAE@J@Z ) fatal error LNK1120: 1 ...Show All
SQL Server need help to connect to remote server from client
Hi, I have a small problem. I have installed MSAS2005 (Analysis services) and Client components and Books online from the advanced option say machine A. I have a MSAS2005 server running on a remote machine say B. I wanted to connect to the server on B from A. When I am trying to connect I am not able to see the cubes on machine B. Things that I have done. Machine A Installed Client components, books online, Analysis services. Haven’t processed the cube. Machine B Have installed everything and have processed the cube. Is it possible to connect in this way. Or have I missed anything. Please let me know. Thanks in advance for the assist. Boudhaditya Hello Boudhaditya, ...Show All
Visual Basic Checkbox Databinding
Dear All, I'm wondering why the following code does not give any response. Can anyone explain or correct me please If dsProductDetail.Tables(0).Rows(0).Item("Discontinued").ToString = CStr (0) Then chkDiscontinued.CheckState = CheckState.Checked Else chkDiscontinued.CheckState = CheckState.Unchecked End If Or This code If dsProductDetail.Tables(0).Rows(0).Item("Discontinued").ToString = CStr (0) Then chkDiscontinued.Checked = True Else chkDiscontinued.Checked = False End If Thanks in advance It is resolved. chkDiscontinued.Checked = CType (dsProductDetail.Tables(0).Rows(0).Item("Discontinued"), Boolean ) ...Show All
SQL Server Is ProcessAdd done within a transaction mode?
Is ProcessAdd done within a transaction mode This question is very basic. When you do a ProcessAdd, is it within a transaciton mode I mean, if the ProcessAdd fault and stop when it meets a mistake, the records before the midstake will still be in the cube or not. Thanks. Thanks, Mosha. But I dont think so. You said I need to wrap everything into one transaction, and take the first task to begin transaction, and last task to commit it. But, the transaction your begin is in Sql server, not in Analysis Service. How could the transaction in Sql Server affect the Analysis Server's Process Or you mean to start a DTC transaction You can't start a DT ...Show All
