Viewing 15 posts - 1,921 through 1,935 (of 2,463 total)
SELECT p.TABLE_NAME,c.CONSTRAINT_NAME,c.COLUMN_NAME
FROM INFORMATION_SCHEMA.TABLE_CONSTRAINTS p ,
INFORMATION_SCHEMA.KEY_COLUMN_USAGE c
WHERE CONSTRAINT_TYPE = 'PRIMARY KEY'
AND c.TABLE_NAME = p.TABLE_NAME
AND c.CONSTRAINT_NAME = p.CONSTRAINT_NAME
ORDER by c.TABLE_NAME
April 7, 2010 at 5:47 am
for statistics i dont know but yes following query help you to figure out which indexes are not being used
select i.name as indexname,
object_name(s.[object_id]) as tablename, s.database_id, s.[object_id], s.User_seeks, last_user_seek,...
April 7, 2010 at 3:54 am
CirquedeSQLeil (4/7/2010)
Bhuvnesh (4/7/2010)
CirquedeSQLeil (4/7/2010)
When do those changes go into effect?well your changes ? as soon steve will look into them and considered them worth 😀
Nah, I was referring to Steve's...
April 7, 2010 at 1:56 am
CirquedeSQLeil (4/7/2010)
When do those changes go into effect?
well your changes ? as soon steve will look into them and considered them worth 😀
April 7, 2010 at 1:41 am
CirquedeSQLeil (4/7/2010)
SSC Rookie of the Year
this can be used for member who has scored maximum points in one year
April 7, 2010 at 1:41 am
Be careful when you drop statistics. Doing so may affect the execution plan chosen by the query optimizer.Statistics on indexes cannot be dropped by using DROP STATISTICS. Statistics remain as...
April 7, 2010 at 12:10 am
hennie7863 (4/6/2010)
April 6, 2010 at 8:10 am
hennie7863 (4/6/2010)
The company who built the software recommends adding more indexes.
why company asking to add more indexes, did they feel any bad performance in that table? and are all...
April 6, 2010 at 7:53 am
1. Use BULK INSERT method
2. Uss batch approach in DML operations(let says work on 10,0000 records one by one)
April 6, 2010 at 7:26 am
rafa.aborges (4/5/2010)
is there any extra cost? Something that I should be aware of?
* Increases resource usage when modifying data since row versions are maintained in tempDB.
* Update and Delete...
April 6, 2010 at 7:23 am
Jeff Moden (4/6/2010)
April 6, 2010 at 7:08 am
chandrasekaran.ganapathy (4/6/2010)
SELECT * INTO XLImport4 FROM OPENROWSET('Microsoft.Jet.OLEDB.4.0','Excel 8.0;Database=C:\test\xltest.xls', [Customers$])
Hi Here Customers$ refers the table name?
try with OPENDATASOURCE
April 6, 2010 at 4:02 am
Yes, Customer is table
April 6, 2010 at 3:07 am
we can have more levels after SSCChampion like SSGuru or SSCoach ( for 15000 + or 25000 + points)
April 6, 2010 at 2:10 am
Viewing 15 posts - 1,921 through 1,935 (of 2,463 total)