Forum Replies Created

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

  • RE: If column exists

    it's still the same issue.

    the Print statement thing works because it contains no objects that resolve to database.schema.table.

    The first thing the database engine does is map ALL objects in a...

  • RE: If column exists

    the problem is the engine validates all objects mentioned in a script...regardless of if-then-else logic ; so if it doesn't exist at the moment it validates all objects in...

  • RE: Database Mail setup

    Tara-1044200 (6/2/2011)


    is there a way to script out the setup and run the same on a differnt server. I have to create mail setup on mutiple server and its a...

  • RE: trace?

    I'm assuming you used my example as a partial model?

    my knee jerk reaction was to use EXECUTE AS SELF to avoid permissions issues, and that seems to mask some of...

  • RE: Scripting objects log

    Ramdas Baghel (6/2/2011)


    please try DDL Triggers if you having SQL Server 2005 or Higher

    that won't work...scripting is a DML operation, where it goes out and selects the details for a...

  • RE: Composite primary key

    patla4u (6/1/2011)


    Table:1 CS(customer)

    CS_customer_id,

    CS_customer_code

    CS_customer_br

    Table 2 CD(costomer desciption)

    CD_customer_id

    CD_customer_code

    no explanation whatsoever? another repeat of a schema?

    if you cannot explain what you want, we cannot explain how to do it. please see my...

  • RE: Composite primary key

    wouldn't do any good.

    you need to help us help you.

    go back to the beginning...we know table1 has a three column PK.

    another table has two out of three columns of that...

  • RE: Database Mail error

    my google-fu pointed me to an issue where SQL server Agent needs to be restarted, based on this MS article?

    http://social.msdn.microsoft.com/forums/en-US/sqltools/thread/32a2c09a-156f-43b2-9076-b11ba9ccdafb/

    do you think that could be the issue? that db mail...

  • RE: sys.dm_exec_request showing negative total_elapsed_time

    mohan.pariveda 18256 (6/1/2011)


    Thanks for the reply. According to your reply if i am not wrong, all my sessions need to show in negative times but it is not.

    Only...

  • RE: Composite primary key

    patla4u (6/1/2011)


    Thanks

    i don't want to join tables but I want to create relation.

    Is there any other way to create relation(foreing key constrain) like junction tables????

    Thanks

    L

    nope. a foreign key must...

  • RE: Composite primary key

    don't just re-paste the same question...that doesn't help at all.

    two tables can be JOINed via a SQL statement, and that join is not restricted at all...it can join on...

  • RE: Composite primary key

    patla4u (6/1/2011)


    I am sorry ,,,,but I want to create relationship with two tables.

    Means composite primary key to composite foreign key ????(it's not working)

    SO how can i create relationship with table...

  • RE: accidental DBA needing help

    unless you alias the table, you must use the whole 3 part naming convention(Database.Schema.Table.ColumnName) toi identify the columns in the joins:

    here's the right way, and then again with aliases for...

  • RE: Find out who dropped a table in a db that's in simple mode.

    dunno about most folks; since it's on by default, and it's a low impact trace, i'm under the impression most people don't actively go and disable it;

    I personally think there...

  • RE: Composite primary key

    you can join the two tables on two of the three criteria, but you can potentially get duplicates due to the third column

    unless you assume/infer a specific customer_br?

    ...

    LEFT OUTER JOIN...

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