Viewing 15 posts - 6,136 through 6,150 (of 7,505 total)
http://blogs.msdn.com/lcris/archive/2005/06/10/428178.aspx
explains a bunch of it !! ![]()
August 31, 2006 at 6:48 am
select
replace( cast ( serverproperty('ProductVersion')
August 31, 2006 at 4:34 am
This kind of poor queries will have you suffer long time ![]()
here are some more solutions.
I guess the CTE is a good example,...
August 30, 2006 at 12:08 am
SQL2005 :
declare
@DefaultBackupDirectory nvarchar(512)
exec
master.dbo.xp_instance_regread N'HKEY_LOCAL_MACHINE',...
August 29, 2006 at 8:00 am
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
Viewing 15 posts - 6,136 through 6,150 (of 7,505 total)