Viewing 15 posts - 6,136 through 6,150 (of 7,501 total)
I guess you better launch a new thread with title "linked server losing connection when domain controller bounced" ![]()
Maybe that will encourage some people...
August 29, 2006 at 7:49 am
Check the access path :
Maybe it's trying to generate the same path like the one for this query :
SELECT
TOP 50 *
August 29, 2006 at 6:33 am
you also might have been better of starting with a [rebuild of your indexes] / maintenceplan , a dbcc updateusage(0) with count_rows and a sp_updatestats !
The depricated part is the...
August 29, 2006 at 6:19 am
connection.BeginTrans() switches your connection to "implicit transactions" !!
Everything you do on that connection will automatic start a new transaction, unless there is allready one. This means you'll have...
August 25, 2006 at 5:26 am
also for readability of (outer) joins, using the JOIN-syntax delivers more clear separation of join-predicate and filter-predicate.
The optimizer mostly optimises to a fairly equal plan ![]()
August 25, 2006 at 3:23 am
the problem is that these jobs are owned by a windows domain user ! ![]()
They get authorised every time the job is launched by sqlagent....
August 25, 2006 at 3:18 am
-those are also the only ones in use overhere
FYI with SQL2005 I altered -T1204 to -T1222 altough it was not mandatory
- we also alter the Audit level from none...
August 25, 2006 at 3:11 am
I completely overlooked the s.ord_num as being the sortordernumber you wanted to use. That's why I added my own ordercol containing 0 or 1.
how about this
select maintitle
from (
select -1 as...
August 24, 2006 at 8:15 am
in your case, the "go"-solution will not work !
You're stuck with Mike John's solution.
Maybe a "select @cnt" may serve you well enough...
August 24, 2006 at 6:52 am
how about :
select maintitle
from (
select 0 as ordercol, 'this book at top of the list' AS 'maintitle'
union
select 1 as ordercol, t.title AS 'maintitle'
from titles t, sales s
where t.title_id = s.title_id
)...
August 24, 2006 at 6:16 am
maybe the "dodgy" GO statement can help you out..
print 'myfirtsnotification'
go
work work work
go
print 'mysecond notification'
go
.....
Keep in mind when using the GO, you'll loose all declared variables (or have to redefine them...
August 24, 2006 at 6:04 am
you may want to refresh statistics before you go on ...
'-- Usage ' + db_name()...
August 24, 2006 at 5:19 am
- it's useless to create the index if there is only one value. The chance of it being used is fairly equal to 0
August 23, 2006 at 11:54 pm
you are always performing a full table scan because you did not provide an index for [ProducerId]
This way (b)locking and waits will occur !!
Jus create an index on...
August 23, 2006 at 6:06 am
- Is this meaning you want your column "workfunction" to be a bitmap ?
check out the implications !!
- http://www.sqlservercentral.com/columnists/dpoole/usingbitstostoredata.asp
- you would need a function with cursor (or temptb)...
August 23, 2006 at 5:24 am
Viewing 15 posts - 6,136 through 6,150 (of 7,501 total)