lmdatinh's Q&A profile
SQL Server Uninstalling a SQL instance programmatically
Hi, Currently we deploy SQL Server Express as a part of our installation, and we create our own instance by setting up appropriate parameters. ie. SQLEXPR.EXE /qb ADDLOCAL=ALL INSTANCENAME="MyInstance" Can anyone please give some advice as to how we would uninstall this instance when the user uninstalls our application. The following link explains how to do it via the Add/Remove Programs: http://msdn2.microsoft.com/en-us/library/ms143412.aspx And the following link explains how to do it manually: http://support.microsoft.com/default.aspx scid=kb;en-us;290991&sd=tech But we'd like to remove it programmatically when the user uninstalls o ...Show All
Windows Forms ListBox And DataGridView
Can someone tell me how put the items from a listBox into a DataGridView Use the following code snippet // create a table DataTable dt=new DataTable(); // add column for which data to be inserted dt.Columns.Add("First Column"); // add rows to the table by getting the values from the listview for (int i = 0; i < this.listBox1.Items.Count; i++) { dt.Rows.Add(this.listBox1.Items[ i ].ToString()); } //assign the datasource this.dataGridView1.DataSource=dt; ...Show All
Visual C# C# and VS.net components - very basic question...
This is a no-brainer, but...OK...I've developed components in COM/COM+ for a long while...I am new to developing components in C# and VS.NET...the question is this: in COM/COM+, I'm used to having to go through and INTERFACE(such as IUnKnown, etc...)...IN C# you just ADD A COMPONENT within the IDE...the question is simple: do these C# components NEED to implement any type of interface, or do they communicate without a defined interface...and 2) can I add a C# INTERFACE or ABSTRACT CLASS to the C# component to emulate the type of interface I am used to in COM/COM+.... ......Thanks...... Thanks, Michael...sin ...Show All
Software Development for Windows Vista Designer fails: could not load type RuntimeCompatibility from mscorlib
Hi, When trying to view a workflow designer in VS 2005 Beta 2 with the PDC CTP .NET 2.0 install, I get the following error: Could not load type 'System.Runtime.CompilerServices.RuntimeCompatibilityAttribute' from assembly 'mscorlib, Version=2.0.0.0.,Culture=neutral, PublicKeyToken ...' Any hints on what I can do to solve this I've reinstalled the .NET 2.0 Beta 2 September CTP bits from the PDC DVD but still no joy. I have the WinFX Redistributable from the PDC DVD installed as well. Looking in C:\WINDOWS\Microsoft.NET\Framework\v2.0.50215 the mscorlib.dll is showing with a version 2.0.50215.322. Cheers, Benjamin Mitchell ...Show All
Visual Studio Express Editions Massive iostream errors
Hey, i'm kinda new to Visual C++ Express and i'm having a problem when I include iostream. I've installed Platform SDK and this is what I compile: #include <iostream> using namespace std; int main(){ cout << "Hello" ; return 0; } I get tons of errors from this: ------ Build started: Project: empty_project, Configuration: Debug Win32 ------ Compiling... 2.cpp C:\Program Files\Microsoft Platform SDK\Include\stdio.h(103) : warning C4229: anachronism used : modifiers on data are ignored C:\Program Files\Microsoft Platform SDK\Include\stdio.h(104) : warning C4229: a ...Show All
SQL Server Changing the ConnectionString property for a File Connection Manager
I have a package that I plan to run against about 700 databases to look for anomalies. I have several package variables in place that are passed in at runtime. One of them will hold the path and filename of the error log for the current database in process. I want each database to generate it's own error log for documentation and research purposes. However, when I run the package, it continues to use the path and filename that I entered when I created the File Connection Manager. I am trying to update that value in a Script Task by using the ConnectionManager class and setting the value for the "ConnectionString" property. This met ...Show All
Windows Forms Two views of same dataset table
I have 2 controls on my form which both have the same dataset table as their datasource, one is a listbox then other a combo box. I want the list box to show a filtered subset of records and the combobox to list all the records. My code runs something like this; dvClient = ds.Tables(1).DefaultView lstClient.datasource=dvclient cmbClient.DataSource = ds.Tables(1) What happens i ...Show All
Visual Studio Team System More on my question...Resolve Bugs automatically.
Hi, How are Bugs added I can run a test and add them manually by right-clicking on the test result and adding or associating the result with a Bug Work Item. However, I would like to know whether Bugs are ever automatically added, and if so, how one can configure this process. E.g. I see that MSF Agile comes with a few pre-added bugs - I suppose they were automatically added by the Build process. Bugs won't be added during ad hoc builds by the developer while s/he is developing, I suppose. Are they added automatically during a Team Build Are bugs ever automatically added, and if so, how Kind Regards ...Show All
Windows Forms ** VB.Net & Joined Tables **
Hey .. ** Hellow , everybody .. I need your help plz as regards "Database Programming" as my bein newbie In SQL Server .. Plz take a look at the Following snippet code & help me abt how to WOrk out with a joined tables ..."jumb to the end of the Code for more Explanation" .. ------------------------------------------------------ CPMOconn.Open() cmSQL = New SqlCommand("select CWO_No,Status,TFR_No from CWO ", CPMOconn) dasearch = New SqlDataAdapter(cmSQL) dasearch.Fill(dsCPMO, "CWO") dvsearch = New DataView(dsCPMO.Tables("CWO")) If (cboKey.Text = "CWO Number") Then dvSearch.RowFilter = "CWO_No like '" + txtKey.Text + "%'" ElseIf ...Show All
Windows Forms aspx pages dont look the same on mac (browser safari) as oppose to pc using IE 6
Hi, aspx pages dont look the same on mac (browser safari) as oppose to pc using IE 6 I have using css style sheet text boxes loose their specified length and height tables cells loose their specified length and heigth text spacing id different below is the sytle sheet i am using, it works fine for pc but doesn't work for mac. help! .val_msgs { font-weight : bold ; font-size : 10px ; color : red ; font-family : Verdana ; } .date { font-size : 9px ; color : #666666 ; } .time { font-size : 9px ; text-transform : none ; color : #999999 ; font-family : Verdana ; } .ticket_title { ...Show All
Visual C# Determine startup file
Hi, I have created a file that works with my program. The extension is '.epi'. I want to load the file in my program when you click the file in Explorer So I created this code: if (( Application .ExecutablePath.EndsWith( ".epi" ) == true )) { string filename = Application .ExecutablePath; //Then the code to load the file using the above filename. } But this code does'nt work. I set in the register to start the file ending on ".epi" with my program, "EP-Intro.exe". Now, this code written above never starts because the Application.ExecutablePath always ends with "EP-Intro.exe". Now my question: Ho ...Show All
Visual Studio Team System Ruls breaking build
This is in reference to one of the existing threads http://www.gotdotnet.com/Community/MessageBoard/Thread.aspx id=327668 Custom rules breaking build Posted on: 09/08/2005 06:11:05 Hi Mike, If we have a script that figures out whether any rules were broken, though, one can not differentiate between the output log entries on the per-rule basis (well, its possible if one keeps information about each rule being used in the script). That is a bit inconvenient and breaks nice encapsulation. Am I wrong or missing something We are trying to make our continuous build fail on some warnings/c ...Show All
Visual C# How to dynamic load ASP.NET User Controls in Visual Studio 2005
Did anybody know how to dynamic load ASP.NET User Controls in Visual Studio 2005 if I put the User Controls in the App_Controls subfolder Here is my test code: using System; using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; public partial class _Default : System.Web.UI. Page { protected void Page_Load( object sender, EventArgs e) { ucUserControl1 test = (ucUserControl1)LoadControl( "~\\App_Controls\\ucUserControl1.as ...Show All
SQL Server SQL Server 2005 data export wizard did not transfer stored procedures
OK, I got the data transferred, but now SQL Server 2005 data export wizard did not transfer stored procedures. .. I am transferring from SQl Server Express 2005. Just trying to get the starter kit working, it used to be easier... Please help RADIOGENERIS wrote: Thanks, it worked. Why is this new version of SQL Manager so difficult to use Tasks I was able to do in one step, now I have to do in several steps: 1) Genrate Drop Scripts for tables, views, stored procedures 2) Generate Create Scripts for tables, views, stored procedures 3) Import data to the server I used to be able to do all this in Enterp ...Show All
SQL Server SDF Creation on Desktop
Hi to all in this forum. have been involved in this discussion for over 3 weeks now and here is the perspective from what I now understand. MS does NOT support direct management of Mobile SQL:data on the desktop EXCEPT for the following You have an SQL Server product (NOT SQL Server Express) 0r. You have a Tablet PC HOWEVER You can manage your data on the desktop by right clicking the relevant table within Server Explorer at development stage with your smart device application but this is only on a record by record basis. There is no bulk cut and paste facility. A POSSIBLE SOLUTION is to use the ...Show All
