Viewing 15 posts - 5,626 through 5,640 (of 7,502 total)
maybe this may be a valid workaround :
September 5, 2007 at 3:53 am
try using underscores (_) in stead of minus signs (-) in your servernames !
September 5, 2007 at 3:31 am
and there is off course the IS_SRVROLEMEMBER ('sysadmin')
September 5, 2007 at 3:06 am
Indeed, membership of sysadmins-role is tricky !!
It switches context to 'sa' at connect and run-time.
This clarifies the "dbo" !
A sysadmin is Lord and Master for the whole and complete,...
September 5, 2007 at 2:48 am
.. Thanks for your help with this by the way! ..
That's the strength of forums like SSC ![]()
Like you do, I find your results...
September 4, 2007 at 8:15 am
can you also try :
select user_id('malinowm2')
?
September 4, 2007 at 7:53 am
another 'why not use a view' :
You cannot alter a view if someone is using it at that moment !
September 4, 2007 at 7:33 am
UID Uname
------ ------
1 dbo
means your current user _is_ the database owner !
(if he were member of db_owner, it would still show the actual username)
September 4, 2007 at 6:51 am
can you execute the same script preceded by :
select user_id() as UID
, user_name() as Uname
select SUSER_SID ( ) SUSID
, suser_sname() as SUname
go
September 4, 2007 at 4:41 am
keep in mind you need to be connected with that user and to the correct database.
Overhere it works fine (sql2000 sp4 + CU(2187))
Did you also try sp_helprolemember @rolename = 'testrole'
September 4, 2007 at 12:38 am
Is there a maintenance plan (with remove free space ? ) ?
September 4, 2007 at 12:33 am
- check your sqlserver errorlog file to find out what's going on !
(yourserverdrive:\mssql\log\errorlog = to be opened with notepad)
August 31, 2007 at 12:36 pm
indeed:
Index Id 0 = a heap table (table with no clustering index)
Index Id 1 = a clustering index (on index 0 possible )
Index Id 255 = lob container
August 31, 2007 at 12:31 pm
That's indeed a nice article Peter ![]()
![]()
Also ginish , this...
August 31, 2007 at 8:33 am
maybe this is what you may be looking for:
CREATE FUNCTION ufn_dba_Get_Daterange (@Startdate smalldatetime, @Enddate smalldatetime )
RETURNS @RangeDates TABLE (DateValue smalldatetime not null)
AS
BEGIN
DECLARE @Number int
Set @Number = datediff(d,...
August 31, 2007 at 5:16 am
Viewing 15 posts - 5,626 through 5,640 (of 7,502 total)