Ning's Q&A profile
SQL Server Management Studio disconnects with error Msg 0, Level 11, State 0, Line 0
I am trying to run the following: select * from sysindexes The operation begins and results are produced but after about 200 results, I get the error - Msg 0, Level 11, State 0, Line 0 - and it disconnects. This is a DB moved (restored) from SQL 2000 to SQL 2005. Any ideas would be appreciated. I am the "make do" DBA and not very good at it yet, I am afraid. Regards, Mike Yes, but only DBCC CHECKDB, with no options. I got the following (abridged): CHECKDB found 0 allocation errors and 0 consistency errors in database 'HCM_PROD'. DBCC execution completed. If DBCC printed error messages, contact your system administrator. I also got a lot of these: DB ...Show All
Visual Studio 2008 (Pre-release) Catch generic FaultException<TDetail> using TCP
Hi, I'm trying to use the technique described here: http://msdn2.microsoft.com/en-us/library/ms576199.aspx to catch a generic FaultException with a specific detail type. It works fine with HTTP, but with TCP I can only catch the FaultException class (that is not the generic one with a detail type specified). Why What can I do ******** Modified my code in ProvideFault and that fixed the problem. Hi herbjorn, It sounds like you were able to resolve your issue. Feel free to follow-up on this thread if you have additional questions about this. Regards, David ...Show All
Windows Live Developer Forums MAP IN DIV
Hello, I have a VE map inside a <DIV> and I want it to load automaticaly but I can only get it to load then you click on it. Any ideas! ! Thanks If you don't have access to the body tag then you can load the map the following way (using Speed's code): <html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <script src="http://dev.virtualearth.net/mapcontrol/v4/mapcontrol.js"></script> </head> <body> <div id='myMap' style="position:relative; width:400px; height:400px;"></div> <script> var map = null; map = new VEMap(' ...Show All
Software Development for Windows Vista Code to demonstrate error
Using the External Ruleset demo as a base, I constructed a class library that dynamically builds rules and runs them using the RuleSet.Execute method. Everything works perfectly until I tried to use the WorkflowMarkupSerializer to stream and restore rulesets. What I have found is that I can take a running ruleset (if then else) where the "then" is evaluated properly, stream it to xml, reconstitute it to the ruleset and the "else" will always be called. I have checked and double checked the syntax and values and everything says the test should succeed. I constructed NUnits that can demonstrate that the same rule runs correctly when dynamically built (using CodeDom), but once the rule is built using the WorkflowMarkupSerializer (I used a var ...Show All
Visual C# How to Create a URL syntax checker in C#
I would like to create a URL syntax checker so that can verify a cerrtain URL not a phish site. But I am also aware that some URL have valid syntax but is still a phish site. To answer this, I am looking for some measures on how to verify a URL and its correct DNS equivalent. I am doing a project of mine as one of our requirements and I have decided to create a web browser (already done) and I have included there 3 anti-phish tools. One of the tools is to check for URL syntax error. i have searched for such but has given me no good results that can be of any help to my project. I was hoping that some of the bright minds here could help me or enlighten me in my search. Thanks. I have read about an article about it. They use d ...Show All
.NET Development XSLT: default namespace problem
Hello, I am having trouble with the default namespace that is coded in the XML that I have downloaded from an Internet site. When I edit the XML with Notepad and delete the default namespace everything works fine. Here’s the beginning of the XML file: < xml version="1.0" > <xtvd xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" from="2006-12-22T14:55:06Z" to="2006-12-29T14:55:06Z" xmlns="urn:TMSWebServices"> and here’s the top part of my XSLT file: < xml version = " 1.0 " encoding = " UTF-8 " > < xsl:stylesheet version = " 1 ...Show All
Smart Device Development how to program logitech gamepad vibration?
hi, I am very new to the programming world as well as with the forum. I have a logitech gamepad vibration that i would like to use it for my game i created. I had programmed all the buttons but I have no ideas how to access to the vibration features of the gamepad. does any one know how to, or where i can find help thanks a bunch Are you working with Windows CE/Mobile devices ...Show All
Visual Studio Express Editions How to Code At C++ URL Button?
Hi guys i looking for help :D allways i nobish at C++ BUT I LOVE PROGRMMING NOW Question How do i Add URL Button To Winformapp i Know how to add the Button But What Script i need to add For when i pressing it i Going High way to www.google.com :D Plz!! Play with the LinkLabel control, it's Click event and it's URL property. Of course, you're programming in C++, not exactly akin to script programming. Good thing you love the job... ...Show All
Windows Forms How to let DataGridView always show the new row?
I have a DataGridView and i use for(...){... DGV.Rows.Add(logStringArray); ... } to add the DataGridView new row data line by line. As the new row increase, the DataGridView's new row will soon out of the control's height, i can not see the new row data. If I want to always follow to see the DataGridView's new row data, what can i do Thanks! Just setting the row.selected to true is not a good way, because the first row is still selected by default,thus there would be two row selected,and more rows selected every time you add a new row,so set the currentCell instead. As: private void button1_Click( object sender, EventArgs e) { DGV.Rows.Add(logStringArray); int index = this ...Show All
.NET Development How to pass the command to the other executable file?
Hi, I'd like to make a gnuplot to load a file and do some commands in the file. I would like to use C#. I found that I could use in C#: Process.Start("wgnuplot.exe"); to call and run gnuplot, but I don't know how to pass the command for the gnuplot. The command I'd like to pass to gnuplot is: load 'command.gp' where command.gp contains some commands for the gnuplot. There are qestions: Is it possible to pass the command to the other executable file If it is possible, how to do it Thank you very much, Komomomo Actually, "wgnuplot" is a "gnuplot" but for windows, I believe. Your question is: Is there accessible source code of wgnuplot If this is correct, I think ...Show All
Visual Studio What caused creation of THOUSANDS of tmp files in SourceSafe users directory?
I'm using Visual Studio 2005 and VSS 6.0d. Visual Studio and VSS were getting slower and slower, and my entire computer was too, if those apps were active. To make a long story short, the culprit was this: there were 65536 0-byte *.tmp files in the VSS <database>\users\<username> directory. That's, right 65K 0-byte files. This wasn't in the <database>\temp directory, but in a directory for users .. the one with the ss.ini in it. Anyway, I deleted 'em and all is well. But I'm a guy who likes to know 'why'. Anyone know -BillyB Alin, First lemme thank you for the reply. I don't seem to be getting email replies, even though when I click on the 'Alert Me' button. Sigh. Anyway, your explanation seems very p ...Show All
SQL Server Image .BMP only shows on first page, place holder on the rest
I am printing a batch of Explanation of Benefits and the image only shows on the first page for each person. If they have additional pages all I get is the little red X. Thanks, Phil I wasn't clear on that from the initial post. It really depends on the report layout. From what you say I'm assuming that you have a list control that's grouped by person with page break option checked. In addition to that some users data spans multiple pages. What's confusing is that you mention that you get a red X (image place holder) but no image. Where is the image placed In the header, the body, a list control To my knowledge there are 2 things you can have repeated when paging: The overall report header The ...Show All
SQL Server Percentage/Proportion
I'm new to Analysis Services 2005 and MDX. I'm trying to create a calculated member that contains the proportion of cases (using [Measures]. ) for each dimension in the cube. The following code gives me the percentage of the total number of members in each dimension. This is what I need for attribute hiearchies (single-level), but for user-defined hiearchies (multi-level) I want the percentage of the above level. For example, in a time dimension, I want the proportion of cases in each year (this works) and the proportion of cases in each quarter of a given year (this doesn't work). CALCULATE ; CREATE MEMBER CURRENTCUBE .[MEASURES].PercentCases AS CASE WHEN IsEmpty ([Measures]. ) THEN NULL ELSE (( [DimLocati ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Use XNA to make a map maker?
How can I incorporate XNA into a Form so that I can make a map builder rather then make the whole interface inside XNA , I would like to be able to use windows controls. Thank you Even if you're doing 2D maps, having the XNA rendering in your map editor means you don't have to rewrite your rendering code for the game. Anything to lessen the development and make it easier is a good thing IMO. ...Show All
Visual C# How to get Object size in memory
There is cache(a queue object) in my application.now,I want to know how much space in memory is being taken up by that object at runtime. Marshal.SizeOf(...) Is it realy size of object in memory No, Marshal.Sizeof() is the amount of memory required to marshal an object to/from native code. The size of any given object is undefined and cannot truly be determined in .NET. outside of a debugger. http://channel9.msdn.com/ShowPost.aspx PostID=231084 has a thread discussing similar. ...Show All
