Viewing 11 posts - 2,446 through 2,456 (of 2,456 total)
You mean 128. Yes, that is correct. Thanks!
July 10, 2012 at 3:49 pm
To get the number in MB:
value * 8 / 1024
Example:
Selectname,
size*8/1024
from sys.master_files
July 10, 2012 at 3:03 pm
Everything except for the DB name can be found in sys.database_files. You can get db name with DB_NAME(). The procedure below will get you all this information for every DB...
July 10, 2012 at 2:49 pm
Beginning with SQL Server 2005, they included the INFORMATION_SCHEMA which is a better way to access this kind of information.
For columns you can use INFORMATION_SCHEMA.COLUMNS which, unlike sys.columns, provides the...
July 10, 2012 at 12:56 pm
I also concur with Richard Warr's post. Redgate has a great tool for searching databases and the contents of databases (something worth noting, especially on SQLServerCentral.)
July 10, 2012 at 11:53 am
If we are talking about searching for tables specifically here then you could use these:
The first one, usp_findColumn_thisDB, takes a parameter and searches all tables with a column matching that...
July 10, 2012 at 11:47 am
With a couple very rare exceptions (not relevant for this conversation) I have never had any issues with disabling indexes.
July 10, 2012 at 8:43 am
Based on what you've said I cannot see any use for them but I would I would disable them first for a little while to be on the safe side...
July 9, 2012 at 10:37 am
Determining the performance impact of removing these unused indexes is important; understanding the impact of leaving them there is also important. In the past 14 years I cannot recall a...
July 9, 2012 at 8:10 am
I started with the first few:
Create Sample Data:
CREATE table x(Value varchar(20))
INSERT INTO x VALUES
('a'),
('A'),
('NULL'),
('NULL xxx'),
('113Y'),
('111Y'),
('1')
-- 1. string starts with 3 digit same number Example 111Y,333Y, 555 H etc
-- a....
July 6, 2012 at 5:01 pm
This is a very interesting quandary indeed. I am sure this can be done using a little less code but here is what I came up with:
SET NOCOUNT ON
GO
/***********************************************************************
1) Create...
June 29, 2012 at 9:47 am
Viewing 11 posts - 2,446 through 2,456 (of 2,456 total)