Viewing 15 posts - 1,051 through 1,065 (of 3,011 total)
If you have never made a full backup of the database since it was set to full recovery mode, you will not have anything in your transaction logs.
Until you make...
December 15, 2010 at 2:16 pm
If you use the same service account on multiple servers it is a security hole because anyone who is sysadmin on one of the servers can gain sysadmin access to...
December 14, 2010 at 1:04 pm
GSquared (12/13/2010)
DECLARE @Number DECIMAL(9, 2) ;
SELECT
@Number = 12300 ;
SELECT
@Number AS Original,
...
December 14, 2010 at 7:38 am
parthi-1705 (12/13/2010)
HiI Need to round next 1000 with out using Ceiling function
print CEILING(12307.96 * 1.0 / 1000) * 1000----> 13000
print CEILING(2207.96 * 1.0 / 1000) * 1000 ---->3000
Thanks
Parthi
If the...
December 13, 2010 at 12:44 pm
There is nothing in SQL Server 2005 or later to tell you how they were licensed.
December 8, 2010 at 11:59 am
You can also do something like this if OPENROWSET is enabled:
select
a.*
into
#new_table
from
openrowset('SQLOLEDB','SERVER=(local);Trusted_Connection=yes;',
'
SET FMTONLY OFF;
EXEC SP_HELPDB @dbname =''master''
') a
December 7, 2010 at 1:45 pm
adonetok (12/6/2010)
Once create a table variable, I need to insert huge data into it. I want to create index after inserting.
Use a temp table instead.
December 6, 2010 at 3:00 pm
select dateadd(mm,datediff(mm,0,getdate())-1,0) as FirstDayOfLastMonth
Lots of resources about SQL Server DATETIME manipulation here:
Date/Time Info and Script Links
December 6, 2010 at 2:32 pm
select dateadd(mm,datediff(mm,-1,getdate())-1,-1) as LastDayOfLastMonth
December 6, 2010 at 2:17 pm
My recommendation is to run a daily full backup and a transaction log backup every 15 minutes, 24x7, to have the highest level of security for user data. With...
December 6, 2010 at 12:39 pm
declare @retcode int
exec @retcode = msdb..sp_send_dbmail ...proc parameters...
if @retcode <> 0
begin
...code to handle error ...
end
December 6, 2010 at 12:26 pm
pilot72 (12/6/2010)
Thank you but that behaviour, I believe, applies to SQL 2005 on. My scenario is for SQL 2000.
Then why did you post your question in a SQL 2005...
December 6, 2010 at 10:33 am
Viewing 15 posts - 1,051 through 1,065 (of 3,011 total)