Robain's Q&A profile
SQL Server after set new_broker, it works for half hour and don;t work anymore, please advise, thanks!
I use ASP.NET 2.0 and SQL 2005, the SQLCacheDependency didn't work stable for me, it usually works and after a while, it stops working. Recently, It doesn't work. Today I reset service broker by Alter DB set new_broker It seems all work, but too early to be happy, it doesn't work now anymore. I don't see any record in sys.transmission_queue And I don't see new entries in sys.dm_qn_subscriptions neither when I modify a record which bind to SQLCacheDependy. I see some errors in log like Message The query notification dialog on conversation handle '{8F8CC642-6340-DB11-8F09-0014227B7B80}.' closed due to the following error: '< xml version="1.0" ><Error xmlns=" http://schemas.microsoft.com/SQ ...Show All
Visual Basic Change the 'Selected' Day in the 'MonthCalendar' object
Hi - I'm after a way to alter the 'selected' day (and value) of a monthcalendar object. For example, have a MonthCalendar object on your form and below have a NumericTexbox that alters the 'selected' day and value on the calendar. Cheers, Nathan. I believe you can get or set the start date or end date. Lets take the start date property, selectionStart. you basically create a datetime object giving it the new values such as year, month or day. So say if we had a numerictextbox and it was to set the month. We simple create a new datetime object and get the current year and day chosen and alter the month to the numbertextbox: Me.theMonthCalander.SelectionStart = new DateTime(Me.theMonthCaland ...Show All
Visual Studio Team Explorer Client question
Hi all! I have installed Team Explorer Client within Visual Studio 2005 Professional in order to manage a project that is hosted by CodePlex. In the past days I have made some troubles by renaming, moving and deleting the projects of the solution which is under source control. Now, in the Visual Studio "Pending Changes" window there are entries concerning files that, actually, doesn't exist anymore in my solution. If I want to perform a corrent check-in, I must disable the checkbox near to these files, otherwise I obtain an error message. It is possibile to remove these entries from the "Pending Changes" window Thanks in advance. Marco Minerva, marco.minerva@tiscali.it Yes, there is a "Filter By Sol ...Show All
Visual Studio Adding (and editing) .suo files to source control
Hi, I hope I've asked the question at the right place. Our project uses a different than default working directory, so this has to be set in Debugging > Working Directory for the clients. The problem is the working directory is saved in the hidden .suo file which one cannot edit by hand so easily. Is there a way of creating a new .suo file with only the binary data for the working directory in it, add that to source control I presume on checkout VS will then reconstruct all other paths and stuff in there for the users. Solutions either for VS2003 or VS2005 would be great. Donnu why that file has to be binary though, if it were like the .sln or .vcproj files it would've worked. Unless you've writte ...Show All
Software Development for Windows Vista Where is rsh?
Hi, I'm testing the use of Vista (Ultimate, for now) as a dev. platform in an existing complex* mixed environment. The biggest road block so far is that Vista doesn't seem to have rsh. We rely on our Windows machines to be able to run Windows scripts that rsh to Unix servers for key bits of info. (OK, maybe not the optimal method, but some of these scripts have been evolving for a LONG time.) I can see having rsh unavailable by default for security reasons, but we still need it on our intranet. What I have tried: - I have checked the KB, FAQ, and searched the internet in vain. - I have installed the SUA components and confirmed that rsh works great from a Korn shell; sadly, this is no help in a normal command window. If w ...Show All
Windows Forms Unformat Cell Data
I have a custom cell which inherits form DataGridViewCheckBoxCell and paints an icon. My dgv is bound to a business object. This cell is attached to a property of type SaveStatusPacket. The SaveFlagState controls the checkbox. When I format the data into the cell using the code below, everything works great. I, however, cannot get the databack out when the user makes a change. Everything I have tried results in a data error. How do I catch the user change, unformat the data, and return an object of type SaveStatusPacket Public Structure SaveStatusPacket Public SaveFlagState As Boolean Public FileReadOnlyState As Boolean Public Sub New(ByVal SwSaveFlag As Boolean, ByVal FileReadOnly As Boolean) Me ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Scorched Tanks for Windows (and 360)
Hey, Continuing my habit of starting more games/projects than I can ever hope to finish, I decided on Thursday I'd write my own version of Scorched Tanks in XNA. What I've got so far is by no means close to being a game, yet, you could probably "play" around with it for 5 minutes or so, so call it what you will. It's working on 360 and Windows (without code changes of course) which is good news. What I've zipped is really just a work in progress for people to play around with and ask any questions (should there be any). The code is, as with all works in progress, fairly atrocious, so I'll keep it to myself for a bit but if by a miracle I've done something and you want to know how I'll happily tidy up the relevant bits and post it. ...Show All
SQL Server Disarming IDENTITY generation
Ok, suppose I have created a new table with an Identity column, but I want to load the table from an existing table and I can’t let SQL Ev reset the Identity values. In SQL Server I can turn off Identity generation using SET IDENTITY_INSERT biblio.dbo.authors OFF Is there an equivalent in SQL Ev My next question is (if this does not work), can I use ALTER TABLE to disarm the Identity value and re-arm it after the load I would like to know how can I make it work using the alter table statement since I tried and it did not work.I tried using the SQL Server Editor in Visual Studio and at runtime .None of those options seems to work. Thanks in advance ...Show All
SQL Server How to calculate the percentage?
In my cube, I've a date dimension and a time dimension. I would like to know how can I calculate the percentage of order count for a specific time I can get this. Hour 11/6/06 11/7/06 9am 60 10 10am 80 10 11am 60 20 But how can I get this. Hour 11/6/06 11/7/06 9am 30% 25% 10am 40% 25% 11am 30% 50% I would like to use the calculation feature in available in the cube. How can I do this Thanks! Hi Deepak, I'm using AS 2005. The problem that I don't understand what [DimTime].Parent is pointing to. The Time dimension and Date dimension doesn't have any direct relationship in my cube. Is there any design fault Regards, Alex ...Show All
.NET Development Webservices client: changing the Namespace
I'm building a client application witch will comunicate through soap with a webservice. The soap message i now sent: <soap:Envelope xmlns:soap=" http://schemas.xmlsoap.org/soap/envelope/ " xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance " xmlns:xsd=" http://www.w3.org/2001/XMLSchema " xmlns:wsa=" http://schemas.xmlsoap.org/ws/2004/08/addressing " xmlns:wsse=" http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd " xmlns:wsu= " http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd "> <soap:Header> <wsa:Action>urn:orxserver#bedrijfsVoorraad</wsa:Action> <wsa:Mess ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Best way to extract vertex/index data from Model loaded via Content pipeline
I have a mesh loaded via the content pipeline, and want to extract all the vertex/index data from it to build a physics mesh for collision. However if i try to GetData on the VB (not tried with the IB yet), I get an exception of: "You cannot call GetData on a resource that was created with ResourceUsage.WriteOnly." So is there a way to either clone the data into a non-Write-only VB so i can extract it Or some way of loading the Model in a non-writeonly way N By "crossed quads" i meant the indices (or vertex order) is wrong in a way that, for 4 vertices and 6 indices supposed to form a quad - creates two triangles crossed with eachother. I don't understand your lookup procedure tho; T he result of the abo ...Show All
SQL Server Invalid non-ASCII character conversion over JDBC to Solaris client
Hi, I'm working on a database conversion from Sybase to SQL Server 2005 and have hit a wall with a character conversion problem when reading non-ASCII characters (encrypted password) via JDBC. My application runs on Solaris and accesses a SQL Server 2005 database via the Microsoft JDBC driver. The server was unfortunately specified as having a SQL_Latin1_General_CP1_CI_AS collation at installation time, and the database being accessed has taken this default. After creation the data was migrated across via DTS. The invalid character is a dagger ' '. When read over JDBC it is converted to a question mark ' '. In my original environment a Sybase database was accessed via JDBC driver from Solaris and the correct value was return ...Show All
Visual Studio Express Editions Problem with existing any namespace
Hi All. I've got a little problem with creating my own namespace and making them visible i whole project. For Ex. I created new project "Windows Form Application" then added Class (test.cpp and test.h) >>>-----------test.cpp -----------------> #include "stdafx.h" #include "test.h" <-----------test.cpp -----------------<<< >>>-----------test.h -----------------> namespace test{ //using namespace System; public ref class Format { public : Format( void ); int koncesja( int z); }; int Format::koncesja( int z) { return 1; } } <-----------test.h -----------------<<< In Class View this nam ...Show All
Windows Forms Use progress bar as listviewitem
Hi, I am trying to make an MSN like application, and now I want to show the progress of file transfer,, so my idea is to use a listview and add new item everytime a new message received or file transfered. So I am thinking to use progress bar inside my listview. Can someone tell me the best way to do this. Or should I not use listiview for this purpose Anyhelp will be great ::D sorry for my english.... ...Show All
Visual Basic Where to ask ? re VB 6
I want to ask a question about a possible memory leak I am seeing in VB6 but all the forums say "not for VB6". Any direction what forum I can use Thanks, Curt Try this: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=478161&SiteID=1 ...Show All
