[Webinar] Learn how to a build a cloud-first strategyRegister Now


MsSQL errors

Posted on 2014-08-19
Medium Priority
Last Modified: 2014-08-28
We are using a program that links to a SQL database on our SBS 2008 server. users are constantly being kicked out of the program with connection errors to the database  on the workstation end such as
"07/21/2014 13:14:17 Error detected by CheckConnection; Error = TCP Provider: The specified network name is no longer available.


Communication link failure
; StateNativeOrigin = State:08S01,Native:64,Origin:[Microsoft][SQL Server Native Client 10.0]
State:08S01,Native:64,Origin:[Microsoft][SQL Server Native Client 10.0]
; RetCode = -1

On the server end, in the event log, i see under application log Event ID 1105 SOURCE:MSSQLSBSMONITORING
"could not allocate space for object 'dbo.eventlog' in database sbsmonitoring because the PRIMARY filegroup is full.
I checked and I have plenty of disk space on all my drives so not sure what is full and how to make more room or if that is even connected to the constant kicking off the programs at the workstation.

Question by:raffie613
LVL 40

Expert Comment

ID: 40270842
You MUST look at the database in SQL SSMS and allow its MDF to grow more than it is now - that's the message about "PRIMARY filegroup is full"

Open SSMS, connect to the server, expand the databases and right click the one in cause then select Properties.
Select Files from the left menu and click the Autogrow ... button then put the appropriate value so you don't fill up your drive then hit ok. Your PRIMARY database file can now grow by the amount you choose up to that max value.
LVL 70

Accepted Solution

Scott Pletcher earned 2000 total points
ID: 40270997
Run this command to get the logical file names:

EXEC sbsmonitoring.sys.sp_helpfile

For every file above that lists a filegroup of "PRIMARY", issue the following command:

ALTER DATABASE sbsmonitoring MODIFY FILE ( NAME = <name_from_command_above>, MAXSIZE = UNLIMITED )

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
It is possible to export the data of a SQL Table in SSMS and generate INSERT statements. It's neatly tucked away in the generate scripts option of a database.
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
Via a live example, show how to shrink a transaction log file down to a reasonable size.
Suggested Courses

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question