Viewing 15 posts - 6,466 through 6,480 (of 6,485 total)
Using a base table versus a # temp table will help if your tempdb is either being hammered on, or is badly fragmented. If you're using a lot of #temp...
August 24, 2007 at 7:25 am
Well - it all seems to depend on how much you plan on using it and/or how big of a dataset we're talking about. In defining the XML data source,...
August 24, 2007 at 6:38 am
Have you considered dumping the subquery results to a separate table, preferrably indexed (or dump to it first, then index), and run the outer query based on the new table?
It...
August 23, 2007 at 4:17 pm
Query analyzer might be the quickest way to do this.
Open up QA, and use the object browser to find the SP. Right-click on it, and pick "Script into new window...
August 23, 2007 at 2:01 pm
Check scheduled DTS packages. If they involve outside data sources and you're using SQL server logins, you might see that type of entry.
August 23, 2007 at 1:53 pm
encapsulate whatever you're doing in a transaction, and then use a locking hint to prevent updates.
UPDLOCK looks like the one, and be sure to specify to do it at...
August 23, 2007 at 11:52 am
SELECT <columns> FROM CompanyCategory WHERE CategoryID in
(select companyid from CompanyCategory where categorid in (<all categories you want> having count(distinct categoryid)=<count of categories you want>
August 23, 2007 at 11:05 am
A few comments:
August 23, 2007 at 8:27 am
Is the database trying to grow during that time?
August 23, 2007 at 8:07 am
I've had this happen before. It did have something to do with the clustered index in my case.
Keep in mind that the clustered index determines how the data is stored...
August 23, 2007 at 7:51 am
To build on peter's example from before:
Set @sql=' SELECT '+ @fiyatgrup+'*'+ @fiyatgrup+'Brm' result FROM dbo.GenelSFiyatlari'+
' WHERE UrunID = '+@urunid+' AND...
August 22, 2007 at 2:32 pm
I might be missing something, but it seems to be that the outer GROUP BY and aggregate function isn't needed. Your subquery already seems to be summarizing things to return...
August 22, 2007 at 2:07 pm
I'll pass on a bit of wisdom someone gave me a while back when I was ranting about some of my customers....
"The pay's the same"
As long as the paycheck continues...
August 22, 2007 at 12:32 pm
Now - I can't address why it works in some places and not others - but that error usually is data-conversion or collation-related. like taking oracle date fields and shoving...
August 22, 2007 at 12:19 pm
Viewing 15 posts - 6,466 through 6,480 (of 6,485 total)