Viewing 15 posts - 1,216 through 1,230 (of 1,417 total)
With this code you will get a list of all tables with a column name of "DeptNo".
select
sys.tables.name as TableName
, sys.columns.name as ColumnName
, sys.columns.column_id
from
sys.tables
inner join sys.columns
on sys.tables.object_id = sys.columns.object_id
where
sys.columns.name = 'DeptNo'
Using...
June 30, 2009 at 8:13 am
Look at the DMV's for index usage.
taken from https://www.sqlservercentral.com/blogs/brian_kelley/archive/2006/06/12/639.aspx
sys.dm_db_missing_index_details
sys.dm_db_missing_index_columns
sys.dm_index_usage_stats
The first two allow us to identify cases when we need an index but one isn't present. If we...
June 30, 2009 at 7:32 am
I don't really know what you are asking, but I will try to answer.
To see when a user connects and disconnects from a database and to see what the user...
May 26, 2009 at 6:32 am
Do you have more specific error messages? (see LOGs)
Can you manually execute the command when you copy the code from the job to a query window?
Has anything changed 5 days...
May 26, 2009 at 6:26 am
SQL 2000 is not compatible with SQL 2005. Connect to the SQL 2005 instance using the SQL 2005 tools.
May 25, 2009 at 5:24 am
Are you able to break down the batch into seperate commands? If you run each part seprately, you can see wich part of the batch is causing the failure.
This is...
May 6, 2009 at 2:12 pm
sward (5/5/2009)
Hi,I am getting this SQL error:
Msg 2627, Level 14, State 1, Line 1
Warning: Null value is eliminated by an aggregate or other SET operation
This error is generated by the...
May 6, 2009 at 4:58 am
More info is needed. Can you post the batch code?
Maybe a trace can pinpoint the problem?
May 6, 2009 at 3:28 am
For my knowledge, there is no such event. When the service is (going) down or hangs it is obvious no scripts can be executed.
I think you should act on entries...
April 8, 2009 at 2:23 am
You can see in the execution plan that both options are executed alike.
But only use DISTINCT or GROUP BY when required, because they can cause real performance hits.
April 3, 2009 at 6:02 am
In my experience data is given without being obfuscated or not given at all. There is nothing in between. But I think it is something that the market will require...
March 10, 2009 at 6:11 am
Mike John (3/4/2009)
2009-09-02 17:30:00.000 -- which is exactly what you will see if you are configured for a UK date format. ie the dateadds behave as...
March 4, 2009 at 7:11 am
john.arnott (3/3/2009)
For one additional degree of difficulty: What's the result from this query?
select DATEADD(HOUR,5,DATEADD(MINUTE,-59,'2009-02-09 12:34:56.789'))
a) 2009-02-09 07:34:57.789
b) 2009-02-09 16:35:56.789
c) 2009-02-09 16:33:56.790
d) 2009-02-09 16:35:56.790
I think it's answer B. Microseconds are...
March 4, 2009 at 7:08 am
Does your account has the required rights? And is the import transaction committed?
February 26, 2009 at 8:44 am
Viewing 15 posts - 1,216 through 1,230 (of 1,417 total)