Viewing 15 posts - 586 through 600 (of 1,315 total)
Umm, what looping code? His solution creates one command to drop them all at once. ("DROP PROC procedure1, procedure2, procedure3")
February 21, 2007 at 10:06 am
Okay, for people who create huge procedures:
DECLARE
@cmd VARCHAR(max)
SET @cmd =
February 21, 2007 at 9:34 am
This might work:
SELECT
* FROM X
INNER JOIN
February 20, 2007 at 7:01 am
DECLARE
@cmd VARCHAR(max)
SET @cmd = ''
SELECT @cmd
February 20, 2007 at 6:33 am
ROW_NUMBER is a good way to deal with this type of problem. This is guaranteed to return 1 email per candidate, even if you have more than one flagged as...
February 20, 2007 at 6:17 am
You could set up the Excel destination with the "First row has column names" box unchecked. Then you need to add a row with the variable column names first, followed...
February 16, 2007 at 3:32 pm
You could write a data source script component that created a standard collection of output columns and took care of mapping the stored procedure variable column names to the standard...
February 16, 2007 at 7:29 am
Go back to the Tools|Options menu in Query Analyzer and get a little more creative. Change "Result file extension:" to .xls on the General tab, then go to the Results...
February 15, 2007 at 8:54 am
There is no trick that will make your problem go away, you simply can't remove the identity property from a table. You can do what Enterprise Manager is trying to...
February 12, 2007 at 5:42 pm
The table scan could caused by using a VARCHAR variable to store the cutoff date instead of a datetime.
The DELETE may be creating a range lock on the Expired index for all values...
February 12, 2007 at 5:27 pm
The script I get look like this:
SET
ANSI_WARNINGS OFF
SET NOCOUNT ON
SELECT CAST(
February 9, 2007 at 12:08 pm
Did you switch to text mode before running it? Grid mode screws up the line breaks.
February 9, 2007 at 11:30 am
We moved from SQL2000 32-bit to SQL2005 64-bit and have not had any major issues. We don't have any custom external stored procedures, and we don't link to Oracle or...
February 9, 2007 at 11:25 am
Here's another one in color. Why search the table once for every column?
USE
Northwind
DECLARE @schema sysname, @table
February 9, 2007 at 9:26 am
You can use NULLIF to change the '00000000' values back to NULL, but then you have to use ISNULL to replace the result with something > 1 if you want...
February 7, 2007 at 7:39 am
Viewing 15 posts - 586 through 600 (of 1,315 total)