Forum Replies Created

Viewing 15 posts - 8,521 through 8,535 (of 13,460 total)

  • RE: Alter multiple tables

    yes.

    each ALTER TABLE statement must be executed seperately, but you can generate all the statements based on the metadata, so it depends what you want to do.

    an example might be...

  • RE: A little Help

    i don't have a true SQL 2000 installation, and the code works flawlessly in SQL 80 compatibility mode.

    try doing a find and replace for INSERT INTO #Results --> INSERT INTO...

  • RE: Replace Ave with Avenue

    you need to test for the space before ave as well to avoid substrings of a street name:

    you are already testing for a space after the {Ave} or {Ave.},...

  • RE: Trigger doesnt work when using sp_executesql

    Andreas your trigger is currently designed to handle only one row being inserted at a time...

    if you are bulk inserting, only one row would be affected when you trip the...

  • RE: MS SQL 2005 and MS SQL 2008

    security is getting tighter and tighter with each iteration of SQL;

    it used to be that the Builtin\Administrators group was automatically added as sysadmins when you installed SQL.

    That is no...

  • RE: Trigger doesnt work when using sp_executesql

    BULK INSERT behaves differently for triggers, but not sp_executesql;

    it might be the way your trigger is written...lets look at the trigger itself and see if there might be a clue...

  • RE: query with Incorrect syntax near 'STYLE'.

    i believe the error is related to the fact that you have TWO left outer joins, but only one [ON]

    you meant to left join S2 to S1, and then S3...

  • RE: Database Trigger(DDL Trigger) Issue

    it's not possible.

    if they login with a SQL logon, their windows information is not available.

    other variables, like hostname, can let you know their machine name, but if it wasn't used...

  • RE: CASE WHEN statement Within a Trigger

    i may have skimmed over your post too quickly and missed something, but it looks like you can get rid of all the variables, and simply fix the trigger to...

  • RE: How to get rid of old servers in SSMS ?

    I opened my SQLStudio.bin file with a text editor, and it's a mix of readable strings and binary stuff;

    when i looked into this before, every recommendation was to simply delete...

  • RE: How to get rid of old servers in SSMS ?

    that threw me off too, as i expected it to be in a registry setting, but it's actually in a binary file.

    it's an all or nothing thing, as far as...

  • RE: SQL Server 2005 triggers

    i see two solutions here...raise an error or put the old value for the BI column back, and allow the transaction to go through.

    something like this would simply put the...

  • RE: Using another column besides INSERTED.* in the OUTPUT clause for an insert

    no, you can't; the OUTPUT variable has access to the INSERTED and DELETED tables only;

    so you need to pass in your original Id for example, so it could be part...

  • RE: A little Help

    leaders_j (10/20/2010)


    Thanks, the code works but it truncates the result of must of my tables. Is there anything you can do?

    since SQL 2000 is limited to varchar(8000), and you may...

  • RE: Using another column besides INSERTED.* in the OUTPUT clause for an insert

    yeah i think you'll want to insert the output into a table variable, then join it to the original table to get everything you need:

    DECLARE @myTableVariable TABLE(NewBrand_ID int,BrandName varchar(30) )

    INSERT...

Viewing 15 posts - 8,521 through 8,535 (of 13,460 total)