Jose Francisco Ruiz Gualda's Q&A profile
Visual Studio Team System Question on merging through the API
Hi, I have a small application that merges files between two folders. To do that I'm using the merge method of Workspace class This is the way I'm using the method: workspace.Merge(sourceFile,targetFile, VersionSpec.ParseSingleSpec( CSNumber, null), VersionSpec.Latest , LockLevel.None, RecursionType.Full, MergeOptions.ForceMerge); My problem is in cases that I'm trying to merge between two files That the change on them (ChangeType) is: Rename or Delete On these cases the application fails. There is a way to merge this kind of changes through this method – workspace.Merge Thanks in advance, Shmulik. The problem is that I’m trying to do force merge – actu ...Show All
Visual Studio Express Editions GDI - moving image between pointA and pointB
Hello, I'm working on something that visualizes network traffic on a network diagram/map. I basically need to move a ball (bitmap image) between two random points. I figured I'd look at some 2D shooters to get an idea of 'how to fire a bullet from point a to b'. I thought I found everything I need, i.e. the Atan2, cos and sin, radius and degrees calculations. Basic highschool stuff I guess, but my results aren't accurate. The ball basically doesn't follow the line correctly. Its path slowly moves away from the line, so I'm obviously doing something wrong. I've tried several different versions but I keep ending up with the same results. Here's the relevant code: Private Sub GDIatansincosTest_Load( ByVal sen ...Show All
SQL Server Save Word Doc in Db
hi can u tell me plz how do i save a word doc or and excel sheet in sql server thanx the other option could be to save the Word and Excel in the database as WordML and SpreadsheetML (Office's XML representations of Word and Excel documents). Would only work if you have Office XP or higher. Just another option. If you did this you could run queries on the documents content. ...Show All
.NET Development Password Authenication ? What's wrong with this Code ? PLEASE HELP
Can you please help me with this , it only accept the first password in the table when i put a username and password <<<< these are two Textboxes here the code OleDbConnection Myconnection = new OleDbConnection(StrConnection); Myconnection.Open(); string Strcommand = "SELECT * FROM Table"; OleDbCommand Mycommand = new OleDbCommand(Strcommand, Myconnection); Mycommand.Parameters.Add("@username", OleDbType.Char, 32); Mycommand.Parameters["@username"].Value = username.Text; OleDbDataReader Myreader = Mycommand.ExecuteReader(); if (Myreader.Read()) { if (Myreader["Password"].ToString ...Show All
Visual Basic Fonts
How do you get the settings in "FontDialog1" to apply to "RichTextbox1" Set the richtext box poperty Font to that of the fontDialog's Font property if the user selects ok. This is written in C# but you should be able to quickly convert if (fontDialog1.ShowDialog() == DialogResult.OK) richTextBox1.Font = fontDialog1.Font; ...Show All
Visual C# VS2005 Pro/Developer and SQL Server 2005 Developer
why is that VS 2005 is supposed to only work with SQL Server Express edition when i say work i mean, directly adding new sql db's etc to app_data. I have VS05 Pro and SQL 05 developer, and they wont 'talk' to each other..isnt this stupid I tried to drop a createUserWizard from the toolbar, and just tried to run it, but it errors out when you try to create a user because it doesnt recognize sql 05 developer. the aspnetdb.mdf does not get created. is there a way around this more importantly, how do i get vs 05 to be able to directly create a db on sql 05 developer by adding a new db in the app_data folder VS2005 talks with all versions of SQL. However the initial release of the membership API (which is what you are trying to configu ...Show All
Visual Studio Express Editions Is there a trick to avoid the installation of service pack 2?
Hello, I have a few questions. Question 1 I have just tried to install Visual C++ express edition. Why do I have to use service pack 2 I do not want to install it. It took me 30 minutes to install service pack 2 and I will never use it. Why is that Is there a trick to avoid the installation of service pack 2 Question 2 Someone is writing a software package for me and the compiler of Visual C++ express edition has to be built into the software. Only the compiler! I intend to use the package for my own use, but let's say I am going to sell the package later while the compiler is in it, is that ok 1. All of the Express editions require SP2 to install. There are security update ...Show All
SQL Server Merge Join question
Hi, All, In the data flow of Intergration Service, my understanding is that the "Merge Join" only does the "join", there is no way to input the "where" clause. If I need to input the the "Where" clause or selection criteria, how should I do it in Integration Service TIA, john zhang wrote: Hi, All, In the data flow of Intergration Service, my understanding is that the "Merge Join" only does the "join", there is no way to input the "where" clause. If I need to input the the "Where" clause or selection criteria, how should I do it in Integration Service TIA, Depending in the source you are using; I wo ...Show All
SQL Server capture delta
how can I capture delta in SQL Server 2005 to refresh base tables in a data warehouse well we are infact replicating that table. Does transactional replication mean that you can capture/replicate only the DML(insert,update,delete) for specific objects. Since its a Data store on the other end the structure of the receiving table would be same as the source. ...Show All
SQL Server How to nightly copy 1 database to another
I know this is probably an easy thing to do but I've been struggling with this on and off for the past month or so. All I want to do is copy two databases (our app db's) to two other databases (for app testing and training) on the same server every night. The databases aren't used during this time so they can be taken down if necessary. I've tried using the Copy Database wizard and scheduling the resulting job but that isn't working... Thanks in advance for any direction/help! Thank you all for the help. After some testing, this is the final T-SQL set that does what I want. Use Master GO ALTER DATABASE Testing1 SET OFFLINE ALTER DATABASE Testing1Sys SET OFFLINE GO EXEC sp_detach_db 'Testing1', 'true' EXEC ...Show All
SQL Server can't connect to local user instance
Just when I think I have this stuff figured out, it bites me back everytime. I'm trying to deploy an mdf out to a different machine, and attached to it with local user instance. I connect without problem from my development machine with a local user instance, which also has Express Manager resident, and I can connect to a server instance without problem. What I can't do is copy the .mdf database over to another workstation, which has Sql Native Client installed, and connect to the database using a local user instance! I can connect to a server instance without problem from this other workstation. Here's my connect string for local user instance that works fine from my dev machine: Provider=SQLNCLI.1;Persist Security Info=False;In ...Show All
Visual Studio Install problem
Hi, After my admin rigths problem, I found probably another trouble. I don't have enough space on C: to install Visual Studio Team Ed. So I decided to install my new products on "d:/programs". Then I installed VS on "d:/programs/vs" and VS SDK on "d:/programs/vssdk". I was very happy to create and build successfully a new dsl project. Unfortunately, when I try to run it, VS said just : "unable to find a component. re-install the application" ! Wonderful ! Do you know where this trouble comes from Thanks, Olivier. ps : I used the "by default" install of vs2005 Hi Olivier, Probably what Edward said is true. We might have the same problem. Can you run the ...Show All
Visual C# Unable to connect to database
Hello. I am developing my databaseapplication, and I work on the same server where SQLEXPRESS is installed. My prototyping was done on a lokaldatabase. Now I need to connect to the real database but i get errormessage when trying to connect with wizzard: Unable to open physical file: D:/program files........++ . Operating system error 32 (Error not found)An attempt to attach an autonamed database for file.....failed. .. Do you have any suggestion what to do Now I tried with SQL server 2005 and i got this error. the file \\810-......mdf is not on network path that is supported for database files.. I always thought that I can connect to my databaseserver and database from my application w ...Show All
.NET Development Taskbar alternative
Where to look fo info about making an alternative taskbar somrthing you load instead of explorer.exe * handleling notify icons from third party program * current tasks * and stuff ... CiNN wrote: Where to look fo info about making an alternative taskbar somrthing you load instead of explorer.exe * handleling notify icons from third party program * current tasks * and stuff ... Ok, I was brought back here by another Microsoft Alert, so I'll go ahead and answer your questions to the best of my ability. Step 1: First of all, to replace explorer (the Shell), you need to set a registry setting (can't remember which one now) which tells windows that your program is going to be the shel ...Show All
Visual Studio Express Editions out of memory exception while loading a tif image
Hi, Im loading a tif image of size more than 4MB, into the picture box. With the help of following code snippet. FileStream fs = File.OpenRead(imagePath); Image img = Image.FromStream(fs); But while executing the statement Image.fromstream(), Im getting the exception System.Outof memory exception. Any suggestion for this problem.......... And This kind of error may occour when one of the following conditions is true: ? The image file is corrupted. ? The image file is incomplete. ? The program does not have permissions to access the image file. Resolution may be: Make sure that the image file is not corrupte ...Show All
