nzMatt's Q&A profile
Visual Studio 2008 (Pre-release) Separate SQL Server (2000 in this case)
How do you instantiate the db with LINQ if the SQL Server is separate from the application server All the samples I've seen do it like this: Northwind db = new Northwind ( "c:\\northwind\\northwnd.mdf" ); Is the following how you'd do it, say in a shared hosting type situation (except that the connection string itself would be stored in the web.config, of course) Northwind db = new Northwind ( DataSource=<serverIp>> ...Show All
Visual Studio Express Editions Indexing Arrays and strings
Hello, I am a brand new programmer to Visual Basic.I am wondering how do you index multiple elements of an array at once In C you would use a '..'. I am treating a string as an array to play with it's value, so something like: Dim stringvar as String = "This is a string." MessageBox.Show(stringvar(0..8)) And the MessageBox would show something like "This is a", except using ".." to do that obviously is how ...Show All
Windows Forms Combobox's behavior in dataGridView
I have added a combobox column to the dataGridView control. However, when I choose something from the combobox and leave the cell, the selected value gets disappeared: the item changes to blank. I haven't written any code in any of the events. How can I make the selected values stay in the grid private void AddComboBoxColumns( int pInt_InsertAfterColumn) { DataGridViewComboBoxColumn comboboxColumn = new DataGridViewComboBoxColumn ...Show All
Visual Studio Changing type of element using property pane
Hi all, Is it possible to change the type of an element using the property pane We created a DSL containing an element called A. Classes B and C inherit from A. Class A is an element contained by some other element. When adding an instance of A to its container, the user has to be able to set a property specifying it is a class of type B or C and be able to switch to C resp. B. The reason we want to be able to switch is that B and C ext ...Show All
Windows Forms August Winform designer blows up
I installed the August CTP, and tried opening an existing project (last built in July CTP). When I try to open any of my forms, I get the following error, One or more errors encountered while loading the designer. The errors are listed below. Some errors can be fixed by rebuilding your project, while others may require code changes. A reference to the component 'System' already exists in the project. After that, I get ...Show All
Visual Studio Team System Problem deploying VSTS client and server plugins
I have developed a client and server plugin for VSTS that will allow new items to show up in the Team Explorer tree after using a custom Process Template Editor. My question is that if I try and install this, and upload my custom Process Template Editor, it bombs out and gives me an error message saying my plugin is not registered. However, if I have the Visual Studio SDK (Dec CTP) installed, it does not give me this error. I know I am not deplo ...Show All
Visual Studio Express Editions nothing after if statement works
I have made a blank windows form and added a timer with this code " private : System::Void timer1_Tick(System::Object^ sender, System::EventArgs^ e) { if (y==1) MessageBoxA(hWnd, "hi" , "cool" ,MB_OK); y=y+1; } " I declared static int y earlier and I just keep getting never-ending messageboxes why doesn't my compiler process the y=y+1 here " public ...Show All
Windows Forms Curious about security architecture in TaskVision
I am fairly new to web services security. I learned a lot from the authenticationTicket method used in Task Vision and have even started plugging it in to a pre-existing Windows Forms Client/ Web Services Data provider app that I deployed a few ...Show All
Visual Studio Express Editions Currency Symbol
i am parsing imformation from a XML file. One bit of the imformation in the XML file is in the form of "£1,345.0". When this is a assigned to a string varible it is converted to "GBP1,345.0". how can I stop this from happening Hi, You can use ... Amount = Amount.Replace( "GBP" , "" ); Where amount is string. ...Show All
SQL Server DB Owner & SqlDependency Problem
I deleted the account owning Test Database after creating Test Database. Everythings work well except SqlDependency. SqlDependency OnChange Event is not working. I have tested SQL 2005 ent RTM & VS 2005 Pro RTM. I'm curious why it happened. Thank you. SqlDependency needs the EXECUTE AS infrastructure to do it's work. If the account that created the database was deleted, EXECUTE AS user 'd ...Show All
Visual Studio How to do SQL query on xsd schema file in CR for VS2005?
I have a .xsd schema file look like this: Table: number_of_subjects birth_day birth_month birth_year All the data are stored in an .xml file. In my project, I need to generate a report to show how many duplicate entries in each birthdate bin (e.g. 120 occupied birth date bins have 1 entry; 31 have 2 entries; 4 have 3 entries...). Thus, in the crystal report, I need to show the results of an SQL like: SELECT COUN ...Show All
.NET Development How to tell if a column in DataTable (ADO.NET) is mapping to "image" type in SQL Server?
Hi, everyone. I am using .net framework 1.1, VS studio 2003 and MSSQL Server 2000. I tried to write codes to clear all the image data in several tables which are stored in a dataset named myDataSet. As I know, the image type in MS Sql Databse is maped to Byte[] in .Net. I used function GetTypeCode() to compare the column type with the standard Byte[], but it doesn't work. Any idea thanks. ...Show All
Visual Studio Team System Error 28004. Error service account is not valid
Hi all I'm installing TFS 2005 RC and right towards the end of installation I get: Error 28004. Error service account is not valid Retry/Cancel options available. The account is a domain account, any ideas I am at a total loss. Thanks Kev If the account you are using to do the install is a local machine account (not a domain account), then you may see this error. ...Show All
SQL Server Publishing from Oracle to Sql Server 2005
HI guys, Am trying to do the above. Managed to configured the distributer. However, while trying to configure my oracle publisher, it failed as follows: ==================================================== Creating Publication - Creating Publication 'oraTest' (Success) * SQL Server created publication 'oraTest'. - Adding article 1 of 1 (Error) Messages * SQL Server Management Studio could not create article 'USERS'. (New Publ ...Show All
Visual C++ generic class objects in function template
I have a MS 32-bit C/C++ compiler version 12 installed on my PC running MS Windows 2000. I have a problem with compiling a C++ program containing a function template which takes more than one generic class objects. e.g. a fragment of the C++ program: ***********************************************8 ... namespace { template<class spec1, int sz2> class tclass2 { int ii[sz2]; spec1 sp; public: tclass ...Show All
