Viewing 15 posts - 26,281 through 26,295 (of 26,487 total)
Like I said, arguing is pointless. Neither of us is going to be swayed to the other side. You can continue to write your code your way and I will...
November 18, 2006 at 11:21 pm
Don't do an explicit log truncate after a transaction log backup. You may truncate a transaction that completes after the transaction log backup. Let the transaction log backup handle deleting...
November 18, 2006 at 10:02 pm
Sorry to disappoint you, but I am knowledgeable about the subject, although I may not be an expert. It is better to explicitly destroy that which is explicitly created. It...
November 18, 2006 at 9:19 pm
The other issue to consider: system performance and scalability. When does SQL Server destroy your #table temporary tables? Do they automatically get destroyed and free up disk space in tempdb...
November 18, 2006 at 8:20 pm
In a properly designed system, if you create a temporay table, you should drop it. You should not rely on the system to clean up after you.
November 17, 2006 at 10:00 pm
Try this:
select count(*) from (
select
a.IDP,
a.IDQ,
b.IDQ
from
dbo.ENC_ANSWERS a
inner join dbo.ENC_ANSWERS b
on (a.IDP = b.IDP)
where
a.IDQ = 'Male'
and b.IDQ = 'Office'
) t
hth
November 17, 2006 at 1:52 pm
Agree. It is always a good idea to drop the temp table rather than relying on SQL to clean up when the table passes out of scope.
November 17, 2006 at 10:31 am
Definately sounds like a permissions issue. As above, look at the account that SQL Server is running under on the server. It needs to have access to the Linux server...
November 16, 2006 at 3:37 pm
I think that depends on how you do authentication. If you will be using Windows Authentication, then the answer is most likely, yes. If you are using SQL Authentication, then...
November 16, 2006 at 3:33 pm
The two methods I have had success with are the detach/attach and backup/restore. I have not had any success with the Copy Database method using SQL Management Object method.
hth
November 16, 2006 at 1:25 pm
Luke L,
One thing in your explaination about backups: full and differential backups do not truncate the transaction log. That is only done by the transaction log backup. Full and Differential...
November 16, 2006 at 12:47 pm
When you truncate the transaction log, you are deleting all commited transactions that have been checkpointed (written to the database).
If you are no doing transaction log backups, and only truncating the...
November 16, 2006 at 12:42 pm
Is it safe to say that this is the format of your exec:
exec master.dbo.xp_sendmail @recipients = N'username@company.com', @message = N'Test'
If so, I have no idea as this works for...
November 16, 2006 at 12:35 pm
declare @tableName sysname -- your parameter
set @tableName = 'dbo.tmpSalesRollUpUserId'
declare @sqlCmd nvarchar(4000)
set @sqlCmd = N'drop table ' + @tableName
exec (@sqlCmd)
hth!
November 16, 2006 at 12:29 pm
Using a derived table should also work.
November 16, 2006 at 10:38 am
Viewing 15 posts - 26,281 through 26,295 (of 26,487 total)