Viewing 15 posts - 6,691 through 6,705 (of 13,469 total)
sql4us (9/26/2011)
Thanks for the reply. I tried cast and also convert as you mentioned (below code), it throws me an error"Error converting data type varchar to numeric."
besides 'N/A' it...
September 26, 2011 at 10:31 am
yes you are correct.
a sysadmin login can do everything.
a login with sysadmin priviledges performs work at a database level is performed in the context of the user dbo , which...
September 26, 2011 at 10:21 am
you'll need to cast or convert; you cannot compare strings like that; you run into trouble with greater than and between and stuff not behaving the way the value of...
September 26, 2011 at 10:16 am
vikramp 2790 (9/26/2011)
September 26, 2011 at 10:10 am
InfiniteError (9/26/2011)
Sorry if my example is not that clear. My example assume that all are the same (same number of records, indexes, where clause). Honeslty...
September 26, 2011 at 9:24 am
InfiniteError (9/26/2011)
September 26, 2011 at 8:37 am
dave i think it is C:\WINDOWS\system32\msorcl32.dll or C:\Program Files\Common Files\System\Ole DB\msdaora.dll as part of any MDAC that got installed (uusally already there);
September 26, 2011 at 8:00 am
my first recommendatino would be to change that to a larger Initial Size, which depends a lot on how big it is rig now. if it's 2Gig in size right...
September 26, 2011 at 7:56 am
Phillippe can we review some basic setups first?
What is the default size of tempdb? at startup, by default, it's a piddling 8 meg, and would grow by 1 meg at...
September 26, 2011 at 7:00 am
in the msdb database, you'll need to add the user, adn then make him a member of the [DatabaseMailUserRole] role.
USE [msdb]
GO
CREATE USER [user1] for login [user1]
EXEC sp_addrolemember 'DatabaseMailUserRole','user1'
September 25, 2011 at 8:31 pm
RETURNS nvarchar
unless you explicitly state a size, the default is 1;
it's only when you are using cast or convert that the unstated size is 30
it's pretty common to assume ...
September 25, 2011 at 12:39 pm
i think the issue is contextinfo is varbinary(128); you have to convert to nvarchar, and then to biginto to get the value you want.
exec
sp_help 'master.dbo.sysprocesses'
DECLARE @var VARBINARY(128)
SET @var...
September 25, 2011 at 6:14 am
Seth when i change the database owner, i seem to see exactly what id'd expect...two more databases
using my same code from above:
DENY VIEW ANY DATABASE TO DBVIEWERTESTING
USE SandBox
GO
exec sp_changedbowner DbViewerTesting
USE...
September 23, 2011 at 1:36 pm
don't you have to stop and start the service to change the config values into run values?
i suspect the 3=changes pending as an undocumented status.
September 23, 2011 at 11:39 am
the command you are looking for is this snippet to hide databases the end user doesn't have access to:
DENY VIEW ANY DATABASE TO [SomeUserOrRole]
here's some testable code to prove...
September 23, 2011 at 11:31 am
Viewing 15 posts - 6,691 through 6,705 (of 13,469 total)