Viewing 15 posts - 2,596 through 2,610 (of 3,011 total)
create table (
[COLUMN] int not null
constraint [PRIMARY_KEY] primary key ([COLUMN])
)
January 7, 2008 at 3:34 pm
You can use the output from one of these commands.
exec sp_helprotect
select * from sys.database_permissions
select * from sys.fn_builtin_permissions(DEFAULT)
January 7, 2008 at 12:22 pm
It can be done by creating stored procedures that show you the security settings, and granting you access to execute those stored procedures.
January 7, 2008 at 12:10 pm
Lee Forst (1/7/2008)
January 7, 2008 at 11:57 am
berto (1/7/2008)
In SQL 2k it is automatically set up to correct one. On SQL 2k5 32 Bit as far as I remember as well.
It has nothing to do with installing...
January 7, 2008 at 9:29 am
When you want to pass character date strings to SQL Server, the best format to use is YYYYMMDD, example: 20080131.
This format is always interpreted the same by SQL Server, not...
January 7, 2008 at 9:09 am
That is just the default Windows Server setting.
You should change it for any SQL Server installation.
January 7, 2008 at 8:58 am
exec master..sp_MSForeachdb
'
-- exit if system database
if ''?'' in (''master'',''model'',''msdb'',''tempdb'') return
use ?
print ''Database = ''+db_name()
exec sp_Reindexing
'
January 3, 2008 at 3:49 pm
Just create an account for them to use and insist they use it. Better yet, insist that they use a Windows account for their maintenance.
Donโt bother trying to talk...
January 3, 2008 at 2:42 pm
Terri (1/3/2008)
Shaun McGuile (1/3/2008)
0 to the power 0 is undefined - maybe in pure mathsBut my good ol calculator says it is 1. ๐
--Shaun
And my calculator says it is an...
January 3, 2008 at 10:30 am
Sanjay Pandey (1/2/2008)
Sanjay Pandey (12/21/2007)
Using Datefunctions.select getdate()-day(getdate()) as LastDayLastMth, getdate()-(day(getdate())-1) as FirstDayThisMth,dateadd(m,1,getdate())-day(dateadd(m,1,getdate())) as LastDayThisMth,dateadd(m,1,getdate())-day(dateadd(m,1,getdate()))+1 as FirstDayNextMth
Friends, please analyse the above one also in comparision to datediff. I use it always...
January 3, 2008 at 9:41 am
This is probably the easiest way to do it:
select dateadd(day,datediff(day,0,'2007-12-30 09:36:09.890'),0)
January 2, 2008 at 3:44 pm
Probably the easiest way to fix it would be to load the data into tables with columns of type datetime.
January 2, 2008 at 2:21 pm
GilaMonster (1/2/2008)
http://sqlinthewild.co.za/index.php/2007/11/05/datetime-manipulation/%5B/url%5D
I've done the end of the intervals at 3ms before the beginning of the next (ie, end of...
January 2, 2008 at 12:27 pm
This query should do what you want.
selecttop 1
LastEventID = e.EventID
from
tbl_eventlog e
where
e.object_id = @object_id
order by
e.EventDateTime desc
January 2, 2008 at 12:00 pm
Viewing 15 posts - 2,596 through 2,610 (of 3,011 total)