Viewing 15 posts - 6,436 through 6,450 (of 7,471 total)
sql2000 ?
only make the wanted user or group member of the database-owner group in the database. Database owners can do anything they want in the db.
exec sp_addrolemember N'db_owner', N'youruser'
Grant the...
October 31, 2005 at 7:02 am
Check Information Schema Views in books online.
They are SQL-92 standard.
These views are preferable over the system-tables like sysobjects, sysusers, ... because they follow the standard.
Propriatary systemcatalogtables may change with each fix/servicepack/version.
October 31, 2005 at 6:21 am
I'ts always a nice adventure to predict an execution plan yourself and then compare it to the one sqlserver uses
You'll learn a lot...
October 31, 2005 at 5:37 am
Well, for sqlserver < ss2005 "specific_schema" = "owner"
If you don't want to filter based on owner, just comment the where clause.
you can run...
October 31, 2005 at 4:17 am
Are u allowed to use regedit ?
check [HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\yourdsn
and remove the "Database"="faultydbname"
or replace it with a correct dbname
or remove the full...
October 31, 2005 at 3:54 am
how about :
-- grant select, insert, update, delete
DECLARE @SQLStatement nvarchar(4000)
DECLARE csrGrants CURSOR LOCAL FAST_FORWARD READ_ONLY FOR
Select 'Grant select, insert, update, delete on [' + [TABLE_SCHEMA] + '].[' + [TABLE_NAME] +...
October 31, 2005 at 3:46 am
can you remove the odbc-dsn and then build it up again ?
October 31, 2005 at 2:55 am
Offcourse you'll have to check execution plans, but the optimizor will see trough it (I hope)
This would result in a query like this...
October 31, 2005 at 2:44 am
Nope
- take a look at SQLDMO
- maybe this can help you out ...
http://www.sqlservercentral.com/forums/shwmessage.aspx?forumid=23&messageid=107508
"C:\Program Files\Microsoft SQL Server\MSSQL\Upgrade\scptxfr.exe" /s yourserver /d...
October 28, 2005 at 4:09 am
did someone drop and recreate the database ?
Connect using Query Analyser. You'll also get the message, but it will connect to master and you can work from there on.
October 28, 2005 at 3:54 am
There must be a reason they put the trigger overthere !
If you're not sure, don't disable it !
October 28, 2005 at 2:15 am
can you affort a dbcc dbreindex ?
Indexdefrag does not optimize as well as dbreindex.
Check the execution...
October 28, 2005 at 1:53 am
so why have a fire insurance ? It's not burning right now
One part of a dba's job is to prevent (proactive) troubles.
That's...
October 27, 2005 at 7:09 am
Viewing 15 posts - 6,436 through 6,450 (of 7,471 total)