Does A Column That Takes Null Value Use Up Disk Space?
I have a table in which there is a column called 'Forecast' of type 'int', that is null for about 25% of the rows in this table.
Will null value for this column consume storage bytes?
View Complete Forum Thread with Replies
Related Forum Messages:
Do NULLS Use Disk Space? What Is A Data Base Null
In OO programming, data references, such as pointers in C++ or objects in C#. If the reference is null, it points to no object, or to 0x000000, thus the "referenced" object is non existent and the "object" takes up no RAM. I know pointers are not the same as Database values, but what I'm interested in knowing is, on the bits and bytes level, what is a "NULL" and how much space does it take up, as much as is the field? Or just one byte? and when a NULL is replaced does that cause a shifting in the data of the database page or does the new data simply replace the null?
View Replies !
Get Total Disk Size And Free Disk Space
-- Initialize Control Mechanism DECLARE@Drive TINYINT, @SQL VARCHAR(100) SET@Drive = 97 -- Setup Staging Area DECLARE@Drives TABLE ( Drive CHAR(1), Info VARCHAR(80) ) WHILE @Drive <= 122 BEGIN SET@SQL = 'EXEC XP_CMDSHELL ''fsutil volume diskfree ' + CHAR(@Drive) + ':''' INSERT@Drives ( Info ) EXEC(@SQL) UPDATE@Drives SETDrive = CHAR(@Drive) WHEREDrive IS NULL SET@Drive = @Drive + 1 END -- Show the expected output SELECTDrive, SUM(CASE WHEN Info LIKE 'Total # of bytes : %' THEN CAST(REPLACE(SUBSTRING(Info, 32, 48), CHAR(13), '') AS BIGINT) ELSE CAST(0 AS BIGINT) END) AS TotalBytes, SUM(CASE WHEN Info LIKE 'Total # of free bytes : %' THEN CAST(REPLACE(SUBSTRING(Info, 32, 48), CHAR(13), '') AS BIGINT) ELSE CAST(0 AS BIGINT) END) AS FreeBytes, SUM(CASE WHEN Info LIKE 'Total # of avail free bytes : %' THEN CAST(REPLACE(SUBSTRING(Info, 32, 48), CHAR(13), '') AS BIGINT) ELSE CAST(0 AS BIGINT) END) AS AvailFreeBytes FROM( SELECTDrive, Info FROM@Drives WHEREInfo LIKE 'Total # of %' ) AS d GROUP BYDrive ORDER BYDrive E 12°55'05.25" N 56°04'39.16"
View Replies !
Insufficient Disk Space Error When There Is Plenty Of Space SQL Server 6.5
We are receiving insufficient disk space errors on NT 4.0 with SQL Server 6.5 installed. This happens when a script is run that creates an html file from some data in the database and tries to save the file on another computer across a WAN link. There is plenty of disk space available on all volumes of the server and the max database size is not met. We did however reach the max size some time ago but have since increased it. Please, if anyone out there can help, I will be forever in your debt! Bill
View Replies !
Low Disk Space On C:
I noticed something strange today. I was running a query using query analyzer on a large database (8.8 million records) and the disk space on the c: drive was dropping and eventually went to 0. Availalbe space on the c: drive is 10GB. The query did complete. SQL server and all the databases are on the d: drive. After closing the query results in query analyzer the disk space returned. Is this a concern and is there a way to change it to use the d: for whatever it is doing?
View Replies !
DB Disk Space
In a fast growing OLTP database, disk space is critical. What, if any is the connection between the unallocated and unused space fields in sp_spaceused proceedure? Can unused table space really be reclaimed by the general database?
View Replies !
Disk Space
Does anyone know how to get the free disk space for all drives in many different SQL servers. I need to populate a report (right now output in Excel) with the free disk space of all drives on all of my SQL servers. I found xp_fixeddrives but that is specific for the server where it is executed. Any help or pointers to a script in the archives is much appreciated. Thanks.
View Replies !
Disk Space
Hello I need to setup a compaq sever with 300 MB database, and will be adding around 600 records on a daily basis. Can someone help with how much disk space i should have on sqlserver, providing i have c: and d: setup. Thank you in advance for all the help. Paula
View Replies !
Disk Space
Hi All, I have a server and it has C: D: F: I: Drives and all the system files are on C:Drive and and all the .MDF's and .LDF's(model,temp,master) are on the F: Drive and now I am running out of space on both(C: and F: Drives) 1. Can we add space to the C: and F: drives on the fly?. 2. Can I move the System databases ( MDF's and LDF's to some other drive)and if so, how do I do it?( Moving the databases ) and this is on the production database so when I have to do this.Will there be any impact. Thanks in Advance, Reddy
View Replies !
DTS Disk Space
This is my first attempt using SQL 2000 and DTS. I am importing an Access database using the DTS wizard. The process fails with a "Not enough space on temporary disk" error. There is definitely enough space on the physical disk. I don't have any limits on any folder sizes either. What "disk" is the error talking about, and how do I give it enough space. The database is relatively small, about 10MB. I believe the database was created using Access 97. Please help.
View Replies !
Obtaining Disk Space
Hi, I'm new to these forums (and to SQL Server), so please be gentle with me. I am developing a process to obtain information on all our remote servers/databases, and store it in a single local database. I'm after things like db size, last backup date, free drive space etc...the usual weekly statistics. I've linked the remote servers to my local one, and have written a few simple procedures (which exist on the local server) to grab backup and file size information from the remote tables. The output is stored locally in tables which we can then query as necessary. I am having difficulty obtaining the free drive space details. I'm using :- 'exec <remote_server>.master.dbo.xp_fixeddrives' to get the info, but I cannot store the output in a table on the local server. (remote_server_name, date, drive_letter, space_mb) I wish to avoid creating any objects on the remote servers if at all possible. I really want to pass the remote server name into the procedure, and the output to be inserted into the table. Many thanks
View Replies !
Recovering Disk Space
Our database -SQL Server 7.0 sp1 (NT 4.0 sp5)- is growing at a very fast rate despite the fact that we are deleting old record. It doesn't seem to be recovering disk space for the deleted records. Please let me know if there is a specific setting that can help us recover disk space. )
View Replies !
Evaluating Disk Space
We recently moved from v6.5 to v7.0. Now I have the databases and logs set to "autogrow". How can I monitor the disk space to ensure I do not run out of room (or is that preset as to how large it can grow ?). Can't find anything in the books online. Do I do this through the NT admin tool or through the SQL*Server Enterprise Manager and more importantly - how ??? Thanks so much for any help... Nancy
View Replies !
Insufficient Disk Space
I'm trying to save a dts package and it keeps coming back with insufficient disk space. I noiticed that db MSDB was full so I manually increased the size. It was set to manually grow at 1 mb increments. But for some reason it didn't look like it was doing that so I manually increased it. Right now this is about 355 MB free so that should be plenty to save a package. But its still coming back with the same error insufficient disk space to complete operation. Any ideas on why or why it didn't grow on its own? Please help I can't seem to save any packages.
View Replies !
Find Disk Space
I need a way to get the used space for a physical drive, or even the total capacity for a drive to do some calculations. I don't want to have to write my own native code either. Is there a stored procedure that will give this to me? I saw the xp_fixeddrives that will give the free space, but I need one of the other as well. Any way to get this? Thanks, Jason
View Replies !
Checking Disk Space
Another question... I need to check the space available on a specific disk (D on a remote server, again, this task will be executed from an SSIS package, if I have less than 60GB available, I have to delete some files. How would you guys do this using VB.NET? If I had SQL Server installed on that box, I could achieve this executing a DOS command... But I don't... Thanks!
View Replies !
Reporting On Disk Space
I heard somewhere that using reporting services you are able to report on more useful aspects also such as server disk space, how is this possible, or where can i find any tutorials to help me out thanks in advance Jonny
View Replies !
Disk Space Issue
one user database ldf file is growing like it reached 50GB and total D: drive space is 70GB. No SAN drives for D:. I tried to shrink the file but it not shrinking. Even I tried take to Tlog backup but it is throwing the below error 'not enough disk space' This is production server. Please let me know how to resolve this issue?
View Replies !
Disk Space Issue
one user database ldf file is growing like it reached 50GB and total D: drive space is 70GB. No SAN drives for D:. I tried to shrink the file but it not shrinking. Even I tried take to Tlog backup but it is throwing the below error 'not enough disk space' This is production server. Please let me know how to resolve this issue?
View Replies !
Disk Space Investigation
All, I think i know the answer to this one already, but would like to check before going back to my management. Background. In the past 2 weeks, a number of our databases have shot up in size, and are now at 100% utilisation of allocated disk space. My management have asked me to look into what is causing these to fill up so quickly. Unfortunatly there were no snap shots or information relating to the databases / tables so i can not determine which tables have grown and are causing the problems. I have also looked through the sql logs and the event viewer logs to see if there is anything out of the ordinary, but again apart from log / database backups there is nothing of note in there. I am going to be implementing a solution that I got off another thread which will give me some database / table history to help me in the future, but for now is there anything else i can do? or is it a case of me getting back to the application guys and getting them to reduce data (as there is no more disk space to give them). Any thoughts or advice you can give me would be greatfully received. Mark -noob dba-
View Replies !
Disk Space Monitoring ...
Hi I have 600 instances on my network .... I need to monitor the Disk Space ... how should I do that I mean the best way for this would be ??? By Disk Space I mean the SQL Instance should atleat have 10% of free disk space ... If it is less , maybe an alert can be sent or something of that sort . Now it would be a pain configuring alerts on each machine. Is there some good way to this Thanks in advance.
View Replies !
Disk Space Alert
is there a tsql command that returns the amount of disk space available. I want to set up a job to run and email if it gets to a certain level.
View Replies !
Disk Space After Reindex
All, I first ran indexdefrag on a table with 1.5 billion rows. logical fragmentation was at 95%. logical frag went down to 3% with no real effect on disk. DBCC reindex had previously been bombing undetected. Now I've run a reindex on this table: Reindex Job with Fillfactor =100 Ran in 3:05 Free Disk went from ~150GB before operation to 49GB File4 went from 347GB to 504GB Why has so much free disk been consumed by this operation and not released ?????????? Is my only choice to shrink data file??? thanks Env. Win2k ENT os SQL 2k5 std 64bit
View Replies !
Expanding Disk Space
Okay, so i have a Dual Xeon SQL2k5 Server set up. it's got 4 10k RPM Raptor Drivers (160gb) on it all stripped together. my question is this, i was just doing all kinds of index tuning, and my server didnt have enough disk space to create 2two of the recommended adjustments. i'm curious, if i should just have those two indexes stored on the 1TB Backup array i have? (two 500gb 7200RPM drives) or should i backup the database, and expand the Raptor Array and then restore the database and create the indexes? i'm not really worried about down time as long as it doesnt exceed 2 days.
View Replies !
Trying To Recover Physical Disk Space.
My SQL Server databases grew large. I deleted un-needed data from somedatabases. I then ran a stored proc that re-indexed the entire db. Mydatabase was 1.1 gig no the properties says it's 292 mb after I ranshrink database. I have a few other dbs I reduced in size. My physicalhard drive is 57% fragmented as reported by Disk defragmentor utility onmy Win 2k Adv Serv SP 4 server. I ran the defragmentor several timesand I'm unable to make any improvement. I also ran degfrag afterstopping all my IIS, SQL Server, and NetMeeting services. I still hadsome other services running.I want to defrag my physical mirrored disk volume.*** Sent via Developersdex http://www.developersdex.com ***Don't just participate in USENET...get rewarded for it!
View Replies !
Temp DB Growing To Max Available Disk Space
I've written a SP which does some complex calculations and in the enddumps data into 2 tables (master & detail) When I run this sp forsmaller no of IDS (employees i.e for 13000 in Master and 60000 recordsin detail table) it takes around 3-4 hrs and if I run for allemployees in the database (i.e. abt 60000 records in master and 180000records in detail table) then it takes around 10hrs to complete.I'm using temp table to hold data and then do the calculations, butsometimes when I run the SP temp db starts growing and reaches up to25 GB and the process fails as there is no space left on the disk, andlately I'm not able to run the SP for every employee, I had to end theprocess after 16 hrsIf anybody can guide me what could be posible resons or where I shouldlook for solution.My row size in master table is arounnd 2000 bytes and in detail tableabt 300 bytes.Thanks in advance.Subodh
View Replies !
Running Out Of Disk Space With Replication
We've got an internal database that replicates with another database server for our website. Not all tables are replicated, some use merge and the others are snapshot based and published regularly to the public website facing server. However, there's a lot of data (well, large textual data) that's being transferred and it seems to be generating massive log files that continue to grow and grow. I'm fairly new to adminning an SQL Server box, so was wondering if anyone can tell me what the best way to keep it under control is? I've heard its possible to truncate the logs, effectively deleting any data that has already been processed by subscribing servers etc.? As I said, I'm very much new to this and would really appreciate some guidance, if only to the right part of the SQL Server Books Online :) Thanks, Paul
View Replies !
SQL Server SQLMAINT And Disk Space
Hi, I have a 250 GB database and not much space left on the disk drive. I want to run SQLMAINT to do optimization and integrity checks on this db. My question is : How much work space does SQLMAINT need to perform these tasks?. Thanks in advance for your help. F.
View Replies !
Database File And Disk Space
Hi All, One of the drives that stores the database file is close to running out of space. The chance of me getting more space added to this drive any time soon are really low. What are other options I have? Thanks.
View Replies !
Accessing Hard Disk Space.............
For our application we are using VB and VC as frontend and MSSql as backend. Nearly 4 applications are using the database simultaneously. If we run the four applications simultaneously for 10 to 12 hrs, then MSSql Server starts accessing the hard disk space much. After Killing all the applications also it is not stopping the harddisk accessing. This problem is because of MSSql Server or Applications?
View Replies !
Disk Space And Apparent Locking
We are experiencing an intermittent locking or hanging problem on our SQL Server (at the application level on the clients) and it has gotten worse very recently. I haven't seen any processes that appear to be locked yet but I noticed that we don't have a lot of space available (the database is 1.4 gigs and we have about 245 megs available). If this is inadequate disk space, could that be causing an apparent locking problem? Thanks in advance for any help.
View Replies !
Database File And Disk Space
Hi All, One of the drives that stores the database file is close to running out of space. The chance of me getting more space added to this drive any time soon are really low. What are other options I have? Thanks.
View Replies !
Upgrade Tp 7.0 Disk Space Requirements
Hello I am trying to upgrade our 6.5 server (which approx takes up 18GIG of data/log) to 7.0...it failed since I only have 7GIG space left. Do I realy need to come up with an additional 18GIG to accomodate the upgrade? Thanks. Bob
View Replies !
How To Specify Disk Space Allocation For Databases ?
Hello , I wanted to know on what basis the disk space allocation for the databases is planned . Suppose if we plan 60 GB for data files ( mdf )for a given database then what should be the space allocation for the log files ( ldf ) and the tempdb ( both mdf and ldf files ). Is there any thumb rule or any defined ratio for the same ? Thanks
View Replies !
Web Sync Snapshots Eat Up Disk Space
Hi Heads up on TEMP files I've been running web Synchronisation for over a month. Just today some subscribers received a message warning of an "OS Error" could not retrieve file "dynsnapshotvalidation.tok". Sometimes they also got an error regarding low or no virtual memory. After much investigation it seems that the Web Server hosting the web sync IIS had literally no space left on the system c: drive. It also turns out that the \WindowsTEMP folder contained over 9GB of snapshot files. It seems that when the Web server collects snapshot files from Data Server to deliver to the subscriber it creates a Temp copy on it's own local system. Unfortunately this temp data is not cleaned up and over time has jammed up the system and caused this failure. Is there an answer to this or does it involve manually checking the server from time to time to clean-up the TEMP folder? Has anyone else noticed this? Thanks Rab
View Replies !
Disk Space Issue Notification
I am using the below code for sending the notification if any of the drive space falls below the threshold, I am having an issue here because email notification is sent out irrespective of whatever threshold I put in the if clause, any help is greatly appreciated. Thanks! declare @MB_Free int create table #FreeSpace( Drive char(1), MB_Free int) insert into #FreeSpace exec xp_fixeddrives select @MB_Free = MB_Free from #FreeSpace where Drive = 'C' -- Free Space on C drive Less than Threshold if @MB_Free < 12000 declare @rc int exec @rc = master.dbo.xp_smtp_sendmail @FROM = N'XX@email.com', @TO = N'XX@email.com', @priority = N'HIGH', @Subject = N'C drive space issue', @Message = N'C drive space issue, please check', @Server = N'emailserver' select @MB_Free = MB_Free from #FreeSpace where Drive = 'D' -- Free Space on D drive Less than Threshold if @MB_Free < 305048 declare @rc1 int exec @rc1 = master.dbo.xp_smtp_sendmail @FROM = N'Email.com', @TO = N'Email.com', @priority = N'HIGH', @Subject = N'D drive space issue', @Message = N'D drive space issue, please check', @Server = N'emailserver' drop table #FreeSpace
View Replies !
How To Find Free Disk Space Available From SQL Query
Hi all, I have to find free disc space in a drive from SQL Query and i am using MSSQL200. Does any body know the command for the same. Also if i want to find hard disk space of a different machine on network, it is possible to get the data?? Also can i get the CPU/Memory usage data of our machine by some SQL/C++ commands?? Please let me know if u know any of the answer... thanks Alok
View Replies !
How To Check Amount Of Disk Space Left?
Here is one of the MCDBA exam question. Does anyone explain how to do the following? I click new alert, and selected 'Sql server performance condition alert' Type But I don't know which object and counter I should choose to get disk space left. Thank you.. Q: You are the administrator of Microsoft Windows 2000 Advanced Server computer. The server is also running SQL Server 2000 and contains a database named Sales. The server is configured as shown in the exhibit. The sales database is configured by using the default options and increases by 50MB per day. You want an operator to be notified automatically before the database runs out of disk space. You also want to minimize the amount of administrative overhead necessary for this database. What should you do? A: Configure systems monitor to log an alert if the hard disk database contains less than 600MB of disk space. Configure SQL server agent to send an e-mail message notifying the operator of the system monitor alert. Explanation: The solution with least administrative effort is to set up a system monitor alert to log when disk space is below a certain threshold, here 600MB. Then configure the SQL Server agent to trap this event and send an e-mail notifying the operator when this occurs. Note: Using SQL Server Agent, you can define alerts and configure responses to alerts. SQL Server Agent monitors the Windows application log and compares each SQL Server event logged with the alerts that have been defined. If a match is found, an event alert fires. SQL Server Agent can also monitor specific SQL Server performance object counters and fire a performance condition alert when the value for the counter is less than, equal to, or greater than a defined threshold. The Create Alert Wizard can be used to configure the SQL Server agent for alerts.
View Replies !
Deleting Records To Save DISK Space...
Hi, In my data archiving process , I would end up deleting hunders records from the production databases but would that help me save some DISK space immediately??? Should I run some DBCC command to get some disk space ? if SO ..!! What should I do after deleting the records..???? Thanks Cheriyan.
View Replies !
Can't Create New Database -&> No Disk Space (os Error 112)
Hello everybody Had some problems yesterday with a full transaction log. Was able to solve it by following microsofts knowledge base article n° 272318. However, today I'm trying to create a new DB using the enterprise manager and get this error: d:databasesHERCULES_1_Data.MDF: Operating system error 112(Es steht nicht genug Speicherplatz auf dem Datenträger zur Verfügung.) encountered. The free disk space is > 60GB. That's by far enough... I only need 1-2 GB. Any ideas what's wrong here? Thanks anyone in advance for some guideance. Renaud
View Replies !
Disk Space Availability - Reporting Error
SQL 6.5 NT Recently the SQL database has started to report "Disk Space Availabilty" of 0. I know that there is space since I added 50 Mg on Monday and space is not consumed at an alarming rate. What must be done to correct this issue and have EM show some relevant space? Below is output from "sp_spaceused"............ How do I interpret what is disk space available? database_name database_size unallocated space ------------------------------ ------------------ ------------------ XFile1 6350.00 MB 2279.41 MB reserved data index_size unused ------------------ ------------------ ------------------ ------------------ 4168280 KB 2561254 KB 1599724 KB 7302 KB Thanks in advance...
View Replies !
Backup Failing, Plenty Of Disk Space
Good morning, We get frequent (1 out of 3) "sqlmaint.exe failed" errors during backups for one of our larger databases (40GB). So i removed the maintenance plan and put in a custom backup job to get a better error msg in the log: BackupMedium::ReportIoError: write failure on backup device 'F:MSSQLmydb_2008_1_3_21_45.BAK'. Operating system error 112(There is not enough space on the disk.). However, we have PLENTY of space on disk: LOG DISK - NTFS - used space = 2GB, free space = 81GB BACKUP DISK - NTFS - used space = 29GB, free space = 82GB So even if it doubled in size, there would still be 50GB free. Any ideas? Thanks!!
View Replies !
Moving Tempdb To Free Up Disk Space
does anyone know if tempdb can be physically moved to a different partition on a disk drive on SQL Server 7.0? Since it can't be backed up I'm hesitant to use the sp_detach/sp_attach procedure because I don't want to crash it. If nothing else is available, I can attempt moving it this way at the end of the day and then just reboot to get tempdb back up again if the server fails, but I'd really appreciate a suggestion from someone who has more know-how than I do about system table operations. Thanks again
View Replies !
Transaction Log Full But There Is Still Disk Space Free
Were running Sql Server 7 and the database is set to truncate log on checkpoint. I recently got an error 9002 that the Transaction Log is full, I check the log thru Enterprise Manager and there was still space available. Checked the disk space still had 5gig available. The transaction log is set to autogrow by 10% and unrestricted file growth. I made sure I had a current complete backup and then did a backup log with truncate_only. The users tried the application again and still got the same message. I've checked technet and couldn't find any bugs or articles. Can you help? Also, do you know a good DBA Handbook for SQL Server? I've read the Database Professional Library SQL Server 2000 The Beginner's Guide and Microsoft SQL Server 2000 DBA Survival Guide. But both books seem to tell more theory and are long winded. I'm used to working on Oracle and having some good O'reilly or Oracle press books that get right to the point on how to admin a database and gives you some cool scripts. thanks
View Replies !
|