Viewing 15 posts - 4,096 through 4,110 (of 13,469 total)
statsics look real bad in two of the queries (200K+ rows estimated, actual = 0
and pretty bad for the rest;
running this, with no other changes, will at least help a...
January 25, 2013 at 12:15 pm
also, my rule of thumb is that any @TableVariable with more than a few hundred rows should be a temp table instead, to allow the system to automatically do things...
January 25, 2013 at 11:24 am
if you don't have a customized trace, CDC, SQL Audit, or some other set of tracking in place prior to the query being executed, there's no way to find...
January 25, 2013 at 8:07 am
it's not stored anywhere , i think; I believe you'll have to find a year old backup and compare that to todays backup.
January 24, 2013 at 3:09 pm
since the proc would create the same tables all the time, it seems to me a stored proc which simply restores a backup as a new database name might be...
January 24, 2013 at 2:55 pm
when you read the same report in gmail, if you "View Source" for the rendered report, can you confirm that it has now been manipulated/changed from what you actually created...
January 24, 2013 at 11:14 am
i thought it was clear: i read it as howard saying there is no need to mark an calculated column as persisted in order to index it...it's not a requirement.
simple...
January 24, 2013 at 11:11 am
you want to use the system view sys.synonyms, instead, which has everything you need:
select * from sys.synonyms
--rebuilding the command:
select
'CREATE SYNONYM '
+ quotename(SCHEMA_NAME(schema_id))
+'.'
...
January 24, 2013 at 5:29 am
it's certainly possible, but I'm not sure if you can integrate it into Reporting Services:
check out this great article here on SQL Server Central, which has the coding and explanation...
January 23, 2013 at 12:15 pm
i am wondering if you could put an extended event for CREATE_TABLE on the tempdb?
I'll grab one of my sample extended events and try it, but it's just an idea...
January 22, 2013 at 12:38 pm
rynmthw3 (1/22/2013)
What do I have to do to configure SQL Server to not allow any users besides my Login to be able to create tables and database.Thanks
It's the principal of...
January 22, 2013 at 12:32 pm
how are you determining that it is "full"?
my model database is 3.5 Megabytes in size, with three meg for data, and one meg for the log. that's right...one meg.
we just...
January 22, 2013 at 11:23 am
SELECT SPACE(81)
or
SELECT CONVERT(CHAR(81),'')
if you are using a column, and you need to guarantee it's 81 spaces, it's similar:
SELECT CONVERT(CHAR(81),YourColumnName)
will both give you strings you are looking for...
THE LEN() property...
January 22, 2013 at 9:46 am
nope; if the procedure exists in a different database, then the login needs a matching user mapped to it in each of those databases;
that user in the "procedure" database would...
January 22, 2013 at 9:43 am
i have this saved, whcih shows all tables/the filegroup they belong to:
SELECT
objz.[name],
objz.[type],
idxz.[name],
idxz.[index_id],
...
January 22, 2013 at 8:10 am
Viewing 15 posts - 4,096 through 4,110 (of 13,469 total)