Viewing 3 posts - 1 through 3 (of 3 total)
For adding multiple db role to user, use procedure as
sp_addrolemember @rolename,@membername
Eg.
sp_addrolemember 'db_datawriter','membername'
Sachin Bhaygude
July 5, 2003 at 3:32 am
The db_papoulias_gr is DB name.
I am using sql server 2000.
I tried as,
exec sp_attach_single_file_db @dbname = 'db_papoulias_gr',
@physname = 'C:\Program Files\Microsoft SQL Server\MSSQL\data\db_papoulias_gr_data.mdf'
I had following error :
" Could not open new database...
June 30, 2003 at 7:11 am
You can use the combination of sp_ msforeachdb and sp_spaceused.
means
sp_foeeachdb sp_spaceused.
This will show u all database size and unallocated size.
Following SP alos help u to find out DB size.
sp_helpdb,
sp_helpfile
Sachin Bhaygude
June 13, 2003 at 4:03 am
Viewing 3 posts - 1 through 3 (of 3 total)