Viewing 15 posts - 49,456 through 49,470 (of 49,566 total)
Might I suggest you post in the SQL Server administration or SQL Server General forums.
More people read those and you are more likely to get an answer.
This forum is...
July 1, 2005 at 2:38 am
A covering index on OrderDate, OrderID should do the job.
You'll be surprised how many people don't realise that functions prevent index usage, or don't think about indexes at all....
June 28, 2005 at 1:30 am
DBCC Shrinkfile expects the logical name of the file to be shrunk as the first parameter, not the name of the database.
Run sp_helpdb 'MyTemp' and see what it returns as...
June 20, 2005 at 1:51 am
Just one thing. Never start a stored procedure name with sp_
Very much recomended against due to the way SQL resolves names when executing a stored procedure.
sp_ is the prefix that...
June 5, 2005 at 11:48 pm
You're creating a table named TRENDDATA and inserting into TRENDDATA_
btw, did you test my code? I ran it on the sample data you posted yesterday and got results that look...
June 3, 2005 at 12:12 am
If anyone can do this without a cursor, I'd be very interested in seeing it.
June 2, 2005 at 2:44 am
Well, this caught my intrest, so I thought I'd give it a quick try. Sorry Remi. );
This appears to work, if I've understood your requirements properly.
CREATE PROCEDURE SumOfMaximum (@Tid INT,...
June 2, 2005 at 2:42 am
That assumes that you have an identity column, a timestamp or a datetime field defaulting to getdate()
June 2, 2005 at 1:30 am
I've had some fun issues with distributed transactions to the AS/400. In my experience, they're not DTC errors, but problems with the IBM AS/400 OLE DB driver.
Experiment with wrapping the...
June 1, 2005 at 12:12 am
What happensd is that SQL creates a temporary work table in TempDB for the columns returned from the query, plus a new column for the NewID, populates the work table...
May 20, 2005 at 1:44 am
You could run profiler and capture the sp:StmtStarting event. That will show you every statement executed inside the stored proc, even if it is encrypted.
That way, you'll be able...
May 18, 2005 at 2:52 am
Hmmm, I'm running Developer (2000) as a named instance on an XP Pro machine (SP 1) and @@Servername returns the name of the instance.
Have you tried through query analyser, or...
May 18, 2005 at 12:39 am
'Order by 1' says to order the resultset by the first column in it, in this case, the count(*)
May 16, 2005 at 7:47 am
Why do you need a dynamic statement? I assume you're doing this in a stored proc, if not, adjust or whatever...
I'm also assuming that you know the structure of the...
May 6, 2005 at 6:20 am
Viewing 15 posts - 49,456 through 49,470 (of 49,566 total)