Viewing 15 posts - 25,966 through 25,980 (of 26,487 total)
Could you post the code you are using for your INSERT INTO? Also, where are you running it from and where is the original database?
May 10, 2007 at 9:03 am
Try this:
declare @startdate datetime,
@finishdate datetime
select
RM.fldPriorityCode as 'Priority',
sum(case when datediff(day,RM.fldRequestDate,RM.fldComCanDate) <=5
then 1
else 0
end) as 'Closed Calls 0-5 Days',
sum(case when datediff(day,RM.fldRequestDate,RM.fldComCanDate) between 6 and 10
then...
May 10, 2007 at 9:00 am
Try this:
select
Case.CaseID,
Borrower.BorrowerID
from
dbo.Case
inner join dbo.Borrower on (Case.CaseID = Borrower.CaseID)
May 10, 2007 at 8:32 am
It is my understanding that you can go either direction without any problems.
May 10, 2007 at 8:27 am
Tempdb is used during query processing for sorts, joins, unions, etc. If you have enough poorly written code and a number of users, it is possible that tempdb is getting...
May 10, 2007 at 6:30 am
Okay... You will need to elaborate on that one. Not really sure what you are talking about regarding "forms".
May 9, 2007 at 5:35 pm
Since you have a backup, just restore the database. When you do that, the database will be in 2000 compatibility mode. You will need to go into the properties and...
May 9, 2007 at 3:05 pm
After doing the above, restart SQL and then delete the original tempdb data and log files, as they will still exist in their original location.
May 9, 2007 at 2:10 pm
Also depends on indexes as well. If the datefield is indexed it should still run well, but I guess we'd have to find someone willing to test it on a...
May 9, 2007 at 1:24 pm
Or you can try this:
select
a.dtDate,
datediff(dd,(select min(b.dtDate) from dbo.testtbl b where b.dtDate <= a.dtDate), a.dtDate) as AccumTime,
datediff(dd,isnull((select max(c.dtDate) from dbo.testtbl c where c.dtDate < a.dtDate), a.dtDate), a.dtDate) as...
May 9, 2007 at 12:04 pm
Why do you need the result returned as a comma seperated list?
May 9, 2007 at 8:17 am
No, SQL Server Agent can not be running while SQL Server is stopped. It would be unable to access the msdb database.
May 9, 2007 at 7:41 am
You don't need a cursor:
declare @SQLString varchar(max)
select @SQLString = isnull(@SQLString,'') + Column1 + ',' from myTable
set @SQLString = substring(@SQLString, 1, len(@SQLString) - 1)
select @SQLString
May 8, 2007 at 3:55 pm
I can help answer part of your questions, mainly question 2.
The transaction log is not truncated by either full or differential backups. To truncate the transaction log, you need to...
May 8, 2007 at 11:18 am
Viewing 15 posts - 25,966 through 25,980 (of 26,487 total)