Viewing 15 posts - 1,261 through 1,275 (of 1,315 total)
Use MAX for most recent.
August 19, 2004 at 9:31 am
Presumably there is a primary key that ties all these optional columns together?
Could you use something like this:
declare @cmd varchar(8000)
set @cmd = 'SELECT * INTO ' + <new table> +...
August 19, 2004 at 9:28 am
One issue I've run into that caused wild variations in sp execution times was when developers used optional parameters with queries like
select ... from ...
where UserID = @User or @User...
August 19, 2004 at 9:09 am
I think you're confusing clustered servers (for fault-tolerance) with federated servers (for performance).
Quote from BOL:
"SQL Server 2000 does not support a load-balancing form of clustering for building a database services...
August 19, 2004 at 8:53 am
I've been annoyed in the past by questions or answers I thought were misleading, but this isn't one of them. If you turned this into a multiple choice you'd give...
August 18, 2004 at 5:08 pm
The easiest way was in the first reply. In Enterprise Manager, right-click on a stored procedure and select All Tasks - Generate SQL Script. Click the Show All button and...
August 17, 2004 at 8:55 am
The link in the previous post is a very good discussion of composite indexes, to which I would add their discussion of clustered indexes.
http://www.sql-server-performance.com/clustered_indexes.asp
Just ignore the one paragraph that...
August 17, 2004 at 8:18 am
You say they don't show up, but you don't say you're getting any errors. Are you sure you aren't copying them to the wrong database?
The previous two posts are excellent...
August 17, 2004 at 7:30 am
You can simplify this by using the ActiveX task to merely set the value of another global variable to the desired query, followed by a Dynamic Properties task to set...
August 17, 2004 at 7:23 am
A new install will be cleaner than an upgrade.
It gives you an excuse to ask for a new server. (How old is that 7.0 server, anyway?)
The old server is still...
August 17, 2004 at 6:25 am
Watch out for multi-row operations in triggers.
CREATE TRIGGER trNumber
ON tbl
FOR INSERT, UPDATE
AS
UPDATE t SET Number = i.ID
FROM tbl t
INNER JOIN inserted i ON t.pk = i.pk
WHERE i.Number IS NULL
August 13, 2004 at 7:35 am
If you have room for two copies of the data, I think this might run faster than the self-join and DELETE method.
First import the data into a staging table.
Then create...
August 12, 2004 at 6:19 pm
The solution posted works for the sample data given, but assumes the top manager is one of the employees in the original search set. What if your employee org chart...
August 12, 2004 at 5:40 pm
I would be interested in the source code as freeware. I'd want source code because there's usually some reason to tinker with a tool like that to customize it to...
May 13, 2004 at 11:57 am
Viewing 15 posts - 1,261 through 1,275 (of 1,315 total)