Viewing 15 posts - 1,276 through 1,290 (of 2,268 total)
This question is badly written, .. B is the most correct answer
September 23, 2009 at 3:19 am
Are you able to post your create index statements?
without looking at the execution plan it is hard to tell, but from the query one suggestion would be to have seperate...
September 23, 2009 at 2:40 am
There are a number of commercial log readers available that will read the LDF for you, I have not used these personally so I am not sure whether they would...
September 22, 2009 at 10:13 am
arup_kc (9/22/2009)
steveb. (9/22/2009)
select name, value, version from #temp
where name in (select name as version from #temp group by name)
AND version in (select max(version)...
September 22, 2009 at 6:46 am
You can do the same with IN
select name, value, version from #temp
where name in (select name as version from #temp group by name)
AND version in (select max(version) as version from...
September 22, 2009 at 5:38 am
It is not entirely clear what you want to acheive but to give you a start ,this query will select the rows with the max version grouped for each...
September 22, 2009 at 4:37 am
you could create one plan to run a DB2 backup daily with conditional logic in the T-SQL backup code to run a DB1 backup if the day is Sunday
September 21, 2009 at 3:52 am
It looks like you have missed out a select on the update statement
UPDATE #Manufacturers
SET Manufacturer_Date = MIN(#ProductInfo.Product_Date)
FROM #Manufacturers
INNER JOIN #Products ON #Manufacturers.ManufacturerID = #Products.ManufacturerID
INNER JOIN #ProductInfo ON #Products.ProductID =#ProductInfo.ProductID
should be;
UPDATE...
September 18, 2009 at 9:34 am
khade (9/17/2009)
Try using the sentense "with (nolock)" maybe this help the fast execution for the query...
This is not a good idea as it probably wont make the query any faster...
September 17, 2009 at 8:05 am
Depending on how large the varchar columns are you may get quicker results using Full-Text Indexes on these columns
http://msdn.microsoft.com/en-us/library/ms345119(SQL.90).aspx
Full-Text is efficient at searching a word from a...
September 17, 2009 at 7:54 am
database names on the server can be found with this query
SELECT name FROM sys.databases
as for the sa password, you will need to ask your DBA as I don't...
September 17, 2009 at 6:25 am
yves-386841 (9/16/2009)
3. there are tables without primary key, index, unique things
Without primary keys or any unique identifiers then what are you going to use to compare rows?
September 16, 2009 at 10:00 am
It seems like you may want to schedule a job to run on the database rather than use a trigger, as mentioned triggers have to be fired by inserts/updates/deletes.
Either...
September 15, 2009 at 11:05 am
you can cycle your error log with;
EXEC dbo.sp_cycle_errorlog
September 15, 2009 at 10:24 am
If you are using a job to send the results to a .txt file, the one alternative way would be to create a SSIS package to extract the...
September 15, 2009 at 8:11 am
Viewing 15 posts - 1,276 through 1,290 (of 2,268 total)