Forum Replies Created

Viewing 15 posts - 1,471 through 1,485 (of 13,460 total)

  • RE: DDL Trigger fails for privileges.

    fabio.lopes (9/25/2015)


    I did "GRANT INSERT on MyauditTable to PUBLIC", but did not work.

    "did not work" doesn't provide enough info.

    it depends on what your trigger is doing. if it is doing...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: DDL Trigger fails for privileges.

    i believe the function ORIGINAL_LOGIN() will return the caller, regardless of execute as.

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: DDL Trigger fails for privileges.

    if your DDL trigger is writing to a table, you want to either have the trigger EXECUTE AS OWNER, or maybe GRANT INSERT ON MyAuditTable TO PUBLIC, so that no...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: How to use bcp utility as process in a CLR procedure ?

    Solomon what about the other direction for a CLR?

    if i pulled data into a Datatable and want to send them to disk, how would you do it?

    I've done...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: How to use bcp utility as process in a CLR procedure ?

    when you go outside of a SQL database, SQL uses an account that you would not intuitively expect it to use . even if you are sysadmin +domain admin for...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: How to hide stored procedures from user?

    smitty-1088185 (9/25/2015)


    How can I allow a user to run a stored procedure but deny them the ability to see it in SSMS?

    I don't mean 'view def' permissions, I mean the...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: Executing query/SPs thru Command line

    there was a recent article that demonstrated how to run all *.sql files in a given folder.

    that means the scripts contain commands that already have to have the parameters to...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: ? Records that don't match from two db's...

    maybe join only on names,and filter for where the ENum <> Anum?

    SELECT distinct T1.[last name],t1.[first name],ENum,t2.Anum,T2.lname ,t2.Fname,

    FROM ECLINICIAN_Info T1

    LEFT JOIN ACLINICIAN_Info T2

    ON t1.[last name] = t2.lname

    and t1.[first name]...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: ? Records that don't match from two db's...

    well if it doesn't exist, then you'd be adding a column of all null values right?

    you can join the two tables together instead of an exists, but that finds things...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: Executing query/SPs thru Command line

    and here's a basic example for the command line:

    sqlcmd -S . -d master -E -Q "exec sp_who"

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: Executing query/SPs thru Command line

    sqlcmd or bcp are the two command line options.

    bcp is designed for importing or exporting data, whereas sqlcmd can do both, but also execute commands;

    i've used use sqlcmd to...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: Find Missing FK Constraints and Fixing them

    I've got a script i call missing and implied foreign keys that i built over the years.

    it's basically a peel the onion kind of attack, which kind of assumes some...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: Ecrypting the database objects - Cons and Pros

    because you said intellectual property, i'm thinking that your database is given to your clients, and a different DBA than yourself administers that database. if you control the db, you'd...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: Encryption of the SQL Server objects

    --whopps removing and moving to other post.

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: MS-Jet Engine 4.x ODBC enabled databases to 1 Terabyte/5 billion rows (or) SQL SERVER?

    Laptop...Thumbdrive...Golf Cart...32bit...workaround...Free..."connections are only open for a second or two to retrieve a row or write a row"

    a few of the keywords i'm picking up here directly telling towards the...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

Viewing 15 posts - 1,471 through 1,485 (of 13,460 total)