Viewing 15 posts - 1 through 15 (of 366 total)
Not tested completely, but this type of query can be written not to use a temp table or cursor
example below
DECLARE @spid SMALLINT
-- Set desired SPID. If NULL, it will return...
February 24, 2012 at 3:58 am
Hi Gail,
I see both our solutions generate the same plan with those five records.
(SQL build 9.0.4053)
October 16, 2009 at 4:32 am
As Dave mentioned now you have an order, it can be coded.
I've rewritten my example using your example, plus added a variable for record you want first.
set nocount on
declare @firstpos...
October 16, 2009 at 4:25 am
You will need to order the data by something. In this example I created a unique id using the row_number function by ordering on column b.
-- Setup test table &...
October 16, 2009 at 4:13 am
Yes, and this will become even more so with 2008r2, which I beleive will run on a core o/s install
hence no local GUI.
August 21, 2009 at 6:14 am
Profile the sql server using the 'sql profiler' tool, and that will show you what t-sql is currently running on the server. It may be best to add the hostname...
August 19, 2009 at 5:59 am
If you are UK based, you could always go to the free community day in November in Newport, Wales
August 17, 2009 at 5:58 am
In the short term you can also use the sql profiler to capture failed logon attempts (remember to add in the hostname field).
Also you can use the server side tracing...
June 26, 2008 at 8:07 am
I'd ask questions and read up!
What happens to performance if you extend LUNS? etc.
Colin has some good SAN/DB articles at the following URL
http://sqlblogcasts.com/blogs/grumpyolddba/archive/tags/SAN/default.aspx
June 26, 2008 at 6:05 am
Sorry it was a few years ago since I linked to exchange, but I did keep a few bits of code (below) which may help.
-- adding a linked server
EXEC...
June 18, 2007 at 5:54 am
You can create a linked server to exchange 2003 using the active directory provider, add the linked server security. Then you can query the exchange server.
June 18, 2007 at 2:22 am
The easiest way is to copy multiple packages is to use another DTS package to copy the packages.
See http://www.sqldts.com/204.aspx for more details
February 2, 2007 at 2:26 am
Here new development is primarily on SQL2005.
The first challenge is to decide what components to install, and what surface area configuration settings to use e.g DAC. Functionality hangs together eg If you...
February 24, 2006 at 12:43 am
http://www.sqlsecurity.com has a hotfix database where you will see the pss hotfixes listed (3 so far)
Also you can search the microsoft web site for kbsql2005presp1fix to find fixes which...
February 23, 2006 at 8:14 am
Again option #1, but it would have been nice to see an orange cube (the same shade as the '2005 Ready to launch' items)
February 21, 2006 at 1:42 pm
Viewing 15 posts - 1 through 15 (of 366 total)