Urgent: How To Know The Sql Server's Database Size
Oct 29, 2004
Hi,
Can anybody suggest any stored procedure name or C# code to find the Sql database size (database size as well as transaction log)? I want to migrate some data from my local database to the web server. Before migration, i want to know the database size on the web.
Thanks and regards,
mrc
View 2 Replies
ADVERTISEMENT
Jan 6, 2001
Hi!
I needed to find out the approx size of my database, based on the number of rows, etc...
Any suggestions would be appreciated!
Thanks.
View 2 Replies
View Related
Jan 22, 2006
I had several databases under sqlserver ce 2.0 (in my Pocket PC) which contained ntext fields. The size of the databases varies from 50,000 to 700,000 records. The size of an ntext field is from 4 bytes to 2 megabytes.
When I recreated my databases under sql server 2005 mobile on my desktop using VS2005 (see my post just under this one), I saw a big difference between the old and new database sizes. This problem was mentioned in one of the posts in this forum and the reply was to replace ntext data with ncharvar type.
Since most of my data was longer than 4000 bytes (which is the limit for nvarchar type), I couldn't use this suggestion. Instead, I changed my ntext type to image type and used a GetByte conversion.
No change! The size of the new database is still 50 % larger than the original. Since the difference is around 300 MB, this is an unacceptable thing.
Now, I either wait from somebody to suggest a new solution (apart from keeping the ntext data in a separate binary file and keep index of the records of this file in the records of sql database) or, most preferably, have
Microsoft solve this problem as soon as possible.
Thanks for any help in advance
Talat
View 4 Replies
View Related
Oct 16, 2000
Hi,
I have to create a table which contains 5 rows with columnsize varchar(8000) each. When I try to execute the 'create table..' statement, I receive the following error. What should I do?
"The total row size (40040) for table 'Org_welcome_text' exceeds the maximum number of bytes per row (8060). Rows that exceed the maximum number of bytes will not be added."
Thanks,
Ann
View 2 Replies
View Related
Nov 25, 2006
Hi all
Last week I was moving my site to a new server
My SQL database in old host without Log file was 180 MB, and after shrink it became 170 MB,
I asked my old host support to give me DB back up for moving to new server, it was friday and they told me we will do that on monday, but I wanted it soon, so I logged in ino Enterprise manager to my old server sql, and also I opened connection to my new server sql ,I go to Export Wizard of my database on old host so I chose to export all of the tables from my database on old host to a new database on new server,
it took about 2 hour (with a 128 kb net connection) after finishing I tested the new database it was working fine and all of the tables and rows was in new database,
but some thing that is wondering is the size of the database the new database on new server is 109 MB now :shocked:
why ?
I have shrinked the old database and without log files it was 170 MB so why on my destination database its 109 MB , and very thing is working fine
I want to know what was in old database that increased file size about 60 MB ?
and can I use my new database which its size is 109 MB ?
Please tell me soon , I need that
View 6 Replies
View Related
Jul 10, 2006
Hi. I am trying to get a row count of each row of each table in the database. Is that possible? Using a SP or UDFS? I dont want the column size of each table but the total datasize of each row.So for example if I have 5 rows each in 3 tables I need a query that will return 15 rows with the size of each row(size of all coumn data summed together). Thanks.
View 6 Replies
View Related
Jun 22, 2000
Hi friends,
I have three servers on two servers I have configured
Server A B C
Total Memory 1024mb 1024 mb 1024 mb
Min Server Memory :200Mb 196mb 196 mb
Max Server Memory 955 mb 980 mb 955 mb
Set working Set size 1 1 1
Priority Boost 1 1 1
All servers using dynamic memory option.
Server A and B are fine but When I reboot or stop and start Sql services on Server C it is recording the following error in NT Application log:
17122: Initdata:Warning:Could not set working set size to 1038848 KB.
Please help me how to overcome this problem.
Thank you very much.
MHUDDIN
View 1 Replies
View Related
May 19, 2000
My Database Log file Size Increased dramatically upto 5GB. My Data file size
is only around 600MB. Almost my Harddisk space occupied fully by log file. How I reduce the log file size. Anyone can give me some tips?.
View 2 Replies
View Related
Feb 6, 2001
Hello,
I've a database in Production db which is 300 MB and one of its table has
948900 rows then how can I know how much size this particular table is of.
Thanks.
View 2 Replies
View Related
Jul 24, 2000
Hi,
I am porting data between sql65 servers. I am transfering data using bcp , while doing bcp i am getting following error.
DB-Library error: Attempt to bulk-copy an oversized row to the sql server.
DB-Library error: Attempt to convert data stopped by syntax error in source field.
My row size in the particular table is : 170 bytes length.
Can anyone have idea, what is row size limitation in 65.
i am having service pack 5a.
--RK
View 1 Replies
View Related
Mar 29, 2001
Hi,
1. sysfiles stores file size for specific database
2. sysdatabases stores file name
From what table can get size of all database files in server ?
Thanks
View 5 Replies
View Related
Mar 29, 2006
Hi! Everybody there!!
I am faced some problem for SQL SERVER!
Database size info:
>> Current Size: 4.1GB
>> Space Used: 3.7GB
Yesterday, I had shrink the database from 4.1GB to 3.7GB.
>> Current Size: 3.7GB
>> Space Used: 3.7GB
Today, i checked it again, found out that the database was increase to 4.5GB.
>> Current Size: 4.5GB
>> Space Used: 3.7GB
Is that SQL SERVER is running in this way? it is behaviour action? But my other database did not have this problem happen
Please help!!!
Thank you
Melvin
View 3 Replies
View Related
Mar 15, 2007
Good evening,
I have a SQL Server 2005 database installed, serving as back-end DB, for an ASP.Net 2 application. Currently the database size is nearly 800Mb with recovery mode set to Simple. Every single day a maintenance job runs shrinking the db size, reorganizing indexes and statistics, etc.
Since I'm not an expert in SQL Server Administration I'm trying to figure out if this space is really necessary. The previous version of this application was running under PHP5 and MySql 4. After a year, with pretty much the same load as the current version, the database size was arround 370Mb. With the SQL Server it's already -800Mb after 3 months.
Pretty much my guess is that I'm doing something wrong. I just don't have any idea of what might be going on. If one of you guys could throw in some ideas on how to check if this size was really necessary and, if not, how to reduce it, I'd be very thankful.
Best regards,
ahkaru
View 6 Replies
View Related
Jul 23, 2005
Hi,We are in the process of selecting a database for a data warehouse typeapplication. I want to get a feel for how big can a SQL Server databaseget. As per Microsoft, it can be multiple terabytes. Can you tell meWhat is the biggest size SQL server database you manage? (I understandbig is a relative term. I consider 500+ Gig as big).Do you see any major performance problems due to size of the database?(Given that the database is designed optimally).Really appreciate your help.Thanks,Joseph
View 3 Replies
View Related
Nov 25, 2007
I have patch server on which the database is SQL server 2000.
The Database size is 27GB and I want to reduce the size of DB by deleting all the records and keeping only year 2007 records.
Please advise me how to reduce the size of the DB.
If I need to delete any record, please let me know how to delete it.
If their is any Query for it, please send the Query.
The DB contains total of 11 tables.
Thanks to All,
Mohammed Muzaffar.
View 5 Replies
View Related
Apr 2, 2007
HI Everyone,
I understand that there is a 4GB size limitation on SQL Server Express edition. right?
What I want to know is what if a database file created in SQL Express is hosted with SQL Server 2005 will the file still have the 4 GB size limitations?
Thanks
View 9 Replies
View Related
Apr 19, 2001
One of our database is approaching the gigabyte size. I know that microsoft claims to support terabyte databases with sql server 7.0. I was wondering if anyone could tell me about the max size of database they have used on an OLTP site without running into problems. ofcourse with SQL Server.
thanks,
rachna.
View 1 Replies
View Related
Sep 4, 2006
I designed a database for daily reporting system. It involves mainly INSERT operations and data retrieval. The problem here is the size of database is growing rapidly beyond the estimation. I changed the datatypes from int to tinyint, even after that i didn't find any difference in size of the database. Please suggest me solution by which i can optimize the database size also suggest me some tips by which i can estimate the database size. Please respond at the earliest possible.
My mail ID : akbar.t@tcs.com
Thanks in advance.
View 14 Replies
View Related
Sep 27, 2004
I am having a bit of a mare on the database backup front - i.e. monster
DB, not a great deal of space to back it up into.
As I do the backup, the file on the disk seems to stay at 2KB
How does the file get written? Is there a temp somewhere first?
Cheers in advance - Dave
View 1 Replies
View Related
Apr 20, 2007
Hi
I want to store large files like pdf file,Html page,audio file in Sql Server database.How can i do it?
if somebody know then tell me as soon as possible.
Thanks in advance.
Bye
View 1 Replies
View Related
Feb 12, 2003
Hello,
Is it possible to configure the web server to execute XML queries without installing SQL Client?
Thanks
Sejal
View 1 Replies
View Related
Mar 2, 2008
Hi,
i use this script that show me the size of each table and do the sum of all the table size.
SELECT
X.[name],
REPLACE(CONVERT(varchar, CONVERT(money, X.[rows]), 1), '.00', '') AS [rows],
REPLACE(CONVERT(varchar, CONVERT(money, X.[reserved]), 1), '.00', '') AS [reserved],
REPLACE(CONVERT(varchar, CONVERT(money, X.[data]), 1), '.00', '') AS [data],
REPLACE(CONVERT(varchar, CONVERT(money, X.[index_size]), 1), '.00', '') AS [index_size],
REPLACE(CONVERT(varchar, CONVERT(money, X.[unused]), 1), '.00', '') AS [unused]
FROM
(SELECT
CAST(object_name(id) AS varchar(50)) AS [name],
SUM(CASE WHEN indid < 2 THEN CONVERT(bigint, [rows]) END) AS [rows],
SUM(CONVERT(bigint, reserved)) * 8 AS reserved,
SUM(CONVERT(bigint, dpages)) * 8 AS data,
SUM(CONVERT(bigint, used) - CONVERT(bigint, dpages)) * 8 AS index_size,
SUM(CONVERT(bigint, reserved) - CONVERT(bigint, used)) * 8 AS unused
FROM sysindexes WITH (NOLOCK)
WHERE sysindexes.indid IN (0, 1, 255)
AND sysindexes.id > 100
AND object_name(sysindexes.id) <> 'dtproperties'
GROUP BY sysindexes.id WITH ROLLUP) AS X
ORDER BY X.[name]
the problem is that the sum of all tables is not the same size when i make a full database backup.
example of this is when i run this query against my database i see a sum of 111,899 KB that they are 111MB,but when
i do full backup to that database the size of this full backup is 1.5GB,why is that and where this size come from?
THX
View 5 Replies
View Related
Jul 20, 2015
I am having an issue in determining the correct size of a table.
I have a tableA in some DB on transaction server (Enterprise Edition), this table is being replicated in reporting server DB (Standard edition).
When I check the space used by this table in both the databases i see noticeable difference.
I am using EXEC sp_spaceused 'tableA' to determine the space.
Transaction Server
------------------------------------------------------------------------------
name rows reserveddata index_size unused
TableA1439999 695416 KB507048 KB182912 KB 5456 KB
Reporting Server
-------------------------------------------------------------------------------
name rows reserveddata index_size unused
TableA1439999 656904 KB483664 KB172680 KB 560 KB
So I wanted to know what could be the possible reasons for this difference ?
View 5 Replies
View Related
Oct 31, 2007
hello all..
i am running an application build on c# and dot net frame work 2.0 running on windows server 2003 enterprise edition with service pack 2 on a Xeon Machine, when the application can to many data base request or face load...the date base service disappears...... can some buddy plz reply me how this problem can be resolve....
View 4 Replies
View Related
Apr 26, 2006
hi all,
i have a requirement that web service running in one system and sql server 2005 database running in another systems which is not working currently.
suppose i create end point in the system where sql server 2005 database is there,then its working fine.
Actually for creating end point we should have windows server 2003 or SP2.Configuration part i dont have any hindrance.
Can any one tell how to run webservice in one system with sql server 2005 in another system.
Thanks
venkat
View 2 Replies
View Related
Sep 4, 2007
I am trying to resize a database initial log file from 500M to 2M. I€™m using€?
ALTER DATABASE <DBNAME> MODIFY FILE ( NAME = <DBLOGFILENAME, SIZE = 2 ) "
And I'm getting "MODIFY FILE failed. Specified size is less than current size." I tried going into the database properties and setting the log file to 2M, but it doesn€™t keep the changes.
Any help with this process?
View 1 Replies
View Related
Jan 7, 2007
Hi there ,1. i have a database and i want to encrypt my passwords before storing my records in a database plus i will later on would require to authenticate my user so again i have to encrypt the string provided by him to compare it with my encrypted password in database below is my code , i dont know how to do it , plz help 2. one thing more i am storing IP addresses of my users as a "varchar" is there a better method to do it , if yes plz help me try { SqlConnection myConnection = new SqlConnection(); myConnection.ConnectionString = ConfigurationManager.ConnectionStrings["projectConnectionString"].ConnectionString; SqlDataAdapter myAdapter = new SqlDataAdapter("SELECT *From User_Info", myConnection); SqlCommandBuilder builder = new SqlCommandBuilder(myAdapter); DataSet myDataset = new DataSet(); myAdapter.Fill(myDataset, "User_Info"); //Adding New Row in User_Info Table DataRow myRow = myDataset.Tables["User_Info"].NewRow(); myRow["user_name"] = this.user_name.Text; myRow["password"] = this.password.Text; // shoule be encrypted //not known till now how to do it myRow["name"] = this.name.Text; myRow["ip_address"] = this.ip_address.Text; myDataset.Tables["User_Info"].Rows.Add(myRow); myAdapter.Update(myDataset, "User_Info"); myConnection.Close(); myConnection.Dispose(); } catch (Exception ex) { this.error.Text = "Error ocurred in Creating User : " + ex.Message; }
View 3 Replies
View Related
Oct 26, 2000
hi, I have settup up sql mail and did the following:
1. created an E-mail account and configured Out look by creating a pop3 mail profile. tested it by sending and receiving mail, that is ook
2. I Created one domain account for MSsqlserver and Sql Agent service. both services use same account and start automatically in the control panel-services
3. I used the profile that I created in outlook to test the sql mail but got an error:
Error 22030 : A MAPI error ( error number:273) occurred: MapiLogon Ex Failed due to MAPI
Error 273: MAPI Logon Failed
I really do not know what went wrong. I followed the steps from bol and still having a problem. Am I missing something.
I do have a valid email account
I do have a valid domain account
I tested outlook using the email account and it worked. so why sql server does not recognise MAPI.
My next question, How to configure MAPI in Sql server if what I did was wrong.
View 1 Replies
View Related
Mar 23, 2001
Hi, I have 2 windows 2000 server in cluster with sql server 2000 enterprise edition installed.
I have activated the Server-Requested Encryption by using the sql server network utility (Force Protocol Encryption). After this, I have stoped sql server service. But I can't start it at this moment.
The error is:
19015: The encrypton is required but no available certificat has been found.
Please help me to start sql server.
Thanks.
Michel
View 4 Replies
View Related
Aug 11, 2000
Hi,
I am using
exec sp_helpdb
go
dbcc sqlperf(logspace) for
getting database size and log size. Is this gives the correct
database size and log size or Is there any other way to get the logsize and database size by means of query analyzer.
Thanks in Advance.
Seenu. S
View 4 Replies
View Related
Mar 20, 2007
I'm getting this error while trying to insert records into a SQL Server Compact Edition database. I have pasted my connection string that was used when creating the database as well as for accessing that same database from my Windows application.
Thanks for any help any of you can give!
Data Source=OnTheGo.sdf;Encrypt Database=True;Password=<password>;Max Database Size=4091
View 3 Replies
View Related
Feb 18, 2008
Hello,
I am developing a smart device application with Visual Studio .Net 2005 and SQL Server Compact Edition database. And also using merge replication to synchronize the data from the mobile device to the SQL Server.
My database size is around 350MB. So when I am trying to synchronize this is the error message that I get.
" The database file is larger than the configured maximum database size. The setting takes effect on the first concurrent database connection only.[Required Max Database size ( in MB; 0 if unknown)=129].
I tried changing the Max database size in the connection string and my connection string looks as follows and still did not have any luck.
connstr= "Data Source=Storage CardItems.sdf;Max Database Size=500;"
Any help regarding this would be appreciated.
Thank you
.
View 6 Replies
View Related
Jun 10, 2014
It is possible to find table size and in that table each row size.
View 4 Replies
View Related