Flavia Lemes's Q&A profile
SQL Server SQL 2005 Express New Login
Hello all Im new to SQL 2005 express so please bare with me, I have set up wireless peer to peer network and I am trying to access an express database from one machine to another. I can transfer files no problem. When I try to create a new login, I am forced to only select logins local to the machine with the database. When I try and create a new login by typing <machinename><windows account > of the second PC, SQL can not see it. I have tried both Windows authentication and mixed mode... no success. Any ideas Thanks Thanks for the reply I have set the server to accept Mixed mode. I then created a user account. I gave the user account membership to dbo Role. I changed ...Show All
.NET Development How to design class in net2.0 with C#
er... The problem is, I have learned the basic of C# and OO, then I want to start to write code, but, I found that all my studyed is like an empty paper, I do not know how to begin, somebody help me please Thanks a lot, I am a beginner. What i will suggest you to follow following steps 1. First create small application with each topic , you can go in MSDN and go to Development tool and languages , then clikc on .NET Development and then finally go thtrough each topic in Core development. This is best way and should try each feature of the .NET by creating small application . That's how i also learned . 2. Once you done with core development , you can move to Advanced Development. In case you need any help reagrding which b ...Show All
Windows Forms UserControl with ComboBox
My aplication needs a usercontrol consisting a combobox. So I have to provide the commonly used propertiesfor the comboBox for this usercontrol as well. I build this UserControl DLL and using in some other Windows Forms, but then some problems arises. I have few problems in that: 1. There is a property called "FormatString", I have attached the editor "FormatStringEditor" also with this while declaring this property. But when I try to use this property in the "property-pane" I am getting an error Object Reference not set to an instance of an object" 2. I have also exposed the property for "Text" and "Items" and attached these properties to the ComboBox corresponding prop ...Show All
Visual Studio Express Editions Matrix implementation problem
Hi everyone, I am implementing a matrix program which create matrix according to the values on a file and write to or read from files the values of the matrix. However, since I am not able to compile my program, I would like to ask you that whether my class si logically correct and whether it gives a compile time error or not. If there is unexpeted situations in my code, would you please help e to fix them class SymmetricMatrix { public: int index1; int index2; int **matrices; /* * Constructor that initializes an empty matrix with a given size. */ SymmetricMatrix(const int matrixSize){ size = matrixSize; matrices = new int*[size]; for(int a = 0; a < size; a++) matrices = new int[size]; // assigni ...Show All
SQL Server package detect that instance is already running?
Folks, I have a package scheduled to run every hour. Users have asked if, in addition to the scheduled run, they can have it so that they could dump a file into the input directory and then kick-off the package immediately. Problem is that things fail if they try to start the package when the scheduled instance of the package is still running. Is there any way that the package could check to see if an instance if itself is currently executing and refuse to execute if there IS an instance running PJ Hi Michael, Currently I'm just piloting this by getting users to go to SQL Server Agent in the management studio, right clicking on the job and selecting "Start Job at step.." ...Show All
Visual Studio 2008 (Pre-release) Forcing refresh of a Window object
Hi at all I want to ask, if it is possible to force a repaint on a wpf Window object With WinForms there is possible to call Refresh() on a Form object. Is there a similar method to do this on the Window object Thanks for answering. Thanks for your tips. I tried it out and it should work for my intention. I read the section about threading and i also tried a solution with Delegate.BeginInvoke. But the problem is that i need to create a new UI component in the second thread (this is the time time consuming part which throws events which have to be displayed in the first window component) and this leads to an exception because the second thread is MTA and not STA. That was the problem with this solution. ...Show All
Software Development for Windows Vista Subscription service and persistence service
I've implemented a custom subscription service that inherits from WorkflowSubscriptionService. I have a state machine workflow that's been published as a web service. In my workflow I have a CallExternalMethod activity that sends an e-mail message, and a HandleExternalMethod activity that listens for incoming e-mail. I'm using my subscription service to get the WorkflowInstanceId based on a message ID that I embed in the e-mail message. I've tested this and traced my workflow and everything works. When my workflow sends out the e-mail, it calls CreateSubscription on the subscription service. When the event is received, it calls DeleteSubscription. This would seem to be the correct behaviour. Then I added the SQL persistence service a ...Show All
SQL Server SSRS Security issues following upgrade to 2005
We've recently installed SQL2005 with Reporting Services on a 64bit server, and migrated the old ReportServer database from SQL2000. All seemed fine, except we get some security related errors. Firstly when you try and change any of the item or system level role definitions, an internal error is displayed, e.g. An internal error occurred on the report server. See the error log for more details. (rsInternalError) Conversion failed when converting the nvarchar value 'System Administrator ' to data type tinyint. Also, the ReportServerService log files continually generate loads of the following errors for different catalog items: ReportingServicesService!library!15!30/08/2006-14:54:12:: Error on upgrade Upgrade ...Show All
Visual Basic COM interop using exe instead of dll
hello, i have a program that is used both as an exe, and as a COM dll instantiated in a VB6 program. maintaining this has been a pain in the butt, so i would like to know how i can just use the exe and not have to compile the dll at all. i have made my exe COM aware, but everytime i try to instantiate it i get an error. do i have to use regasm to accomplish this task all th docs discuss dll's, and do not explain anything about exe's. please give an example if possible. I have tried this: compile exe run regasm to create tlb (regasm myprog.exe /tlb:myprog.tlb) but reference in vb6 causes errors. does not cause errors with dll. thanks, Daniel Unfortunately, .net doesn't support the no ...Show All
Visual Studio Express Editions my visual c++ express crashed !!!! need quick help
hi evrey body i've installed the visual c++ express version and and all works fine i came to this forum and i ask if i can make a win32 application they advice me to install the SDK adn then to make some changes to this file E:\work\visual studio 8.0VC\VCWizards\AppWiz\Generic\Application\html\1033\appsettings.html when i changed it the visual c++ has been crashed this is my file i upload it please can any one here give me the original file or if he can give me the modified version of this file so i can make a win32 application http://rapidshare.com/files/652184/AppSettings.htm Could you provide more info What did the crash look like or when did it exactly crash Thanks, Ayman Shoukry VC++ Team ...Show All
Visual C++ Is there any line combo box in VS 2005 or color picker???
I wanna do something like in Excel Char wizard, User could choose line style and line weight, marker style and color thank you very much, i really need to know as soon as possible. Seems these type of questions are outside the scope of this forum Please check with some developer website like codeguru.com, codeproject.com etc... ...Show All
Visual C++ Maximize windown command
i know there's a command that maximizes a windown when the program starts. i'm running an SDI and want the program to be hardcoded to start at a maximized size. thanks for the help When designing the form, you should find the WindowState property among other Form's properties. Or, at runtime, set this property on Form_Load event: WindowState = FormWindowState::Maximized; Andrej ...Show All
SQL Server Moving a database application to SQL Server 2005 Express
I have been programming an application with VC++ 2005 and SQL Server 2005. I have converted an old 16-bit database to 32-bit managed code and SQL server and the application seems to be good. Now I want to deploy the application to another server for testing. I have installed XP SP2, Windows Installer 3.1, Net framework 2.0 and SQL Server 2005 express to the test server. I have transferred the application with WI 3.1 and the program works well in the test server till the first SQL command. I have made a back up of the database and restored it in the test server. In the test server I can log in the database with Server Management studio and I can read the data there correctly. I have enabled both named pipes and TCP/IP for the database in th ...Show All
Visual C++ LINK WARNING 4221 How to handle the situation
Hi, I am frequently getting LINK 4221 warning and my shared library Loading is failing. How to handle the situation. Could someone please guide me Thanks Jayaram Ganapathy I have around 5 lib(static library) files. I have C++ code in these static libraries. I created a shared library and linked these .lib files. Some functions in these lib files, if I call from the DLL code, the dll is not getting loaded. One time I deleted an object file which was giving this warning and was able to use a function in this file. I will explain it in another way also. I have a constructor call. If I comment the code and build the shared library, that dll I am able to load with LoadLibraryExW call. But if I uncomment then the build happ ...Show All
Windows Forms Simple yet annoying question about DataGridViewTextBoxColumn
One of the columns I read from database is a boolean . Basicly its being False means Gender is "Male" , True means "Female". In DataGridView i want that column to say their gender but i cant make it work if i try to set that column's value to "Female" by dgvList(e.RowIndex).Cells("Gender").Value = "Female" on CellFormatting event, it tells me "Female" isnt a Boolean. Telling me i can only set "True" or "False" in that column. Help The Events i tried i think it might help you get the idea of what im trying to do: Private Sub dgvListe_CellPainting( ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellPaintingEventArgs) Handles dgvListe.CellPainting 'If dgvListe.Columns(e.Colu ...Show All
