dayjur's Q&A profile
SQL Server Restoring database from MS SQL 2000 to SQL Express 2005
Hello, I tried to restore a database which I backuped from MS SQL 2000 to SQL Express 2005 but it always failed with the following error message. What could be the problem Restore failed for Server 'SERV\SQLEXPRESS'. (Microsoft.SqlServer.Express.Smo) Additional information System.Data.SqlClient.SqlError: The backup set holds a backup of a database other than the existing 'gtp' database. (Microsoft.SqlServer.Express.Smo) Thanks I already fixed the problem. The .bak file was corrupt. The file that i dowloaded from the schoolserver was also corrupted. But i got my hands on a good version. Thx for the help. ...Show All
Windows Forms datagridview show the bottom cells
How can i get the last rows to be the ones that are shown in a datagridview when filling it with a dataadapter. What i mean is, when i fill the dgview i can scroll down to see the last rows, but i would like if the dgview was scrolled down by default so that i displays the bottom rows. Try setting the bindingsource's postion to the last row in the datasource Imports System.Data.SqlClient Public Class Form1 Dim bs As New BindingSource Dim dt As New DataTable Private Sub Form1_Load( ByVal sender As System. Object , ByVal e As System.EventArgs) Handles MyBase .Load Dim strConn As String = "Server = .\SQLEXPRESS;Database = Northwind;Integrated Security = SSPI;" Dim ...Show All
SQL Server Reinstalling Sql Reporting Services
Hi, I uninstalled Sql reporting services through Add/Remove Programs, now i'm trying to install it back but SQL Setup not allowing me to do this as all the checkboxes to select components to install are disabled. I'v tried both running via Add/Remove programs and directly running SQL setup exe. can u guys direct me to something regards faraz ...Show All
Visual Basic JIT Debugger Error message caused by filelistbox
I have been working on a program and testing it on another computer that has the .Net framework installed. My program works fine on my computer with .Net installed. However, when I run it on the other computer (with only the framework installed) I get a random error: MyApp.exe - Common Language Runtime Debugging Services Application has generated an exception that could not be handled. Process id=0xf3c (3900), Thread id=0xf64 (3940). [The numbers in this error line are different everytime] When I hit cancel to debug it displays MyApp.exe - No debugger found. Registered HIT debugger is not available. An attempt to launch a JIT debugger with the following command resuled in an error code of 0x2 (2). Please check co ...Show All
Visual C++ including atltime.h cause tenth of errors
Hi, I'm trying to measure elepsed time in my C++/CLI project thus in order to create an CTime object I include atltime.h. This cause immediatly tenth of errors the first one is : C:\Program Files\Microsoft Visual Studio 8\VC\include\crtdbg.h(1141) : error C2039: 'delete[]' : is not a member of '`global namespace'' What is the cure Dan Thanks for the prompt reply. I'm using Visuall 2005 C++ pro. and when I needed to measure elapsing time I fell upon a CTime example. In any case I took your advise and I'm using .NET DateTime and it works fine. Dan ...Show All
Visual Basic Resize windowform1
hi, i am new to VB.net(Windows application) how to dynamically increase/decrease control size when form size is increased/decreased by user i tried using tablelayoutpanel/Anchor/docking.i find it using very diffcult to use.(I think i dont know how to use it ) is there material available in online about how to use tablelayoutpanel/anchor/docking Thanks in advance There's different ways to go about it depending on the desired effect, but here's an example that will resize a picturebox based on the size changes made to the form: Dim oldSize As Size Private Sub Form2_ResizeBegin(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.ResizeBegin Me.oldSize = Me.Size End Sub Private Sub Form2_Res ...Show All
SQL Server Programmatically creating Transformation Script Component
Does anyone have any examples of programmatically creating a Transformation Script Component (or Source/Destination) in the dataflow I have been able to create other Transforms for the dataflow like Derived Column, Sort, etc. but for some reason the Script Component doesn't seem to work the same way. I have done it as below trying many ways to get the componentClassId including the AssemblyQualifiedname & the GUID as well. No matter, what I do, when it hits the ProvideComponentProperties, it get Exception from HRESULT: 0xC0048021 IDTSComponentMetaData90 scriptPropType = dataFlow.ComponentMetaDataCollection.New(); scriptPropType.Name = "Transform Property Type" ; scriptPropType.ComponentClassID = "DTSTrans ...Show All
Visual Studio Team System Adding new role in security for report manager
Hi there, I'm trying to give report browsing permission to everyone in my team by adding distribution list which is also security group as bowser and centent manager, but it throws errror saying "the user or group name 'domain\blah' is not recognized. (rsUnknownUserName) What are the requirements for any group to add as one of the roles in report site Thanks, You may want to try the Report Server forums found here: http://www.microsoft.com/technet/prodtechnol/sql/community/default.mspx A quick search on live.com turned up a number of items, but this is what MS has to say on the error: http://msdn.microsoft.com/library/default.asp url=/library/en-us/rserrors/htm/Microsoft.ReportingServices.Diagnostics.Utiliti ...Show All
Software Development for Windows Vista WWF Scenario using ASP.NET
Hi, I want to implement a WorkFlow in ASP.NET using Windows Workflow Foundation. I have a Web Form where user 1 fills in the form and submits it. This form and the saved data is then sent to user 1's boss who reviews the data and submits the Web Form to his boss and so on and on until it goes to the top of the Organisation where it is finally approved or rejected. Each time the form is subnitted an email is sent to the next person on the Organisation hierarchy letting them know that the Web Form is awaiting their approval. 2 Questions: 1) Can I use Windows Worflow Foundation in conjunction with ASP.NET. Alot of examples I see use WinForms 2) In relation to my Business Process Scenario can I implement above using ASP.NET and ...Show All
Visual Studio Team System Problem with witimport
All, I've just made a change to a work item definition, and imported it as usual using witimport. On the last couple of occasions i've done this the changes don't seem to be reflected in the form layout presented to the users. witimport validated the changes ok, and didn't report an error during the import I've tried exporting the new definition, and my changes are present. I've cleared the cache (once using teamplain and once using witfields rebuildcache). I've turned tracing on, on the web service, and there are no exceptions Nothing that appears relevant in the event log* * except TFS Services restarting every hour. Very strange. I'll investigate separately. How do I go about solving this one The last time I had to reboot the machine ...Show All
Visual C# Read pixel from other application?
hello, i would like to know if it is possible to read pixels, from an minimized application. And show them on a picture box in my app. If somebody know this, please tell me how, where to start or give me an example. Thank you very much Chris You can get The pixel from another application with help of some API call There are two approach First Method: Capture forground window Then Create Bitmap from it then use Managed Bitmap class to read pixel from it some thing like Bitmap bmp=etDesktopWindow(); Color color=bmp. GetPixel (Cursor.Position.X,Cursor.Position.Y); For an example for this method look at How to use Visual C# to obtain the color of the pixel that is referenced by the mouse pointer ...Show All
.NET Development Writing custom web service for sharepoint 2007
i can find a article which explains how to do it in sharepoint 2003, but unable to find anything for 2007. has anyone done it , please help. or if you are familiar with the differences between 2003 and 2007(asp.net 1.1 vs asp.net 2) can you guide me in translating the below article http://msdn.microsoft.com/library/default.asp url=/library/en-us/odc_sp2003_ta/html/odc_writingcustomwebservicesforsppt.asp hi there i am have the same problem and also i want to read some information form a web.config file. a) where to deploy the web.config file. b) where to get the guid wghat is thsi guid stand for as in the project name. c) wheni compile an new projjcect in 2005 . i ma getting the s ...Show All
Game Technologies: DirectX, XNA, XACT, etc. I cannot compile any XNA tutorials
I have Microsoft Visual C# express and XNA Game Studio Express, but when I create a new project and follow the tutorial (any tutorial) and copy and paste the code into a new project, i cannot compile because there are errors when i press F5. Example in tutorial 1: displaying a 3d model on the screen i follow all the directions and when i copy and paste the code at the end and hit f5 i get the first error in this line: myModel = content.Load< Model >( "Content\\Models\\p1_wedge" ); and i cannot continue. I have tried several tutorials in the past weeks and none run. I need help for doing this for school. Thanks I copied the one file into the models folder and the other into textu ...Show All
Visual C# Overriding equals
Hello, I was reading “Guidelines for Overloading Equals() and Operator == (C# Programming Guide) <http://msdn2.microsoft.com/en-us/library/ms173147.aspx>”. As a general rule should the derived.equals(base) yield true I guess if derived IS-A base then it should yield true According to their example the answer is yes. Thanks Houman Thanks for the respones. If you follow thier example closely, here is what you'd get: ThreeDPoint threeP = new ThreeDPoint(1,2,3); TwoDPoint twoP = new TwoDPoint(1,2); //initialize... bool thisIsTrue = twoP.equals(threeP); //returns true because you can cast threeDPoint into a twoDPoint bool thisIsFalse = threeP.equals(twoP); //returns ...Show All
SQL Server Advice???
hellooo I have an Accounting system(vb.net 2003, SQL server 2000), every new year data is cleared, but i may use some data from previous years (such as liabilities) whats the best way to that -Shall I create programmatically a new clone DB every year (new DB with same structure as previous year) OR -Shall I add a "year field" for tables in DB knowing that data will keep growing every year whats the best solution, knowing that i dont want the end user of my application to do anything manually, such as creating DB ...... Thank you The answer is you NEVER delete anything in an accounting system, the accountants will not be happy if you delete things at year end. The accou ...Show All
