Werner Clausen's Q&A profile
Visual Studio Problem installing Standard Edition - asking for 2nd Disk
Hey guys I have been trying to Install VS 2005 - Standard Edition. But it gets stuck while copying or looking for vdt80.dll and asks to "Insert Second Disk - ENU" I never got the second disk, All I have is one disk for the standard edition, I never got the second disk when I bought it Any hints or help is really appreciated. TIA Return it and ask for a second disk. VS Standard takes up 1 gig on a DVD so if you only have one CD, you're missing about 400 megs of good stuff :) ...Show All
SQL Server ROLLBACK TRANSACTION
Hi everyone, In the following T-SQL code snippet,when I attempt to insert more than one record I encounter an error because of the following trigger but I have some doubts about the performation of ROLLBACK TRANSACTION in here. So there is only one transaction occured in the specified table that contain both trigger and the specified table however I supposed that when we call ROLLBACK TRANSACTION, the transaction is aborted. But the code run the Raiserror statement which is located in after the ROLLBACK TRANSACTION statement. So why do this code( Raiserror) is run Should not it be terminated because of the ROLLBACK TRANSACTION statement ALTER TRIGGER kimlikNo_Degistir ON Bilgi FOR INSERT AS IF(SELECT COUNT(*) FROM Inserted) > 1 BEGIN ...Show All
Windows Forms Passing secure parameters / info to client
Is there any other way to pass parameters to a clickonce application beside via the URL I do not want to pass the user password through the URL for security reasons. Plus, there's a limit to the URL length. The parameters are dynamic and dependent on the user so I can't hardcode them into the application setting. I *could* encrypt the parameter values but is there an alternative solution Thanks Brian for the information. I am already doing the webservice approach to communicate with the server. However, each webservice call requires the username, password, and db connectionstring to authenticate the user. So I need to somehow pass that information from the web app to the clickonce client app (customers ha ...Show All
Visual C++ am new bee, What is wrong with the following function. compile no error. but its not working at all. bascially from a variable i
am new bee, What is wrong with the following function. compile no error. but its not working at all. bascially from a variable i only need number. if any soultion pls help. dont delete my post //Function to take number only CString chkString(LPCTSTR instr){ CString output(instr); int len=lstrlen(instr); int Str2Check; for(int n=0;n<len;n++) { Str2Check = atoi(output.Mid(n,1)); if ((Str2Check = 0) && (Str2Check = 1) && (Str2Check = 2) && (Str2Check = 3) && (Str2Check = 4) && (Str2Check = 5) && (Str2Check = 6) && (Str2Check = 7) && (Str2Check = 8) && (Str2Check = 9)) outString+=Str2Check; else { outString="0"; break; } } return output; ...Show All
Software Development for Windows Vista SQL Database activity.
HI, Is there any activity in WF where I can directly interact with SQL database instead of writing the code to connect to database and performing select/insert/etc activities. I don't want to use CallExternalMethod activity also. Pls suggest. Regards, Ekta Ekta what you need is probably this : http://wf.netfx3.com/files/folders/communications/entry837.aspx To fix it, read this : http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=561958&SiteID=1 Serge ...Show All
SQL Server SQL Server 2005 Developer Edition
I am in the early stages of migrating an extensive Access 2003 application to C#/SQL Server. The client already has SQL Server 2005, whereas I am using SQL Server 2000 Developer Edition. It has worked fine for me, but I'd like to upgrade to SQL Server 2005 Developer Edition and have a couple of questions. In Access 2000 I am always using Query Analyzer and Enterprise Manager. Are these features available in 2005 Develper Edition Can more than one user connect to SQL Server at a time That is, for testing concurrency, etc, can two people connect at the same time Is these any restriction on connecting to SQL Srever from another computer or workstation Again for testing, one or two other workstations would be fine. Finally, what is the str ...Show All
Visual C# reference object not updated
i send a class variable string into a nested class by "ref" ( using a constructor). inside this nested class i operate a thread and change the string variable value inside the thread. from this thread i call a delegate function which points into the main (not the nested) class function, why can't i see the change in the string there why didn't the variable string changed in the thread but the class variable string itself didn't i passed it by reference! example : // main class sealed public class TCPIPComm { private String outStr = "Out"; clientSearch = new ClientSearch(ref outStr); // base nested class abstract class ConnectionSearch { protected String MainString = ""; // constructor protected ...Show All
SQL Server Excel 2007 Services
I have a test environment with Office 2007, including Sharepoint and excel services. I was able to publish pivot table reports to a report library and then include them in dashboards and analyse in my web browser. Now al of a sudden, after publishing an excel report to excel services and when I try to open it in my web browser, I get the following error message: "The file you selected cannot be opened because it is corrupt, protected by Information Rights Management, or in a file format not supported by Excel Services. Excel 2007 may be able to open this file". Indeed the full client is able to open the file. What strikes me is that editing the excel reports which worked fine in the past and republishing them, causes no proble ...Show All
Visual C# Check if laptop has low battery? or if not connected to A/C possible?
Hello all, I am using a Dell Laptop (Latitude D520) and I was wondering, is it possible to write a program that checks if the A/C adapter is plugged in or if the battery is getting low, to notify the user I know dell provides a program to do this, but i would like to make my own and access this information myself. TIA! A recent Coding4Fun article You can Take it with You, Part 1 discusses this topic in both C# and VB. ...Show All
Visual C++ Array in a Array
Dear all, Does anybody know how to write an array that consist of other array. example, a[] = [1 2 3]; b[] = [3 2 6]; c[] = [4 2 5]; d[] = [4 5 8]; can i put these for array into an array say e[] so e will have e=[ a b c d]; e is a 2x2 arrays. Is this possible how to write it in c or c++ Thanks in advance. KM You'll have to have an array of pointers. When you declare a multi-dimensional array you're defining a contiguous block of memory, not an array of arrays. e.g.: int a[] = {1, 2, 3}; int b[] = {4, 5}; int c[] = {6, 7, 8, 9}; int *aa[3] = {a, b, c}; int v = aa[0][2]; ASSERT(v == 3); Of course, t ...Show All
SQL Server logical modeling vs physical modeling
Can someone please explain this statement: At the logical level where there can be any number of entities in a relationship while physically you define relationships between two tables. thx, Kat Take a n-m relation, an example would be a student entity and an lecture entitiy. A student can visit n lectures and a lectures can be visited by n students. Although the tables (entities) cannot be directly be related (only through the n-m table) the pure relation only exists between the students and the lectures entity. its the definition of an entity which make the difference between the understanding. HTH, Jens K. Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
Visual Studio Can't install VS 2005 SP1 on Vista Ultimate
I can't install VS 2005 SP1 on a Vista Ultimate machine. When downloaded and "installed" via Windows Update, I get "Code 64C", and no further explination. If I download and try to install the fix directly (run as administrator) I eventually get an error telling me that the source code does not exist. All other Vista Ultimate updates have been applied successfully. I'm also running Office 2007 Ultimate. I can't un-install VS 2005 Pro from Add/Remove programs because it can't find c:\program files\microsoft\visual studio 8\vs_setup.msi during the VS 2005 maintenance mode program. I tried to copying vs_setup.msi from the install DVD to the aforementioned subdirectory, but I still got the same error message. I g ...Show All
SQL Server DML error logging
Oracle 10g2 offers DML error logging, which enables to load data with traditional SQL without having a complete roll-back in case one record is refused. http://orafaq.com/node/76 This is almost similar to loading capabilities of ETL-tools (at least in the error-handling department) Does anyone have a clue whether Microsoft is going to add such functionality to SQL Server 2005 I think you have that in SSIS, (almost 99% sure, so ask over there in their forum too http://forums.microsoft.com/MSDN/ShowForum.aspx ForumID=80&SiteID=1 ) but depending on the situation, you can do this easily in an instead of trigger, if you know the criteria to check for. Just something like the following in the ...Show All
SQL Server SQL Execution Error: "clr Enabled"
I've Created a DLL Library and added it as an assembly in a database when I make a select statement from SQLCmd using my functions it runs fine but when I try to Create View from the VB 2005 Express Development Environment it Gives me the Error SQL Execution Error Error Message: Execution of user code in the .net Framework is disabled. Enable "clr Enabled" configurartion option note that CLR Integration Option of the SQL server is ON and I've Tried sp_configure 'show advanced options', 1; GO RECONFIGURE; GO sp_configure 'clr enabled', 1; GO RECONFIGURE form SQLCMD in vain when I execute the select statement from the SQLcmd it runs fine but when I try to make a View from the Developmet Environment i gives me that ...Show All
Software Development for Windows Vista break out of a parrallel Activity.
I made a custom Activity that is wired to one interface event. Using correlation I can call one event and it will be directed to the correct instance even if they are in parrallel. It's useful but I have a case where I need to use a listen activity but the listen activity won't accept my custom acivity because its not an HandleExternalEvent Acitvity. The point. I would like to use a parrallel activity with several branches but if one particular branch is taken I want to shortcircuit the parrallel activity and continue with the next activity after the parrallel(regardless if the other branches have not all been completed). If there is a better way of approaching this please let me know. Thanks! List ...Show All
