This text is replaced by the Flash movie.

Archive for the ‘MSSQL’ Category

Cannot Create MSSQL Database.

May 1st, 2010

File Path is compressed Cannot Create MSSQL Database.

While trying to add Database which I want to name "SimpleCMS" to MSSQL server and trying to put it under App_Data folder, I encountered this error.

Error Details:
An exception occured while executing a Transact-SQL statement or batch.

The file "you mssql db path here" is compressed but does not reside in a read-only database or filegroup. The file must be decompressed. CREATE DATABASE failed. Some file names listed could not be created. Check related errors.

Cannot Create Database

Most cases this was cause that the Project folder is inside a compressed drive or under a compressed folder, which will save space for your drive.

I just want to share how I resolved this.

Note: That You can uncompressed only the Project folder and leave other compressed.

I'm using windows XP so what I did was 
1.) Right Click on the folder (Project Folder) in General Tab > Click Advanced
2.) Under Compress or Encrypt attributes
3.) uncheck "Compress Contents to save disk space"


From here I can now add the database "SimpleCMS" under the App_Folder inside the Project Folder.

Database Added

Saving changes is not permitted

June 14th, 2009

SQL Server 2008 Error: Saving changes is not permitted

While Trying to update a table inside the database I'm working on(Which will happen alot of course), when I tried to save it... I encounter this annoying error.

Saving changes is not permitted. The changes you have made require the following tables to be dropped and re-created. You have either made changes to a table that can’t be re-created or enabled the option Prevent saving changes that require the table to be re-created.

So I tried to Google the Problem... and the solution was quite simple.