AlexBB's Q&A profile
SQL Server On Failure WorkFlow not getting Exectuted
i created a DTS package in SQL 2000 using the enterprise manager. I have defined a SQL task to drop some temporary tables on failure of another SQL task. Also the same temporary tables need to be dropped on success of another task. the on success workflow is working fine. but when i add the on failure workflow to the temporary table dropping task, the temp table droppin is not getting excuted at all either for success nor for the failure. please help me out. So multiple conditions are pointed to the same failure "workflow" If so, change the Multiple constraints option on one of the precedence constraints from the default of "Logical AND" (all constraints must evaluluate to true) to "Logical OR" (on ...Show All
Visual C# toolStrip with Database connection
i have a combobox on my toolStrip How can I populate with data from a database I am getting : Error 1 The name 'CommandBehaviour' does not exist in the current context void populate_category() { npg_connection = new NpgsqlConnection ( "Server=www.db.2connectbahrain.com;Port=5432;User Id=jassim_rahma;Password=xxxxxxxx;Database=xxxxxx;" ); npg_command.CommandText = "Select reports_category FROM reports_category" ; npg_command.Connection = npg_connection; npg_command.Connection.Open(); npg_reader = npg_command.ExecuteReader(CommandBehaviour.CloseConnection); while (npg_reader.Read()) { tool_category.Items.Add(npg_reader.GetValue(0)); } np ...Show All
Windows Forms Access Checked Items in Databound Checked ListBox
I am using a checked listbox that I populate by using databinding. On a button click event, I want to do some processing based on which items were checked in the control. I can get the indices of the checked items using: this.LocationLB.CheckedIndices But I'm having trouble figuring out how to get the values of the items. If I do this: MessageBox.Show(this.LocationLB.Items[item].ToString()); The output is "DataRowView". Any ideas ...Show All
Audio and Video Development Missing WMCreateWriter in wmvcore.lib
wmvcore.lib shipped with DirectShow (included in the latest PSDK) doesn't list many functions exported by wmvcore.dll (e.g. WMCreateWriter). Does anybody know the reason for this and where I can obtain wmvcore.lib that matches wmvcore.dll Well, I didn't realize this, but the Format SDK is not supported on Server 2003: http://msdn.microsoft.com/library/en-us/wmform95/htm/sdkversions.asp The next version which is currently in beta will be supported for XP and Vista only. I apologize for not confirming that fact before I pointed you to the Format SDK download. Mike ---------------------------------------------------------------------------- Mike Wasson, DirectShow SDK Documentation This posting ...Show All
Visual J# Can I deploy a simple J# app to Linux or the Mac?
Since the concept of java is to "write once, run everywhere", is there a way to run my simple app on the mac or say the fadora 2 core for linux I don't see any packages for these systems. J# souce code is compatible with Java. It is useful to keep a compatibility with Java. For instance, C language is not binary compatible among platforms, but many people use C in oder to keep a portability. ...Show All
Visual Studio 2008 (Pre-release) How to get mouse position in screen coordinates?
Is there any way how to get mouse position relative to desktop (in screen coordinates) I know about static method Mouse .GetPosition() but it requires parameter specifying IInputElement. Is there something like “screen” or “desktop” or something else I can use as parameter to GetPosition As I need to get this screen mouse position inside method in my class derived from Grid I could use this: PointToScreen( Mouse .GetPosition( this )) But still I think there could be some “desktop” object, or not i think you might wanna look for system.windows.forms as the namespace and there you can use the static method control.mouseposition which is in it. hope thi ...Show All
Visual Studio Team System Project Portal License Q
Could someone please clarify the license position with regard to using SharePoint Project Portals with TFS We have a TFS installation, Visual Studio Team Edition for Software Devs + CALs for other Team Explorer users. Are there any additional licening requirments around access to the Project Portal. Typically sharepoint requires either a server license or CALs - is this the case for anyone wishing to access a Project Portal for a TFS project The licensing white paper mentions " Viewing manually distributed reports via MicrosoftR Windows SharePoint Services " has the following license implications " A Team Foundation Server CAL is not required; appropriate Windows Server licenses are required ." I want to be ...Show All
.NET Development How To Validate User Credentials on Microsoft Operating Systems
I would like to know if there is a good example in C# explain how To Validate User Credentials on Microsoft Operating Systems. I found this in C : http://support.microsoft.com/ id=180548#top I would like to use Win Forms to authentication and authorization user in Application server. How to do it Tks! Client ----> Connect - Application Server ----> Database server I'm not sure of a direct way to do it. The NetworkCredential class allows you to get or set credentials but to to authenticate them. The AuthorizationManager static class allows for authentication but it is associated with internet resources. Maybe the easiest way would be to attempt to impersonate the use ...Show All
Visual Basic Link to ASPX page from Code Behind File
Can anyone tell me how to link to an ASPX page from a code behind file I've tried using <a href="page.aspx"></a> but receive '>' expected. I must be doing something wrong. Thank You Thank You - you answered my question As far as posting to the right forum - there seems to be a lot of categories and I'm finding it a bit difficult finding the right forum since the question seems to fall across multiple categories. But thank you - I appreciate your help. ...Show All
Visual C++ Starting off with C++
I keep hearing it's hard to learn, but that you should try and begin learning with C++...That being said I just downloaded Visual C++ Express and was eager to code for the first time Only to be even more frustrated; I created a new file under Visual C++, C++ file, then started typing in code from tutorials. The color of the text is changing, appearing like I'm entering code but there is no output. Here is what I typed // my first program in C++ #include <iostream> using namespace std; int main () { cout << "Hello World!" ; return 0; } Output doesn't appear and when I click on "Show output from" it makes a noise that I can't do it. Do I have to create a certain type of file or ...Show All
Visual C# Read a downloaded .TXT file?
Hi, I want to read a txt file I've just downloaded to see what it contains. For example, if the file contains 4 pairs of numbers, I want to know what those are. opened txt file: 0.1.1.88 Can anyone help Thanks, If you’ve got this file loaded into a string (such as with File.ReadAllText()) that contains only the values you desire... you could easily call Split() to break the numbers up into separate parts within an array such as this example: string str = "0.1.1.88" ; string [] parts = str.Split( '.' ); Once this code has executed, the array named parts will contain each of the 4 values on different indexes. From there all you need to do is convert those individual strings to numb ...Show All
SQL Server Restoring a database
Hullo, I am trying to restore a database rs2005sbsDW from the hard disk but it gives me the following error message. TITLE: Microsoft SQL Server Management Studio ------------------------------ An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo) ------------------------------ ADDITIONAL INFORMATION: The media family on device 'C:\Documents and Settings\Administrator.UHRC\My Documents\Microsoft Press\RS2005SBS\Setup\Database\rs2005sbsDW.MDF' is incorrectly formed. SQL Server cannot process this media family. RESTORE HEADERONLY is terminating abnormally. (Microsoft SQL Server, Error: 3241) For help, click: http://go.microsoft.com/fwlink ProdName=Microsoft+SQL ...Show All
Visual Studio Tools for Office Is there any "Hello World" tutorial for an Outlook 2007 Add-in ?
When I tried to create an add-in for Outlook 2007, I thought everything went smooth and seemed okay, even compiling the project and starting outlook when I clicked the play button. However, nothing happened, i.e. the code in the method "ThisAddIn_Startup" does not seem to ever become executed, but I never get any kind of error message.... Here is what I have tried to do from Visual Studio 2005 Professional (and I also have installed Visual Studio Tools including second edition): "File - New Project - Visual C# - Office - 2007 Add-ins - Outlook Add-in - OK" Then Visual Studio 2005 generates two project (one of them is the setup project). Then I add one line of code in the generated empty method "ThisAddIn_Startup" like this: private void ...Show All
Visual Basic Importing Excel files into Visual Basic 2005 Express
Hi, I'm a complete database newbie so please bear with me! I'm using Visual Basic 2005 Express to create an application which will just list an editable database of stuff, but I don't want to have to enter all the info manually. I have it all on an XLS / CSV spreadsheet: 10 columns and 9000 rows, I just want to import it. But how If your reading the data only you use ADO.NET to read the data as one approach, another may be to export the data to a CSV File and then use something like the TextFieldParser object to process the CSV file or you can access the Excel sheet directly ADO.NET to Retrieve and Modify Records in an Excel Workbook http://support.microsoft.com/kb/316934 READING A COMMA SE ...Show All
Visual C++ Turbo C Command Line
How can I disable Ansi Keywords in Command Line ...Show All
