Forum Replies Created

Viewing 15 posts - 451 through 465 (of 582 total)

  • RE: Compare Multiple Rows in a table with Multiple Rows

    Actually Each Accounts_ID will be associated with value from different tables.

    if this is the case then your sample data is incorrect. it should be something like this.

    INSERT INTO A

    SELECT 1,1,'TABLE_1','COLUMN_1',123

    INSERT...

    Bob
    -----------------------------------------------------------------------------
    How to post to get the best help[/url]

  • RE: Compare Multiple Rows in a table with Multiple Rows

    I have to ask is the sample data you provided an accurate reflection of your actual data. Because if you are using the values:

    1,'TABLE_1','COLUMN_1',123

    then there are four rows that would...

    Bob
    -----------------------------------------------------------------------------
    How to post to get the best help[/url]

  • RE: Compare Multiple Rows in a table with Multiple Rows

    can you post what you would like the output to look like because from your description it just sound like you would like the two rows that have an accounts_id...

    Bob
    -----------------------------------------------------------------------------
    How to post to get the best help[/url]

  • RE: DEFAULT Constraint Definition

    This should work for you.

    DROP TABLE MYEXAMPLE

    CREATE TABLE [dbo].[MYEXAMPLE] (

    [EXAMPLEID] INT IDENTITY(1,1) ...

    Bob
    -----------------------------------------------------------------------------
    How to post to get the best help[/url]

  • RE: query running now for over 3 hours

    I believe that the default constraint will only work for newly inserted row not existing ones.

    Bob
    -----------------------------------------------------------------------------
    How to post to get the best help[/url]

  • RE: query running now for over 3 hours

    Do you have triggers on this table?

    I have to admit I've never seem it blocking itself without triggers.

    That is a very good question. I have seen this type of behavior...

    Bob
    -----------------------------------------------------------------------------
    How to post to get the best help[/url]

  • RE: Trigger to execute dbmail based on cloumn update.

    First off, what is the problem? Is the trigger not working correctly or not working at all? Second, some sample data would help in solving the problem. Please read the...

    Bob
    -----------------------------------------------------------------------------
    How to post to get the best help[/url]

  • RE: pipeline operator (|)

    the pipe character is usually the alternate character of the backslash. "Shift" + "\" will result in "|"

    Bob
    -----------------------------------------------------------------------------
    How to post to get the best help[/url]

  • RE: Passwords PRob

    I dont know how you can migrate just the password but the stored proc in this kb article will generate create scripts for all logins with passwords.

    Bob
    -----------------------------------------------------------------------------
    How to post to get the best help[/url]

  • RE: Script to list all logins and permissions

    I have something that I use that may be a little more encompassing then what you are asking for but it does include login role membership and object permissions. ...

    Bob
    -----------------------------------------------------------------------------
    How to post to get the best help[/url]

  • RE: Having a Job run Yearly

    if the start date is in the past then your schedule will pick up the first day of the next month because the first day of current month has past....

    Bob
    -----------------------------------------------------------------------------
    How to post to get the best help[/url]

  • RE: Insert Into on Linked Server

    rajganesh.dba asked if both servers were 2008 or if one was a earlier version. What is the answer to that?

    Also would you be able to post a script of you...

    Bob
    -----------------------------------------------------------------------------
    How to post to get the best help[/url]

  • RE: How to send attachment stored in DB with DBMail?

    You can pull the file out of the database and onto the file system in a similar fashion that I did with the powershell script because they use the same...

    Bob
    -----------------------------------------------------------------------------
    How to post to get the best help[/url]

  • RE: Create trigger on Insert

    glad I could help. As for where to learn tsql just doing it seems to be the best for me. Books online is a great resource. I also used w3schools...

    Bob
    -----------------------------------------------------------------------------
    How to post to get the best help[/url]

  • RE: How to send attachment stored in DB with DBMail?

    I don't think you can do it directly from sql. I was able to get image emailed by using powershell to output the file to filesystem and calling the powershell...

    Bob
    -----------------------------------------------------------------------------
    How to post to get the best help[/url]

Viewing 15 posts - 451 through 465 (of 582 total)