Red Gate forums :: View topic - Set location of TFS Workspace that is used in SQL Compare
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SQL Compare 10
SQL Compare 10 forum

Set location of TFS Workspace that is used in SQL Compare

Search in SQL Compare 10 forum
Post new topic   Reply to topic
Jump to:  
Author Message
Brian25



Joined: 27 Mar 2014
Posts: 2

PostPosted: Mon May 05, 2014 3:19 pm    Post subject: Set location of TFS Workspace that is used in SQL Compare Reply with quote

I am using TFS and running compares against 2 branches directly from source control. When the compare runs it checks files out to a temporary directory. When I look in Visual Studio two workspaces have been created (SQL Source Control export).

Mapped to C:\Users\[UserName]\AppData\Local\Temp\[RandomName]

My company recently switched to a new anti virus that does real time scanning. The real time scan can adds a significant amount of time to perform the compare. Our IT department is hesitant to put an exclusion for a the antivirus because the exclusion would have to be for the entire Temp directory. I understand this is not a problem with redgate products themselves as fully disabling the anti virus yields significant improvements in the compare times.

Can I change a setting or modify a config file to change the default location for these workspaces?

Thanks
Back to top
View user's profile Send private message
Manfred.Castro



Joined: 23 Apr 2012
Posts: 209

PostPosted: Wed May 07, 2014 5:16 pm    Post subject: Reply with quote

Hi Brian,

The location of the temporary files is defined by the RGTEMP environment variable, or the TMP variable if RGTEMP does not exist (see your Windows documentation for information about environment variables).

You are not recommended to edit the TMP variable, as this will affect all programs that use the variable. Instead, you can create a new environment variable called RGTEMP, and specify the location. The RGTEMP variable should redirect the temp directory for all Red Gate programs.

Note:
You may need to log out of Windows for the change to take effect.

Manfred
_________________
Manfred Castro
Product Support
Red Gate Software
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group