Viewing 15 posts - 301 through 315 (of 458 total)
You shouldn't. They should only need CREATE DATABASE. From the master database you can execute something like this:
GRANT CREATE DATABASE TO [login]
And he/she should be good to restore...
November 2, 2006 at 12:33 pm
User needs to have CREATE DATABASE permissions... add them to the dbcreator server role.
November 2, 2006 at 12:15 pm
DECLARE @id VARCHAR ( 20 ) -- or whatever datatype your id is
SELECT @id = ID
FROM table
WHERE Cost = @cost
AND Preferred = @preferred
... (etc)
IF @id IS NULL
...
October 31, 2006 at 12:11 pm
Well the function info in BOL says it returns a varbinary(8000). You need to return it to a usable character string in order to make sense of it. ...
October 30, 2006 at 5:21 pm
Try changing your read data script to this:
OPEN SYMMETRIC KEY MySymKey DECRYPTION BY CERTIFICATE MyCert
SELECT CONVERT(VARCHAR, DecryptByKey(col1)) FROM table1
Let me know if that works...
October 30, 2006 at 1:19 pm
You might consider using linked server connections then and dynamic SQL to specify the servername. I've even seen scripted sp_addlinkedserver commands, however that can get a pretty hairy pretty...
October 26, 2006 at 1:49 pm
In 2005 Enterprise Edition you can use the REBUILD WITH ONLINE = ON option to rebuild your indexes without taking them offline. I've really like it.
Other than that you...
October 25, 2006 at 12:19 pm
I followed the very good writeup at this location:
http://sqljunkies.com/WebLog/knight_reign/archive/2005/07/06/16015.aspx
Works fine for me.
October 18, 2006 at 2:58 pm
Initially it looks like you're trying to join STUDENT_SID to INVOICE_SID... is that what you're intending? In any case, you're better off using a join than a subquery,...
October 18, 2006 at 2:56 pm
Noel, I avoid using either for production applications. 😉 On the off-situation where I have had to use dynamic sql I whitelist any text-based input.
And no, my example...
October 9, 2006 at 4:34 pm
I'd take dynamic SQL any day over cursors... 😉
You shouldn't need to use a cursor actually if you use the syntax I had above... except I left something...
October 5, 2006 at 5:51 pm
What permission do these accounts need to have which is restricted only to dbo?
October 5, 2006 at 5:45 pm
Rather... (going a little too quickly)
exec sp_msforeachdb 'select * from ?.dbo.sysobjects'
it replaces ? with the name of the database.
October 5, 2006 at 4:55 pm
Use sp_msforeachdb... Example:
exec sp_msforeachdb 'select * from sysobjects'
October 5, 2006 at 4:54 pm
Check out RESTORE VERIFYONLY in BOL.
October 5, 2006 at 2:32 pm
Viewing 15 posts - 301 through 315 (of 458 total)