Forum Replies Created

Viewing 15 posts - 1,681 through 1,695 (of 13,460 total)

  • RE: SQL Server 2014 Auditing advice

    i'd start with the basics: who has sysadmin, who has db_owner and in what database.

    grab a copy of Brent Ozar's sp_blitz, and run that, it gives a nice, quick overview...

    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: delay_between_responses in msdb.dbo.sysalerts

    what i would do:

    change the alert to call a stored procedure.

    Have that stored procedure insert details into a table.

    have a separate job run every two hours that emails you a...

    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: msdb.dbo.sp_send_dbmail not sending email

    hmm; how big is the attachment, then? what is the attachment extension name? or at least how many rows in the query?

    specific mail servers often have rules on attachment size,...

    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: msdb.dbo.sp_send_dbmail not sending email

    Mailbox unavailable implies the wring target email ;you are sending to a full email address, right?

    you must be sending to "happy55@somedomain.com", and not hoping exchange will convert "happy55"...

    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: Capture Database & Server Name in a Derived Column to identify source of data before a Merge Join Task

    i liked the suggestion above, to create a view which includes @@Servername and db_name() as columns.

    did you try it, or can you say why that will not work 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: msdb.dbo.sp_send_dbmail not sending email

    it doesn''t work is pretty vague;

    It sounds like you are sending, but the mail doesn't go through; that's where you want to look at the mail logs and see what...

    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: Compare String

    meerack11 (6/19/2015)


    I had try like if I enter new data like gl code CA700-40165_Home Dt Canada - Expedited Air' then its work but old data which already in table that...

    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: Compare String

    meerack11 (6/19/2015)


    Yes I also try it but show me nothing if string has space then it not show the result

    and that would be normal. equal means equal, not...

    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: Compare String

    As Alvin said, one of the strings has an extra "4" in the middle; if the texts are lined up, it's easy to see.

    select * from Gl_code_data where Gl_code='602-43335_Planning -...

    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: msdb.dbo.sp_send_dbmail not sending email

    I'd bet the issue is unqualified database name;

    @query= 'EXEC test,

    needs to be soemthing that can be run form another database context , ie msdb or master

    @query= 'EXEC SandBox.dbo.test', would probably...

    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: Need to track logins to all databases

    mark.dickinson (6/18/2015)


    Lowell (6/18/2015)


    i think a logon trigger is the wrong device in this case.I don't think the database named in a connection string has much relevance.

    i think the OP is...

    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: Need to track logins to all databases

    i think a logon trigger is the wrong device in this case.I don't think the database named in a connection string has much relevance.

    i think the OP is really looking...

    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: Using left and charindex to parse string , getting rid of rest of data

    there's no guarantee that EVERY row contains the search term, so you need to include that check in your WHERE.

    update MyTable

    set Description = LEFT(Description(CHARINDEX('<',Description)-1))

    where CHARINDEX('<',Description) > 0

    AND myid...

    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: xml to pdf using sql server

    yeah i'd go programming language on this, whether SSIS, Powershell C# ,VB.Net, or whatever you are

    comfortable with.

    As Eric said zip functions and conversions are not native to SQL, so you...

    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: ODBC Error updating a recordset (rst.Update)

    jpserra3 (6/15/2015)


    I am getting an error (number -2147217887, error message "ODBC--call failed.") when I try to execute an rst.Update. I have an MS Access 2013 application using an ODBC connection...

    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,681 through 1,695 (of 13,460 total)