Viewing 15 posts - 166 through 180 (of 607 total)
jhager (11/4/2013)
Other than missing the END statement (which exists later on in my script), I'm still not seeing anything incorrect.
The code works for me. The table is created correctly.
November 5, 2013 at 4:57 am
Abu Dina (11/4/2013)
You don't need to include the schema name when you call the OBJECT_ID function:
OBJECT_ID(N'dbo.mtzcus_2014_CoreMenuAuditDetails', N'U')
should be just
OBJECT_ID(N'mtzcus_2014_CoreMenuAuditDetails', N'U')
That's incorrect. You should include the schema name when you...
November 5, 2013 at 4:55 am
SQLJocky (11/1/2013)
Yes, all of the _dta_ listings are showing as hypothetical.
You can safely remove those.
SELECT
'DROP INDEX ' + QUOTENAME(name) + ' ON ' + QUOTENAME(OBJECT_NAME(object_id))
FROM
sys.indexes
WHERE
is_hypothetical = 1;
November 1, 2013 at 7:09 am
Number of columns exceeds the maximum possible columns per sheet in this format; Columns Requested: 272, Max Columns: 256
You cannot export more than 256 columns to Excel.
http://msdn.microsoft.com/en-us/library/ms159836(v=sql.100).aspx
November 1, 2013 at 2:18 am
It's possible they are hypothetical indexes, a remnant of database tuning advisor.
What does the following return?
SELECT
name,
is_hypothetical
FROM
sys.indexes
WHERE
OBJECT_NAME(object_id) = 'ABCTable'
November 1, 2013 at 1:55 am
Matt Crowley (10/31/2013)
November 1, 2013 at 1:35 am
What about creating a stored procedure database on your server.
1. Loop through sys.procedures for _del_
2. Fetch text from syscomments definition from sql_modules
3. Create proc on stored procedure database
4. Delete procedure...
November 1, 2013 at 1:34 am
Jeff Moden (10/31/2013)
November 1, 2013 at 12:41 am
It is much faster to apply a table function.
CREATE TABLE Test1 (ID INT);
GO
INSERT INTO Test1
SELECT TOP 1000000 ROW_NUMBER() OVER (ORDER BY a.object_id)
FROM sys.all_columns a
CROSS JOIN sys.all_columns b
GO
CREATE FUNCTION UDF_INLINE (@Input...
October 31, 2013 at 8:31 am
Jeff Moden (10/30/2013)
martin catherall (10/30/2013)
Let me re-phrase again...
October 31, 2013 at 6:05 am
Your tempdb usage has nothing to do with cardinality estimates. It is because you are ordering by a NVARCHAR(2000) column and the sort operation is spilling to tempdb. Try the...
October 30, 2013 at 2:40 am
Richard Warr (10/29/2013)
Sean Pearce (10/29/2013)
My name can be spelt a few different ways and I am used to people getting it wrong....
You make a valid point but it reminds me...
October 29, 2013 at 8:29 am
Viewing 15 posts - 166 through 180 (of 607 total)