KesPeti's Q&A profile
.NET Development ADO.NET SQL query statement
I seem to remember reading somewhere that ADO.NET Whidbey allows us to have a sort of parameterized text query. In other words, I could use CommandType.Text and say "SELECT * FROM myTable WHERE ID = ", but then have the paramater passed as a SqlParameter the way it would work if I had used CommandType.StoredProcedure instead of a text query. Am I hallucinating this If not, can anyone point me to more info on it This approach seems useful in some cases if it guards against SQL injection attacks the way that stored procs do. I hate having 150 one-line stored procs for "delete by unique ID" opera ...Show All
SQL Server AdjustTokenPrivileges Error?
Hi, I have created two packages.. a child package and a main package that is responsable by executing all his childs in a specific order... What start happening is that the child when executed alone is ok, but the the main package executes it... then i get a DOS Windows saying "AdjustTokenPrivileges () Failed (00000514)" What can be causing this I haven't changed anything and the package was executing right some days ago... Best Regards, Luis Simoes I have one package that is causing this error as well. Anyone know why It only generates the error when I try to insert into a database. otherwise it does not ...Show All
Visual Studio 2008 (Pre-release) Preview version available?
Hello alltogether, When is a preview version of Cider planned to be released to a) MVPs and b) the public Just to make sure: Cider is the Designer inside VS for WPF, right Thanks, Neno Wow, you found this :-) Yes, Cider is the visual designer that creates WPF forms, and it will be a part of the Visual Studio "Orcas" release. We are setting things up a little early, ahead of the public availability of Cider, in order to make sure folks have a great experience with Cider. Within the next couple of weeks, look for announcements here, on the WPF forum, or other related sources like the MSDN dev center. We expect to ...Show All
Visual C# editing resource files
I am using a ResourceManager to retrieve values from a .resource file. I would like to be able to update the values in the file from within the application. Can this be done How Thanks. Use the Resource editor Lutz Roeder has writen, you can find it here . ...Show All
Visual C# Breakpoint makes computer freeze
Hi all. Just started to use VS2005 final release. Loaded my C#-project, which I've been developing using the beta, built and ran it. Then I set a breakpoint and when it was hit, I assume, the whole computer just frooze. Nothing worked besides the mouse and I had to make a hard reset to get going again. I've now tested several breakpoints at different locations with the same result. Obviously, this worked fine in the beta. What to do I have the same problem and it is on a machine that never had the Beta version installed. Did you ever find a solution Did you by any chance use the Jomo Fisher hack ...Show All
Windows Forms No CellValueNeeded event in Virtual mode
I've setup my DGV with virtual mode equals to true and I've created an event handler for the CellValueNeeded event. However, I found that this event is not raised. I'm not sure whether this is caused by the data type that it binded to. The column is binded to a type of nullable(of decimal) in my custom business entity. It will raise exception when the DGV is loaded. I'm trying to use virtual mode to prevent this problem happening but seems not sucessful. ...Show All
Visual Basic How Does a TabControl add a new panel to the form at design time?
Add a new tabpage to a tabcontrol, and the form itself 'gets' the new tabpage. This allows the persistance of the tab, its properties, and whatever controls you stick on it. I want to mimic this behavior in my own custom control, but can't figure out how Anyone done this ever -zorpy Hi Zorpy, The concrete implementation of .NET buildin class is not public. But if you have interest, you can use the reflector tool to disassembly the .NET code. NOTE: this is not the source code but the disassembly code. Here is a link to the reflector. http://www.aisto.com/roeder/dotnet/ HTH. Best regards, ...Show All
Visual Studio Express Editions Copying data from table to csv file
Could someone please direct me on how to copy data from a web page (using the WebBrower control) that copies a table on a browsed web page into a csv file (Is there even a way to select which table to grab like that done in MS Excel Web Query ) Thanks, Ryan Hi, Is your problem solveD If no, then could you please be more clear in your problem definition Thank you, Bhanu. ...Show All
.NET Development problem with com object
Hi, I must create a com object that has some methods described in an interface. One of this methods is new(par1,par2,par3) as short The only problem is that i can't create a method with such name because it is seen as the constructor of the com object (and the constructor for the com object must have no parameters). So when i write Public Function new(...) as short i get the message The constructor must be declared as Sub and not as Function Thanks for your answer, i did not knew this feature of .net. However my problem is that i am writing the com " ...Show All
SQL Server SQL 2005 specifications and performance documentation
Does anyone know the links to doucments showing the SQL 2005 specifications and performance data for the various versions of SQL 2005 including SQL Express Hi Jim, I checked with the SQL Express folks. Here's what they said: "SQL Express is limited to 1 CPU, 1 GB memory, and 4 GB total database size. These limits, much more than any other factor, will determine performance of SQL Express in most situations. If you are measuring a workload that fits within the limits, the performance will be essentially the same for Express, Workgroup, Standard, or Enterprise Edition. I’m not aware of any performance evaluations specifical ...Show All
Windows Forms Get And Set Public Property's
Hello, I got a question that I think is fairly dumb but I just cant figure it out. I have a class called users and in that class I have inserted some public properties that I would like all of my forms to be able to access, note: Im developing in Pocket PC. So my class looks like this 'Stores information about the user that is  ...Show All
Visual C++ LNK2019: unresolved external symbol error when i compile my win32 app
I am kinda new at this c++, and i am try to to make a Open GL application that when run will make a cube and rotate it on the screen. When i compile my project I get the about 21 different "LNK2019: unresolved external symbol errors". maybe some one can help me figure this out. If you need the project files I can send it too you. I am using visual studio C++ .net 2003. I also tried this code in visual 2005 and received the same thing. the error i received are as follows: Error Messages: OpenGLCube.obj : error LNK2019: unresolved external symbol _gluPerspective@32 referenced in function "void __cdecl ReSizeGLScene(int,int)" ( ReSizeG ...Show All
Visual Studio mscorsvw hogs CPU
I installed .net 2.0 beta 2. After 2 days, mscorsvw continues to dominate the CPU. Other process such as logon and Oracle DB take about 3 times longer to execute. This is not a bug please read the following blog post http://blogs.msdn.com/davidnotario/archive/2005/04/27/412838.aspx ...Show All
Visual C++ I've got compiling error C2039: 'vector' : is not a member of 'std'
Hi everyone: I got the above error. How can I correct it Thanks in advance. Ke kezhu wrote: Hi everyone: I got the above error. How can I correct it Thanks in advance. Ke Did you '#include <vector>' ...Show All
Visual Studio Team System Beta 3 Refresh to RC -- reports don't work
Hello, We performed the Beta 3 Refresh to RC upgrade yesterday. I followed the upgrade word doc religiously and it went fairly smoothly. Everything appears to fine post-upgrade with the exception of Reports . All reports load, but return errors when run. Here's an example from the Work Items by Owner report: An error has occurred during report processing. (rsProcessingAborted) Query execution failed for data set 'dsStateParam'. (rsErrorExecutingCommand) Query (18, 1) The dimension '[State]' was not found in the cube when the string, [State].[State].[State], was parsed. Another example is the Project Velocity report. The drop-down boxes for ...Show All
