cr4sh3d.r00t's Q&A profile
Visual C# Timeout expired in SqlCommand.ExecuteNonQuery (insert) for SQL Server 2005
Hi, I am upgrading from VS2000 & SQL Server 2000 to VS2005 & SQL Server 2005. One of my massive programs has an exception after a lot of inserts to a certain table during insert via SqlCommand.ExecuteNonQuery: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. trace: at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) ...Show All
.NET Development MemberAttributes.Abstract (System.CodeDom)
Why thid code doesn't generate an abstract class CodeTypeDeclaration abstractClass = new CodeTypeDeclaration (); abstractClass.Name = "Service" ; abstractClass.Attributes = MemberAttributes .Abstract | MemberAttributes .Public; abstractClass.IsClass = true ; The generated code: public class Service { } Sorry, found it. abstractClass.TypeAttributes = System.Reflection. TypeAttributes .Abstract | System.Reflection. TypeAttributes .Public; ...Show All
Windows Search Technologies SIMPLE instructions to REMOVE Windows Desktop Search
I have written to MS without receiving a simple, non-MIS/IT description of how to remove this horribly intrusive add-on, that installed itself DESPITE clicking on DO NOT INSTALL. So (and without getting into the politics of who is behind this), all I want is the easy way to remove this program. I have gone into Add/Remove Programs and YES, clicked on Show Updates, but there is NOTHING clearly identified as Windows Desktop Search. ALSO, and most important, I DO NOT want to disable or screwup other programs/software. HELP. What is the point of having multiple users with passwords if ANYONE can access the entire history of EVERYONE ...Show All
Visual Basic How get the difference of TIME
I have a problem on how to get the difference of time (09:24:00 PM - 09:00:00 PM) Is there any way to solve this Can u help me please:( I am using Visual Basic 2005 for this program, how can i do this You can use either the DateDiff function or the TimeSpan structure. I've included a simple example of each: Dim d As Long d = DateDiff(DateInterval.Minute, #9:00:00 PM#, #9:24:00 PM#) MsgBox( "The difference is " & d.ToSt ...Show All
Visual Studio Team System Failed to open a vsp report
After my program exits, a progress bar is shown indicating that the analysis is executed. At the end of the analysis, a dialog appear saying that "Error VSP1743: DIA symbol engine not registered.". If I open the vsp file directly, the same error appears. Lei, This is the first time that I have seen this issue from a customer. Could you possibly answer a few basic questions about your scenario to help me in dianosing this issue 1. What type of application are your profiling 2. Are you using sampling mode or instrumentation mode 3. Are you running the retail release of VSTS:For Developers or an earlier release ...Show All
Windows Forms Size of controls in design view
I worked all morning in Visual Studio.NET. Everything was normal, just like every other day. I started a new project just before lunch. Just got started on the UI of a few pages, not much VB yet. When lunch came, I minimized all my windows and came back about an hour later. When I maximized Visual Studio, everything in the design view of my new pages was HUGE. I ran the application to view in browser, everything was half as big as in design view. Out of curiosity, I opened an old project that works perfectly and I know I developed it with the size of controls being the same in design view as in the browser. These pages were HUGE as well. I s ...Show All
Windows Forms webbrowser and connection information
hello! i'm trying to use the webbrowser class to customize web-pages rendering and everything was ok. now i want to extend my component so to have more information about pages and redirects that internet-explorer performs while browsing. for example i would like to be informed everytime an image is downloaded (not so important in my case) or a redirect is performed because of a 302 message(very important). for each page that is going to be downloaded i need the referrer and other stuff like the method used to get that page (get or post). I saw i can get the referrer by casting the WebBrowser.Document.DomDocument to IHTMLDocument2 ...Show All
Visual C++ linker error with glut
Hi mate, I use c++ visual studio 2005 excpress,have a problem with linker,glut.lib and glu.lib...i copy glu32.lib and glut32.lib opengl32.lib in visualstudio2005/lib/ dir and the .h file in visualstudio2005/include/Gl/....now in visual studio in property page menu linker->input->"Additional Dependencies" item add :"opengl32.lib" "glu32.lib" "glut32.lib".....compile and: primitiv.obj : error LNK2019: unresolved external symbol _glutSwapBuffers referenced in function _display primitiv.obj : error LNK2019: unresolved external symbol _glFlush referenced in function _display primitiv.obj : error LNK2019: unresolved external symbol _g ...Show All
Visual Studio Team System Error after deleting Work Item field
I wanted to report that after deleting a field from a temporay Work Item I was working on, the TF Server started throwing errors about every hour. I used >witfields delete /s:MyTFServer FieldName I see the post by Sarah Cameron at http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=171684&SiteID=1 describing the exact same problem. I see the answer suggests a rebuild, which I am about to attempt. I just wanted to report that it happened to me, so MSFT can track that it happened and it wasnt an isolated incidence. Here is the error in my event viewer An unexpected condition has occurred in a Team Foundation compo ...Show All
Visual Studio Express Editions Multiple MsgBoxes
In my program I have If x < 5 Then MsgBox( "Error: Not enough songs. Song count: " & CStr (x) & " Songs required: 5" ) End End If But when x < 5, the screen fills up with MsgBoxes continuously until I manage to click one. How to I only make one box appear Thanks Hi! I can't see from your code that this would in itself result in multiple messageboxes. Could you post some more of the code that this code exists within One more thing. You may want to start using System.Windows.Forms.Messagebox.Show instead of Msgbox. Though they ...Show All
Visual Studio Team System Build errors when creating unit test with wizard
I just installed VS 2005 RC to investigate using the automated unit testing but I can't get the wizard generated unit test to compile. It seems like there was an install issue or something. Here are the build errors for a stock wizard generated unit test in CPP: CLogicalServerUnitTest.cpp .\CLogicalServerUnitTest.cpp(6) : error C3083: 'VisualStudio': the symbol to the left of a '::' must be a type .\CLogicalServerUnitTest.cpp(6) : error C3083: 'TestTools': the symbol to the left of a '::' must be a type .\CLogicalServerUnitTest.cpp(6) : error C2039: 'UnitTesting' : is not a member of 'Microsoft' .\CLogicalServerUnitTes ...Show All
.NET Development can ADO.NET use JDBC to get to the SqlServer?
Hi Guys I'm trying to connect to SQLServer using JDBC. I have already installed the JDBC driver for SQL server. I'm hoping to be able to connect via ADO.net. I've tried 2 things so far: 1) I've changed the connection string so that it specifies the microsoft jdbc driver however the SqlConnection object doesn't like this string. (System.ArgumentException: Keyword not supported: 'jdbc:microsoft:sqlserver://localhost:1433;databasename'.) Here is the code: Dim dt As DataTable Dim conn As SqlConnection Dim da As SqlDataAdapter &n ...Show All
Visual Studio ADO.NET (XML) Datasource Missing
After I installed SQL 2005 Express I lost the ADO.NET (XML) datasource option, I am using Crystal Reports v9. Does anyone know how I can get it back I have tried unistalling SQL 2005 Express, Crystal Reports, and Visual Studio(2003), and then reistalling Crystal Reports and Visual Studio. Thanks Hello I have been struggling with this problem all morning and I have just noted your suggestion about creating the crw32.exe.config file. This is probably me being stupid, but not sure whether I've done the right thing as it's still not bringing up ado.net. I went into notepad ...Show All
Windows Forms dynamically format column data based on its content
Hi, All. One of the specs calls for a special formating for this data grid control that I am working on. They want to dynamically set the background color of a column in the datagrid based on its content. For instance, the column name is Priority, and will have value=High, Normal or Low. When it is High/Normal/Low, the color should be Red/Green/Yellow, respectively. Is this doable Which event is the right place to use I have these lines working right now. Thanks! Dim ds As DataSet = SqlHelper.ExecuteDataset(connString, CommandType.StoredProcedure, "OP_getCLG3", arParms) 'insert code here to dynamically set ...Show All
SQL Server SSIS Variables not changing value?!
Greetings my SQL friends, I have a very simple package which consists of a SQL Task component and a Script Task. The SQL Task retrieves a single value from 1 row table in one of my database and assigns that value to a variable. The Script task simply outputs the value of the variable in to a message box. I know, it's all simple stuff (I am trying to master SSIS ) The problem I have is that when I change the value of the column in my table, the value of the variable is not changing when I re-run my package. It seems to be the same value every time. What am I doing wrong ! Your help would be much appreciated. Hi dreameR, Is your SQL ...Show All
