Forum Replies Created

Viewing 15 posts - 211 through 225 (of 1,109 total)

  • RE: HOW TO INSERT RECORD FROM A TABLE TO ANOTHER.

    Alberto.Omini (6/18/2008)


    I try to insert all record from a table in a database

    to a equal table in another database

    Insert into [DB1].TABLE1

    (FLD1,FLD2,FLD3)

    (

    select

    FLD1,FLD2,FLD3

    from [DB2].TABLE2

    )

    TABLE1 and TABLE2 are equal !!!!

    someone can help...


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: Dynamic IN

    Sorry, you can pass table variables as parameters only in SS2008. You could use temp tables though (or a communication table).

    A simple example is:

    CREATE TABLE commtable

    (

    ...


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: Dynamic IN

    deastr (6/18/2008)


    I need a procedure accepting series of ID's and retrieve data according to those ID numbers. Like this:

    CREATE PROCEDURE tmp

    (

    @var nvarchar(MAX)

    )

    AS

    select * from Table where ID IN(@var)

    I thought of...


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: Upload File on sql serverDB

    sam_btech (6/17/2008)


    i am new to sql server 2005. i want upload file in sql server.

    i am use varchar it will store string.

    pls reply data type

    assuming the file is on...


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: Problem - Backup with Append to file

    paksyeet (6/18/2008)


    Hi,

    i have here a schedule backup which runs daily but it keeps appending the backup to one file only..

    now, my problem is, it is(the backup file) getting bigger...


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: File Groups while creting a DB

    Soni (6/13/2008)


    Hi,

    I'm a newbie when it comes to SQL Server 2005. I was asked this question once about the impact of filegroups on performance. Please point me to some links...


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: How to produce Deadlock on non-indexed table

    sqldba (6/13/2008)


    Hi Experts,

    I have been given a task to do a test.

    To put a load in the SQL server (large or purposely deadlocking query on non-indexed tables) to simulate...


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: Deny access on a table to dbo by sa.

    You cannot restrict the permissions of the dbo. If you need to hide the table either create it in a different database or change the database owner, and add permissions...


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: UNC Path

    Wayne Atherton (6/3/2008)


    Hi guys/girls,

    I have a UNC path that I need to pull back the last value of a backslash e.g.

    \\value1\value2\value3

    I need to store value3 in a variable. I...


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: Get Active User

    Rajan John (6/2/2008)


    you can write an insert trigger on the table that records the CURRENT_USER to the same table or another table.

    http://rajanjohn.blogspot.com

    Just make sure you do not use EXECUTE AS...


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: Update a self-joined table

    If you want to write a single update statement for the original table that you will later query witht he stetement you mention, you can use somehting like:

    UPDATE test

    SET...


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: Views hurt Performance?

    SQL Server's optimizer is smart enough not to materialize the view.

    Regards,

    Andras


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: Updates Using Case

    Hmm, I did not have much time 🙂

    I'm glad you have found the solution.

    Regards,

    Andras


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: Updates Using Case

    UPDATE tablename

    SET TGI_CLUSTER_CODE = CASE WHEN CLUSTER_CODE IN ( '1M', '2M', '3M', '4M',

    ...


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: Auto-Capitalise the First Characters of Name Fields....

    No setting (in either 2005 or 2008) 🙂 You will have to write t-sql for this.

    Regards,

    Andras


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

Viewing 15 posts - 211 through 225 (of 1,109 total)