Forum Replies Created

Viewing 15 posts - 316 through 330 (of 1,109 total)

  • RE: Multiple values for Where field

    T-SQL has bitwise operations (& | ...) so you could use that, and just specify such an expression in your where clause.

    Regards,

    Andras


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: COUNT (Distinct Column) = 0 with GROUP BY

    a very simple (but may not be the best) workaround:

    create a table with the days like:

    CREATE TABLE days (dayname CHAR(3) PRIMARY KEY)

    INSERT INTO days VALUES ('MON')

    INSERT INTO days VALUES ('TUE')

    INSERT...


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: Does replication slow down the day-to-day operations of the published database in transactional replication

    Hi James,

    have a look at http://msdn2.microsoft.com/en-us/library/aa902656(SQL.80).aspx#sql2k_replperf_tran4_topic05a

    and look at the section "Cost of Transactional Replication at the Publisher"

    Regards,

    Andras


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: MS to do or not to do

    Probably the most important question: Would you enjoy doing an MS or the type of work that it can lead to? We live only once 🙂

    It is true that an...


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: Dropping Stored Procedures

    Chirag (3/20/2008)


    Hi

    What i really wanted to know was about execution plans.

    I believe that dropping and recreating the stored procedures

    will drop the existing executions plans of the stored procedures and...


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: Temporary Tables

    peer_mohamed2k (3/19/2008)


    Hi,

    Which table will give better and faster result either @table or #table when using in stored procedure?

    Thanks,

    Peer Md.

    Have a look at http://support.microsoft.com/?kbid=305977

    There are some differences that will affect performance...


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: datetime problem

    on the right hand side of your comparisons in the where clause (DATEADD(DAY, -1, DATEDIFF(DAY, 0, convert(varchar(10),getdate(),101))))) you get a date and the time part of it will be 0:0:0.0

    On...


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: Primary Key/Unique Key (or) Unique Clustered Index

    A clustered index determines the order in which data is stored in the database files on disk. You cannot store the same data in the same file in two different...


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: how to view transaction log file

    gk (3/18/2008)


    I am new to this SQL Server stuff.

    The following link tells little more about traceon

    http://msdn2.microsoft.com/en-us/library/ms187329.aspx

    I wish to know what are the values that can be passed on for...


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: Vardecimal

    Don Cooper (3/18/2008)


    I initially found reference to it at http://www.sqlcommunity.com/default.aspx?tabid=77&id=211. Additional information was found using the Help / Search w/in SQL Management Studio.

    Do note that this is an Enterprise/Developer edition...


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: Vardecimal

    Jeff Moden (3/18/2008)


    VARDECIMAL OPTION? Where did you find that? I can't even find it in Books Online... Is it a database setting or ???

    Hi Jeff,

    it was introduced...


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: Vardecimal

    Don Cooper (3/18/2008)


    Does 2005's (sp2) vardecimal option have any affect on "money" type fields?

    No, it only affects the numeric and the decimal datatypes.

    Regards,

    Andras


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: Some and Any operator

    ezhil (3/17/2008)


    What is the difference between Some and Any Operator. In most web pages, they mentioned both are equivalent.

    If both are equivalent, what is the need of this two Operator?

    The...


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: Copy one row from any table to same table

    Ok, a version that does something (although it is weird, you do assume that the id column is an identity column for exmaple) is:

    ALTER PROCEDURE [dbo].[TableRowCopy]

    (...


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: Copy one row from any table to same table

    Another thing in your query is the

    where TABLE_NAME = 'Ltrim(RTRIM(@TableName))'

    and column_name <> 'Ltrim(RTRIM((@IdColumname))'

    First, you are checking if the table name is the string "Ltrim(RTRIM(@TableName))". Rather uncommon names for a...


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

Viewing 15 posts - 316 through 330 (of 1,109 total)