I have been using VS2010 without any issues, always on the same application. Suddenly within the last my solution has become unbearably slow when right clicking. When doing other projects, it is fine. The only thing I can think of that I changed was disabling the SQL Server debugging.
It happens if I right click anywhere within the code editor. Everything freezes for about a minute and a half, then the right click menu shows up. If I try again right away, the same thing happens.
Intellisense seems to work fine. It is only the right click.
The project is fairly big, but it has been working fine. I am working on a 2 month old top of the line MacBook Pro (running Windows 7 64 bit in Boot Camp). I did do the patch Tuesday big batch of Microsoft patches in the last 24 hours...
Can anyone suggest where to look?
A delay that long is almost always associated with network time-outs. Use the trouble-shooting strategy demonstrated by Mark Russinovich in this blog post.
Windows 7, x64, 12GB memory, very slow right clicks:
The following steps fixed the problem for me. Right click is now instantaneous. Your Mileage may vary:
I deleted the following directory:
%AppData%Local\Microsoft\VisualStudio\10.0
and reinstalled these three packages from the Visual Studio 2010 Ultimate DVD
Microsoft SQL Server 2008 R2 Data-Tier Application Framework with this command:
\WCU\DAC\DACFramework_enu.msi
Microsoft SQL Server 2008 R2 Data-Tier Application Project:
\WCU\DAC\DACProjectSystemSetup_enu.msi
Microsoft SQL Server 2008 R2 Transact-SQL Language Service:
\WCU\DAC\TSqlLanguageService_enu.msi
Related
I'm at a bit of a loss on an intersects query that I'm sending via EF6. It works great against my test and production databases, but I recently set up a new box and restored my production database onto the local machine and the intersects query hard crashes the SQL Server process. Overview of the line of code that blows this up:
public async Task<TicketResultModel[]> ResultsByBoundingBox(DbGeography box)
{
var addressIds = await _addresses.Where(a => a.LatLon.Intersects(box)).Select(a => a.Id).ToArrayAsync();
...
}
So, my question is what should I check that would make this particular query succeed against my other databases, but fail against the local SQL Server 2012 installation? Mind you, everything else seems to work.
I have already installed the SQLSysClrTypes. Is there something else (there must be!)?
This turned out to be an issue of x86 vs x64. Rather than giving any sort of error message at all about wrong architecture, the process would just crash. Hard. I had x86 SQL Server 2012 installed. The machine architecture is x64, so I think the box was magically choosing to use the x64 spatial libraries. Unfortunately, this magic did not result in unicorns and rainbows: That happened after uninstalling SQL Server 2012 x86 and installing SQL Server 2014 x64.
Hope this helps someone who has done something silly!
With the exception of a little HTML/Javascript, I've always used C++ on Visual Studio C++ 2010. I have an internship next week that will involve the use of SQL and .Net. I'm currently reading a book on SQL and it instructs us to go to its website to download code so that we can practice. The website is here: http://forta.com/books/0672336073/ I downloaded the one labeled "Microsoft SQL Server" which is basically two .sql files. One creates a simple database and the other one populates it.
However, for the life of me I cant figure out how to do it on Visual Studio 2010 or 2013 (I downloaded the full version of 2010). If anyone knows how to get these file to run on either VS version I would be very happy. I'm used to just hitting the green arrow button in Visual Studio C++ 2010, which I believe is execute. Obviously it isnt working for my sql code.
On VS 2013 I created a new "SQL Server Database Project". I then added two new "Application Role" items for the two .sql files. Now after clicking the "SQL" tab and "Execute" I get error messages about duplicate objects/keys, which I assume means the database is already created...but how do I view it? At one instance I mustve hit the right combination of buttons because I was able to view my database in a table format.
Thanks for any suggestions!
In visual studio go to view and select sql server, (see image) then click the + symbol and connect to the server installed on your machine (if its not yet listed)
I'm using Visual Studio 2012 for development. I really like using the SQL Server Object Explorer to work on database related tasks (queries, schema changes etc.). The issue is, every time I reload the IDE, I have to connect to the databases I work with. Is there a way to persist the list of databases like I can with the Server Explorer tab?
When you say you can't replicate, how long have you been using the explorer for to attempt to replicate it? It only loses the connections every now and then, so in fact right now I can't replicate it either, but over the next few days I'm sure they will get reset again!
It seems that there is something wrong with your VS IDE
It seems that this is a little bit unlikely as the same thing happened to me when I was running in VS 2012 beta running on Win 8 Release Preview too.
However I will try your suggestions and i'll see what happens, just to clarify are you saying that I run those commands once and then after that use VS as usual or are you saying that I try running in safe mode all the time?
Is reset settings same as the Import and Export settings->Reset All Settings menu item? (By the way I run with general development settings)
Anyone know where these connection settings are actually stored (registry, folder ...)?
Open VS. Don´t open any project or solution.
Add your databases in the Server Explorer.
Then File -> Save All
I have a package that is used for DQS cleansing. I have nearly 650,000+ records to clean however after about 350,000 records processed I get a symptom that hangs my project up. For example, I will close my visual studio project/solution but once I try to go back to open my project I get the message "visual studio is waiting for an internal operation" in the lower right hand corner. Once this happens I can't click or scroll anywhere in my project.
I am using SQL 2012 to move data from one table to another but into another database within the SQL 2012 server/instance. In addition, I'm using the DQS client to clean and validate data for last name, state and country. My visual studio is version 2010. I'm running this all on a virtual machine that has 8g of ram and 4 cores. I do have the cumulative service pack installed for SQL 2012.
At this point, I have to kill my VS2010 in task manager but can't seem to work my SSIS project any more. I have to delete all my records in my destination table then I can get into my project once more.
Thanks for any help or ideas,
Michael
DQS Cleansing is a VERY resource intensive task. According to the Data Quality Services Performance Best Practices Guide, even when adhering to hardware recommendations and best practices, DQS cleansing on 1 million rows can take between 2-3.5 hrs.
Also, I agree with Pondlife's comments about running in BIDS vs DTEXEC. BIDS/SSDT is 32bit (limiting memory to 2-3GB) while DTEXEC has a 64bit version which can use way more memory.
I have a question. If it is possible to achieve I may just jump with joy.
As many of you undoubtedly already know, Visual Studio 2010 has support that allows you to drag and position your open files within a project. For example you have Page.aspx and Page.aspx.cs open. You can drag the tab and position it around. You can dock it in parts of visual studion, but you can also allow it to float as a separate window.
I am wondering. Can the same thing be done with Microsoft SQL Managment Studio 2008 R2? This would be extremely useful when I need to view a stored procedure or table and work on another stored procedure or table. I would love to be able to somehow drag out the tab to my second monitor.
If there isn't any built in functionality for this, is there any third party add-ons available? If not, does anybody have any tricks that they use?
No, SQL Server 2012 (code-named "Denali", due by the end of 2011) will be shipping with a new SQL Server Management Studio, based on Visual Studio 2010, which will feature multi-monitor support.
See: SQL SERVER – 2012 – Multi-Monitor SSMS Windows
With earlier versions of SQL Server Management Studio (based on VS2005/2008), you cannot do this, unfortunately.
You'll have to be patient until SQL Server 2012 ships... or you can download the CTP1 test release to get an early feeling of what it'll be like...
I was just looking for the same thing. After reading this answer, I was not impressed at all. I just thought.."what if...?"
Create a new vertical group, max sure SSMS is not maximized. Extend the window to the other monitor. Adjust the vertical groups. Now you have them on both screens. It works like a charm my friend. (;