Lizard1850's Q&A profile
SQL Server SA account Locked out
I have been using SQL2000 for a number of years and the company I work for needs a new system so I decided to install SQL2005. I installed SQL2005 without any problems and set a complex password for SA. I tried to log on and had to make several atempts as I remmebered the password after the SA account got locked out with the following message: Login failed for user 'sa' because the account is currently locked out. The system administrator can unlock it. (Microsoft SQL Server, Error: 18486). The problem I have is I cannot log onto SQL at all as it is not logging on with windows authentication either! How do I unlock the SA account ...Show All
Visual C# RTM Web refactoring... Serious problems!!
I am amazed that the refactoring support in VS2005 is in this state. It is utterly useless. How can they claim to have Refactoring support for web projects I have a Solution that contains one web project and two library projects. It is NOT a complicated solution (~150 .cs files and maybe 100 .aspx and .ascx skin files). And when I try to use ANY of the refactoring tools that have been provided in Visual Studio 2005, it takes an eternity (over 2 minutes) and I normally give up on it... This includes, Find References, Rename, etc... No matter what I do, it iterates through EVERY aspx file in the web project ! ! I choose a method and selec ...Show All
Visual C# Assign object to enum
Hi i declare enumaration as: enum en { a = 0, b, c } but when i write enum x = (en) DataRegistryKey.GetValue("a"); give error how can do this with out error thank you Hytham, The question is how it is stored in the registry. - If it is stored as a string represeting one of the enum names (like "a", "b", or "c"), just use Enum.Parse() method (as PJ said). You may need to specify parameter to ignore case. - If it is stored as an integer number, parse it to int first then cast it to your enum: en myValue = (en) Convert.ToInt32( DataRegistryKey.GetValue("a ...Show All
Windows Forms declare datatable, dataset and dataadapter as public or provate?
I saw a sample in which datatable, dataset and dataadapter were declared as public variables. Is it good practice Public or pravate Encapsulation and abstraction are extremely important in OOP design. Good OOP design is a often thought of as a black box with knobs, dials and switches. You have knobs and dials to set values and fli ...Show All
SQL Server SRS 2005 and SQL Server 2000
Can I create a report using the VS 2005 that is installed with SQL Server 2005 that I can publish to SRS 2000 Failing that, can I convert my SRS 2000 to SRS 2005 and create reports with SRS 2005 that use SQL Server 2000 data sources You cannot publish 2005 reports to a 2000 server. You can create reports for SRS 2005 that use SQL Server 2000 as a data source though. You should be able to upgrade either at install time of SRS 2005 or via the Configuration Tool after you have installed (there is an option to convert an existing SRS 2000 catalog to a 2005 catalog). ...Show All
Visual C# Print Data Grid View
Hi there, I am trying to print contents of Data Grid View (including header in VS.NET 2005). I have found some samples for Data Grid but they don't work for DataGridView. I was wondering if someone had any ideas and possibly code samples. Appreciate any response. Thanks JGIS Take a look at this article: Printing the DataGridView . ...Show All
SQL Server "product level is insufficient" message during flat file import
I'm using the import wizard to create a new table from a flat file source. The table gets created but no data gets copied. What's wrong Here's the report: Operation stopped... - Initializing Data Flow Task (Success) - Initializing Connections (Success) - Setting SQL Command (Success) - Setting Source Connection (Success) - Setting Destination Connection (Success) - Validating (Error) Messages * Error 0xc00470fe: Data Flow Task: The product level is insufficient for component "Source - inSsrc_txt" (1). ...Show All
Windows Live Developer Forums Windows Live Messenger Beta Invitation Winners
Last week, the Messenger team offered Windows Live Messenger Beta invitations to the first 5 people who submitted Activity Apps that passed the provisioning process. Drum roll please... And the winners are: 1. Notesaic by Daniel Tse 2. Quatro by Chris Weeink 3. Boter kaas en Eieren by Glenn Klijn 4. Let's Play Chess by Prasad DV 5. CooperYoung by Frans-Willem Hardijzer Congratulations to the winners! You will be receiving your beta invitations shortly via the email address used when you submitted your application to the contest. Keep the apps coming! The Worlds Best App contest continues until midnight (PST) December 31, 20 ...Show All
Visual Studio Express Editions font install
hi I use a special font in my app with textbox and drawstring methods. How can I install this font with the apllication i tried to copy the fontfile to windows\fonts folder but even on restart the font does not show up until I manually open the fonts folder and click on the font hi, Is your problem solved Thank you, Bhanu. ...Show All
Visual Studio 2008 (Pre-release) Standardization XAML, as WEB the standard ???
I am developer WEB of applications and I use technology ASP.NET 2.0. After first acquaintance with WPF, I have understood, that I should be reoriented on new technology WPF, besides many official sources Microsoft write that Avalon and XAML functionalities which in hundreds times surpass DHTML give! In connection with that, that XAML applications can be integrated very easily with WEB, I believe, that would be more correct to build applications for WEB on XAML. But here there is one problem: Existing technologies, such as HTML, DHTML, JavaScript - are WEB standards which are supported by all br ...Show All
Visual Basic Table allows HTML Radio but not ASP Radio Buttons (WHY?)
Using the webpage below I can add a HTML radio button inside or outside of the table and it works fine. When I add a ASP radio button it only works outside of the table. Inside of the table the ASP radio button looses the circle and all functionality. The same problem occurs with check boxes and some addin controls from Infragistics. I think that if I can find a solution to the ASP radio button problem it will also fix the other controls. Where am I going wrong The Master Page is: <% @ Master Language ="VB" AutoEventWireup ="true" %> <! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 T ...Show All
Visual Studio Tools for Office Add a Slide Module to the VBE with VBA
I would like to be able to programmatically create a PowerPoint Slide object in the Visual Basic Environment. Since this code will need to reside within or be activated by the slide, I would like to know how to programmatically add a Slide Module to the Visual Basic Editor. I already know how to add code to an already existing Slide Module from a remote application, but not how to add the actual Module. I thought that by adding a new slide the corresponding code module would be created. Below is the code I use to add code from another application. Trying to use the Add method ends with no results; no error or Slide Code page. objPPTApp.V ...Show All
Visual C# In C# override printf() used in C++ dlls ?
Hi, I am developing a C# application which uses several C++ .NET assemblies. These C++ .NET assemblies uses several old un-managed C++ dlls, which again calls printf() as the main user/developer feedback. What I am wondering, is if I can somehow override the printf() method used in the old-style C++ unmanaged dlls, to catch the contents (what is being printed) and e.g. print it into a text control in my C# Form If possible, I would like to override the printf() in my C# application, but I an not sure where to start... Thanks, Torbjorn PS: I do have access to all/most of the C++ source code, so I can do modifications in C++, bu ...Show All
Visual Studio Tools for Office Add/Remove Worksheet in VSTO Workbook
I created various worksheet inside a VSTO workbook, but now, I can't remove my testing worksheet and add blank new worksheet. 1. I can't select Delete in solution explorer when right-clicking on the worksheet item. 2. Even I remove worksheet in Designer pane (right click the tab at the bottom of Excel workbook and selete Delete), rebuild the VSTO project and then the deleted worksheets are all still here. I then Refresh the workbook object in Solution explorer, and all deleted worksheets come out again. I tried to use the "Add new Excel Worksheet" from the function menu by right clicking on the workbook in solution explorer, it ha ...Show All
Windows Forms Sorting CategoryAttributes for PropertyGrids
This is my first post, and I just want to say that I am so excited that I found this dev forum. It will come in very handy for development. Thanks everyone for being a part of it. I wanted to talk about Sorting Categories in property grids. I have failed to find anything that tells me how to do it. I have made a properties sorting class, but not category. I have come across a way to do it. Pardon my stupidity if everyone already knows this, but for the new devs, it will help. Lets take my example: This is property grid data to be shown in a windows form property grid. I'm not going to go into the wi ...Show All
