Viewing 15 posts - 49,441 through 49,455 (of 49,552 total)
I've had this before, though I don't know what caused it. Looking at the table list in Ent Manager the table had no owner listed. When I checked sysobjects, I...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
July 11, 2005 at 2:48 am
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...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
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....
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
June 28, 2005 at 1:30 am
My pleasure.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
June 20, 2005 at 7:28 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...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
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...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
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...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
June 3, 2005 at 12:12 am
If anyone can do this without a cursor, I'd be very interested in seeing it.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
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,...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
June 2, 2005 at 2:42 am
That assumes that you have an identity column, a timestamp or a datetime field defaulting to getdate()
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
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...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
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...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
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...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
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...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
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(*)
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
May 16, 2005 at 7:47 am
Viewing 15 posts - 49,441 through 49,455 (of 49,552 total)