Viewing 15 posts - 2,491 through 2,505 (of 13,462 total)
as Sean alluded to , there's several ways to get the name; you could join to sys.objects, or use the built in functions like object_name:
SELECT OBJECT_SCHEMA_NAME(OBJECT_ID) AS SchemaName,
...
February 21, 2014 at 8:06 am
my old shop used it for two reasons; regular expressions for doing ETL on staging tables(no SSIS in that shop...everything is TSQL), and a custom implementation of AES encryption; the...
February 21, 2014 at 7:28 am
I don't believe the permissions are that granular; as i understand it, once you grant ALTER, that's ALTER any object.
I believe you can only do by granting ALTER, and then...
February 20, 2014 at 1:54 pm
performance will ALWAYS suck on this: it requires a table scan due to the LIKE operator, which would have to check every value for values that contain or end with...
February 20, 2014 at 5:42 am
now if you want to view the trace results, i like to create a view for each trace: unfortunately, i think it has to have a path variable to be...
February 19, 2014 at 1:46 pm
paulaalkz 9229 (2/19/2014)
February 19, 2014 at 1:44 pm
ownership chaining, and it's the default behavior.
if you grant EXECUTE on a procedure to a user with no other permissions, as long as the stored procedure only touches objects in...
February 19, 2014 at 9:22 am
use the metadata to build a query;
probably featuring a UNION ALL if you want them in a single resutl set
SELECT
'SELECT ' + schema_name(schema_id)+ ' AS SchemaName,* FROM '
...
February 18, 2014 at 11:12 am
do you have any plugins like SSMS Tools installed? I can't prove it, but it seems to me that my connections get disconnected when not used for x minutes, and...
February 18, 2014 at 10:49 am
if you have users explicitly created without logins, then there's is no password. users don't have passwords, only logins;
I've create users to run EXECUTE AS on occasion, and of...
February 18, 2014 at 7:51 am
If you want thenlogin to see data then youd have to add a user for the login and grant it either specific select permissions or db_datareader.
February 18, 2014 at 3:13 am
sram24_mca (2/16/2014)
We need to restart the job execution If there is any data changes or deletion.Regards,
Ram
sounds like there's a problem with the logic in your process.
a job should change...
February 17, 2014 at 6:16 am
mike 57299 (2/14/2014)
Can someone please give me example SQL code to do the following:* Create Scheme xyz
* Add views to schema xyz
the above are not necessary to make other objects...
February 14, 2014 at 2:32 pm
take a look at this post i made a few years ago, it's got a nice example of a couple of schemas you can fiddle with.
http://www.sqlservercentral.com/Forums/Topic1216364-1550-1.aspx#bm1216431
February 14, 2014 at 2:18 pm
sysadmin overrules all; any restrictions that you add on a sysadmin are ignored/cancelled out by that ring of power.
normal users, then yes, the most restrictive wins, but you can't add...
February 14, 2014 at 1:54 pm
Viewing 15 posts - 2,491 through 2,505 (of 13,462 total)