- Remove From My Forums
-
Question
-
I am getting the below error message when trying to increase size of our database in SQL Server 2005. Please help.
TITLE: Microsoft SQL Server Management Studio Express
——————————Alter failed for Database ‘CNG_Main’. (Microsoft.SqlServer.Express.Smo)
——————————
ADDITIONAL INFORMATION:An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.Express.ConnectionInfo)
——————————
CREATE DATABASE or ALTER DATABASE failed because the resulting cumulative database size would exceed your licensed limit of 4096 MB per database. (Microsoft SQL Server, Error: 1827)
——————————
BUTTONS:OK
——————————
Answers
-
Its a limitation of Express Edition. Maximum allowed DB size is 4 GB.
—Prashanth
-
Proposed as answer by
Tuesday, March 3, 2015 4:06 PM
-
Marked as answer by
Lydia ZhangMicrosoft contingent staff
Wednesday, March 11, 2015 11:49 AM
-
Proposed as answer by
-
Hello,
That’s a limitation of SQL Server 2005/2008 Express Edition as explained in the following resource.
http://www.sqlcoffee.com/Troubleshooting020.htm
Try to upgrade to SQL Server 2008 R2 Express Edition or later, that has a limit of 10 GB per database instead of 4 GB.
Hope this helps.
Regards,Alberto Morillo
SQLCoffee.com-
Edited by
Alberto MorilloMVP
Tuesday, March 3, 2015 5:25 PM -
Proposed as answer by
Lydia ZhangMicrosoft contingent staff
Wednesday, March 4, 2015 5:52 AM -
Marked as answer by
Lydia ZhangMicrosoft contingent staff
Wednesday, March 11, 2015 11:49 AM
-
Edited by
There are some possibilities :
1- Your data size has already reached 4Gbytes and that’s the limit for SQL server express edition.
2- Your data & log files has much space in it and data is less than four Gbytes.
You can consider few options here :
1- As advised before , check if yiu can reclaim any space from the databases file.
Select Name FileNme, size,fileproperty(Name,’SpaceUsed’) ‘Space_used’,growth,state_desc,is_percent_growth
from sys.database_files
Unless you have deleted/truncated much data , this method is NOT very guaranteed to help as the datafiles need to grow anyway. Also ,database in SQL server express Edition has SIMPLE as a default recovery model so the log file shouldn’t grow very much.
Give that a try and see if it helps.
2- You can create another database , move some of the tables with indexes to it and create views (with same name/owner) that reference these tables.
Caveats
======
1- this will complicate a bit your model and may NOT be supported by application vendor.
2- Referential integrity is not possible across databases so if some tables are referenced by FKs to one or more other tables then you won’t be able to move them.
3- Getting data from views isn’t always as good as querying the base tables.
1- Upgrade SQL server edition. That will cost you money.
Please let us know how it goes
THX
Please mark as answer if you think this answers your questions
-
Proposed as answer by
Charles Wang — MSFT
Monday, December 7, 2009 2:35 PM -
Marked as answer by
Charles Wang — MSFT
Monday, December 14, 2009 7:28 AM
I’m attempting to extract data from a SQL Server backup provided by vendors with whom we no longer work.
I only need data from some tables, but I need to examine the database structure to determine exactly what I need.
This is the only use I have for SQL Server and I don’t what to buy in big.
I tried SQL Server Express to restore the .bak file locally and received the error:
Restore failed…
CREATE DATABASE or ALTER DATABASE failed because the resulting cumulative database size would exceed your licensed limit of 4096 MB per database.
RESTORE DATABASE is terminating abnormally. (Microsoft SQL Server, Error: 1827)
I am having difficulty determining what alternative approach or minimum license I need to purchase to get me past this database size limit. The database seems to be only marginally over the limit.
I used RESTORE FILELISTONLY
, HEADERONLY
and LABELONLY
commands to extract what metadata I could.
HEADERONLY
BackupSize: 4958099456
I’m running SQL Server Express 2008 on a Win XP 32 bit platform, which could be part of my problem.
The version I’m running:
Microsoft SQL Server 2008 (SP3) - 10.0.5500.0 (Intel X86)
Sep 22 2011 00:28:06
Copyright (c) 1988-2008 Microsoft Corporation
Express Edition on Windows NT 5.1 <X86> (Build 2600: Service Pack 3)
Can anyone tell me the least expensive and most efficient way out of this problem?
Thanks,
Neale
09.09.14 — 12:18
Просу срочной помощи, возникла у меня ошибка связанная с переполненой БД на сервере Microsoft SQL Server 2008 R2 Express Edition
БД у меня выросла до 11574МБ.
Сейчас не могут сотрудники ничего записать, так как нет свободного места.
Думал выгрузить БД в dt удалить БД и заново загрузить. Но дело в том, что зайти в конфигуратор могу, а выгрузить не могу, дает ошибку платформы.
Посоветуйте, что можно сейчас мне сделать ?
Вот сама ошибка при записи любого документа:
ЗАГОЛОВОК: Microsoft SQL Server Management Studio
——————————
Действие Изменить завершилось неудачно для объекта «База данных» «pt». (Microsoft.SqlServer.Smo)
Чтобы получить справку, щелкните: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=10.50.4000.0+((KJ_PCU_Main).120628-0827+)&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&EvtID=Изменить+Database&LinkId=20476
——————————
ДОПОЛНИТЕЛЬНЫЕ СВЕДЕНИЯ:
При выполнении инструкции или пакета Transact-SQL возникло исключение. (Microsoft.SqlServer.ConnectionInfo)
——————————
Ошибка операции CREATE DATABASE или ALTER DATABASE, так как размер результирующей совокупной базы данных превысил бы разрешенный предел в 10240 МБ на база данных. (Microsoft SQL Server, ошибка: 1827)
Чтобы получить справку, щелкните: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=10.50.4000&EvtSrc=MSSQLServer&EvtID=1827&LinkId=20476
С
1 — 09.09.14 — 12:20
зайди в студию, грохни все индексы (ручками), ужми базу, потом выгружай.
2 — 09.09.14 — 12:21
шринк сделай
3 — 09.09.14 — 12:21
(1) Извините, подскажите пожалуйста подробно как грохнуть в Studio индексы ? Это ничего не сломает я не потеряю информацию ВД ?
4 — 09.09.14 — 12:22
(2) Пожалуйста, напишите подробно, я новичок в этом деле.
5 — 09.09.14 — 12:22
а вообще делов «Express Edition», даже если сейчас починишь — это не на долго…
6 — 09.09.14 — 12:23
(4) Может тогда стоит вызвать профессионала?
Вообще нужно сползать с экспресса, раз база больше 10 гигов.
7 — 09.09.14 — 12:23
(5) та мне бы до вечера дотянуть. Чтобы работу не остановить на весь день..
8 — 09.09.14 — 12:23
9 — 09.09.14 — 12:24
(0) срочно беги в магазин и купи нормальный сиквел, Express Edition имеет ограничения и обойти их можно только путем удаления данных их рабочей системы
10 — 09.09.14 — 12:24
(6) Я системный администратор, но пока учусь на ошибках. Это мой провтык((
11 — 09.09.14 — 12:25
(4) ручками открываешь таблички и пкм — удалить..
можешь и скриптовм, все стразу через DROP INDEX удалить
12 — 09.09.14 — 12:26
можно и посмотреть, какие самые большие индексные таблички и только их грохнуть
13 — 09.09.14 — 12:27
(3) Открыть ветку таблицы, ветку индексы, встать на нужный и Del
14 — 09.09.14 — 12:30
Проще поставить скуль developer edition. Прицепить к нему эту базу. Выгрузить в dt. Сделать базу файловой. Замести следы…
15 — 09.09.14 — 12:30
(8) а при выполнении ширинка указать размер сжатия файлов ?
16 — 09.09.14 — 12:32
17 — 09.09.14 — 12:34
(16) Это на express не работает же
18 — 09.09.14 — 12:37
(17) что конкретно не сработает ?? насколько я помню Секционирование таблиц в expres можно сделать и разнести таблицы по разным файлам
19 — 09.09.14 — 12:39
20 — 09.09.14 — 12:41
21 — 09.09.14 — 12:44
(20) доступное свободное место — 0, не ужмёшь
22 — 09.09.14 — 12:45
выбери топ самых больших таблиц, может картинки или ещё какая хрень там место сохрало
23 — 09.09.14 — 12:55
24 — 09.09.14 — 12:57
(23) если бы был «любой не express sql» — думаешь вопрос в (0) бы возник?
25 — 09.09.14 — 13:02
(24) Ну сложно что ли скачать какой-нибудь девелопер едишен?
26 — 09.09.14 — 13:02
(24) думаю что вопрос бы возник, будь это любой не express ломаный дома, а не работе или триалка на 180 дней;)
27 — 09.09.14 — 13:04
ну пусть триалку и ставит, и бежит покупать нормальный, пока срок не кончился
28 — 09.09.14 — 13:07
можно вопрос в том за сколько эти данные набрались если лет за 8 то можно просто поставить триал свернуть базу и еще лет 6 не парится
29 — 09.09.14 — 13:13
можно удалить данные остаков, оборотов.
потом пересчитать .
30 — 09.09.14 — 13:15
(29) помоем правильнее будет все таки провести полноценную свертку в триал версии
31 — 09.09.14 — 13:52
У меня получилось выгрузить БД в dt, теперь я ее загружаю в файловом режиме, потом ее планирую сжать в конфигураторе. Думаю, что сожму в половину. Ну это пока в теории..
Maxus43
32 — 09.09.14 — 13:56
(31) СУБД нормальную поставь. Жалко денег — хотя бы постгри значит
- Remove From My Forums
-
Question
-
I now use Window XP SP2. And I’ve installed SQL Server 2000 and installed MSDE. How can I attached the database which size bigger than 2 GB. Anybody have any idea or solution?
Thanks you all in advance.
Answers
-
You are using MSDE and therefore cannot use a database above this size. You would need to upgrade the SQL Server Edition to use a database larger than 2GB. Other options include shrinking/removing some data (i.e. data which can be archived), or breaking
the database up into multiple ones. What are you using the database for?Another option is to upgrade to SQL Server 2005 Express which allows a 4GB user database. Of course this requires extra work, planning, testing etc…
http://www.microsoft.com/sqlserver/2005/en/us/compare-features.aspx
Thanks
Neil Moorthy Senior SQL Server DBA/Developer
-
Proposed as answer by
Wednesday, November 3, 2010 5:35 AM
-
Marked as answer by
Tom Li — MSFT
Wednesday, November 10, 2010 4:43 AM
-
Proposed as answer by
-
You will be better of intalling SQL Server 2008R2 Express Edition which is limited to 10gb database size
Best Regards, Uri Dimant SQL Server MVP http://dimantdatabasesolutions.blogspot.com/ http://sqlblog.com/blogs/uri_dimant/
-
Marked as answer by
Tom Li — MSFT
Wednesday, November 10, 2010 4:43 AM
-
Marked as answer by
- Remove From My Forums
-
Question
-
I now use Window XP SP2. And I’ve installed SQL Server 2000 and installed MSDE. How can I attached the database which size bigger than 2 GB. Anybody have any idea or solution?
Thanks you all in advance.
Answers
-
You are using MSDE and therefore cannot use a database above this size. You would need to upgrade the SQL Server Edition to use a database larger than 2GB. Other options include shrinking/removing some data (i.e. data which can be archived), or breaking
the database up into multiple ones. What are you using the database for?Another option is to upgrade to SQL Server 2005 Express which allows a 4GB user database. Of course this requires extra work, planning, testing etc…
http://www.microsoft.com/sqlserver/2005/en/us/compare-features.aspx
Thanks
Neil Moorthy Senior SQL Server DBA/Developer
-
Proposed as answer by
Wednesday, November 3, 2010 5:35 AM
-
Marked as answer by
Tom Li — MSFT
Wednesday, November 10, 2010 4:43 AM
-
Proposed as answer by
-
You will be better of intalling SQL Server 2008R2 Express Edition which is limited to 10gb database size
Best Regards, Uri Dimant SQL Server MVP http://dimantdatabasesolutions.blogspot.com/ http://sqlblog.com/blogs/uri_dimant/
-
Marked as answer by
Tom Li — MSFT
Wednesday, November 10, 2010 4:43 AM
-
Marked as answer by
Я пытаюсь извлечь данные из резервной копии SQL Server, предоставленной поставщиками, с которыми мы больше не работаем.
Мне нужны данные только из некоторых таблиц, но мне нужно изучить структуру базы данных, чтобы точно определить, что мне нужно.
Это единственное использование, которое у меня есть для SQL Server, и я не знаю, что покупать по-крупному.
Я попытался с помощью SQL Server Express восстановить файл .bak локально и получил сообщение об ошибке:
Не удалось восстановить… CREATE DATABASE или ALTER DATABASE не удалось, так как результирующий совокупный размер базы данных превысит ваш лицензионный предел в 4096 МБ на базу данных.
RESTORE DATABASE аварийно завершает работу. (Microsoft SQL Server, ошибка: 1827)
Мне трудно определить, какой альтернативный подход или минимальную лицензию мне нужно приобрести, чтобы преодолеть этот предельный размер базы данных. База данных, кажется, лишь незначительно превышает лимит.
я использовал RESTORE FILELISTONLY
, HEADERONLY
и LABELONLY
команды для извлечения метаданных, которые я мог.
ЗАГОЛОВОК BackupSize: 4958099456
Я запускаю SQL Server Express 2008 на 32-разрядной платформе Win XP, что может быть частью моей проблемы.
Версия, которую я использую:
Microsoft SQL Server 2008 (SP3) - 10.0.5500.0 (Intel X86)
Sep 22 2011 00:28:06
Copyright (c) 1988-2008 Microsoft Corporation
Express Edition on Windows NT 5.1 <X86> (Build 2600: Service Pack 3)
Может ли кто-нибудь сказать мне наименее дорогой и наиболее эффективный способ решения этой проблемы?
Спасибо, Нил.