I am using SQL server in Visual Studio 2015. I can't seem to execute a query on my database. I have also tried to restart my visual studio and refresh my database. These are the errors that appear.
Microsoft Visual studio error that appears on a dialog box:
An exception has been encountered. This may be caused by an
extension. You can get more information by examining the file
\AppData\Roaming\Microsoft\VisualStudio\14.0\ActivityLog.xml
Error that appears when I try to execute a query:
An error occurred while executing batch. Error message is: Horizontal
scroll unit should be greater than zero.
I get this issue quite often.
Updating SSMS or Restarting the system does solves the issue for me.
Related
I am getting the following error - shown in the screenshot - when I click on "Edit Top 200 Rows" for my database table in SSMS. It's about just in time debugging but what should I do about that?
I have enabled Just In Time Debugging for Native, Script, Managed code in Visual Studio Settings.
Probably a bad running of SSMS or a bad install.
close and run a new instance of SSMS
if this does not solve :
shutdown windows
if this does not solve :
reinstall SSMS
It has multiple copies of each button:
Link to screenshot
How do I get rid of this problem. Restart won't work.
Also I'm getting warning when I launch SSMS
Warning
Greeting; I have a development virtual machine I use daily for my job. Today I had a Windows Updates KB3212646, KB3197868, KB3185330 install and request reboot. After rebooting, I started getting errors in applications that ran SQL Statements. I opened SSMS 2014 to test and was getting different errors on simple selects. Example, I got all three of these errors from running the simple select a few times in a row.
select * from MVXJDTA.MITMAS
--An error occurred while executing batch. Error message is: Internal connection fatal error. Error state: 18
--An error occurred while executing batch. Error message is: Index was outside the bounds of the array.
--An error occurred while executing batch. Error message is: Object reference not set to an instance of an object.
I'm running Windows 7 x64 SP1.
I have Visual Studio 2010, 2012, and 2013 installed.
I have SQL Server 2008 R2, 2012, 2014, and 2016 installed.
I have removed the updates after the failure and I still have the errors. The errors don't occur on SMALL select statements, only larger ones. (MITMAS has 171,252 rows, 224 columns) Not a massive table by any means, but not a simple one either. If I do select top 100 MMCONO, MMITNO from MVXJDTA.MITMAS I do not seem to get the error. I have tested in SSMS for 2012, 2014, 2016, and in Visual Studio 2013.
I have not had the problem to till today, I know several Windows Updates installed Tuesday, but I didn't have issues yesterday after that reboot. I have not installed or uninstalled any other software.
Any assistance is appreciated.
In response to the comment that is can't be happening with the query listed:
Sadly, I was unable to resolve this issue. I installed all available service packs for all products, and even reinstalled the three updates listed in the question. After 10 hours of trouble shooting, and knowing I had to work again today, I started the restore process from backup. I believe something was corrupted in the .Net framework or Native client, as no software using the SQL Native client could run any statement that returned more than a few rows.
I will snapshot the machine before any more Windows Updates are installed, and advise here if those updates cause the problem to reoccur.
Sorry I couldn't report a better solution.
Billy
I have searched all over this issue and have found no solutions.
This is the error I am getting:
An error occurred while executing batch. Error message is: Method not found: 'System.String Microsoft.SqlServer.Management.Smo.Util.BytesToHexString(Byte[], Int32)'.
I had no issues with this prior to installing the Windows update for Service Pack 2 and I need this working for my class. My instructor also has no idea how to fix this other than a reinstall which is my LAST resort.
I know it is not my queries, as they ran perfect prior to this update.
Please help
I just had exactly the same problem, on a clean install of SQL Server 2014 (Express edition) and found that restarting the server itself cured the problem. (In Management Studio, right click on the server at the top of the tree in the object explorer and choose "Restart", or just restart the service...)
In the past, I installed Visual Studio 2010. With that comes SQL Server.
Now I installed this:Microsoft SQL Server Management Studio Express
Now, upon starting, I get this screen:
And it doesn't matter what Server name I enter, nothing works.
I've tried installing SQL Server 2008 Enterprise(I can get that via MSDNAA), but that fails totally, giving me this error:
TITLE: Microsoft SQL Server 2008 Setup
The following error has occurred:
Unable to open Windows Installer file
'G:\x86\setup\sql_engine_core_inst_loc_msi\1033\sql_engine_core_inst_loc.msi'.
Windows Installer error message: The
system cannot open the device or file
specified. .
Click 'Retry' to retry the failed
action, or click 'Cancel' to cancel
this action and continue setup.
For help, click:
http://go.microsoft.com/fwlink?LinkID=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=10.0.2531.0&EvtType=0xC24842DB
------------------------------ BUTTONS:
&Retry Cancel
There is no help, I can click retry as much as I want, nothing changes. I went to the file itself, and Windows says I should check if it is a valid installer file.
And that's my story. I need to get this up and running, and it's all going against me. Can anyone help?
Oops, I have the same problem [1]!
Though I did not investigate the issue
(since I do not need now VS2010 or SQL Server Express)
You can find helpful the answer to my [2] which was reported helpful to resolve the problem by others.
I am afraid it should be reported as bug to MS Connect, though I do not have time and desire to invest time in investigation. Anyway, when MS teams cannot resolve something they close bugs "by design" or "not reproduced"
Since there is no channel to report bugs on SQL Server 2005 xxx (or VS2008), for which the reports are closed, it should be reported in VS2010 board.
Give link if you report, I shall upvote the bug and mark it as reproduced by one more.
My related questions (having some solutions):
in asp.net "Visual Studio and Visual Web Developer Express " forum, frequently answered by MS teams
[1]
S2010RC setup installs unusable MSSQL2008 Express?
(the same problem as yours, unanswered)
http://forums.asp.net/t/1571173.aspx
[2]
MSSQL2008R2 (BIDS, i.e. VS2008) after VS2010?
(answered and solution is reported to be helpful to others)
http://forums.asp.net/t/1568816.aspx
[3]
to submit bug reports on BIDS 2008 R2 as VS2010 bugs?
http://forums.asp.net/t/1568807.aspx