Forum Replies Created

Viewing 15 posts - 1 through 15 (of 254 total)

  • RE: DeadLock issue with SQL Server 2005

    Check if using ROWLOCK hint helps...

    ******************
    Dinakar Nethi
    Life is short. Enjoy it.
    ******************

  • RE: Temporary tables

    Modify your script to drop the table explicitly at the end otherwise your tempdb will choke if you have multiple users creating objects in tempdb and they are not dropped...

    ******************
    Dinakar Nethi
    Life is short. Enjoy it.
    ******************

  • RE: Moving tables between filegroups

    You need to use dynamic SQL. Something like this:

    declare @fileg varchar(60), @sql varchar(500)

    set @fileg = substring(CONVERT(VARCHAR, DATEPART(YEAR, GETDATE())), 3, 4)

    Set @sql = 'create table dbo.test (id int) ON ['...

    ******************
    Dinakar Nethi
    Life is short. Enjoy it.
    ******************

  • RE: Does the location of the AND part of a join clause affect the data returned

    You better put it IN the JOIN or use WHERE. example:

    from dbo.Orders o

    join dbo.Account acct with (nolock) on h.AccountID = acct.AccountID

    join sourceOrders aa with (nolock) on h.InvoiceNumber = aa.SourceInvoiceNumber

    and...

    ******************
    Dinakar Nethi
    Life is short. Enjoy it.
    ******************

  • RE: bulkinsert need idea/help

    Isnt the loading process being done during off hours?

    ******************
    Dinakar Nethi
    Life is short. Enjoy it.
    ******************

  • RE: Replication Upgrade to 2005

    I would recommend disabling the replication, do your upgrades, then re-setup replication. You need to configure the distributor first. Look up books online in 2005 for replication setup steps. They...

    ******************
    Dinakar Nethi
    Life is short. Enjoy it.
    ******************

  • RE: multiple DB's

    check out the undocumented proc sp_MSForEachDB

    ******************
    Dinakar Nethi
    Life is short. Enjoy it.
    ******************

  • RE: SQL Query and .CSV files

    You can get the data in, and run an UPDATE with REPLACE to remove the double qutoes.

    ******************
    Dinakar Nethi
    Life is short. Enjoy it.
    ******************

  • RE: data type

    Decimal(x,y) is a better option.

    ******************
    Dinakar Nethi
    Life is short. Enjoy it.
    ******************

  • RE: Using the INPUTBUFFER to find last statement from client

    Also, note that you can use CROSS APPLY to get the text directly and use it in a JOIN stmt instead of looping through. If your query is executing quickly...

    ******************
    Dinakar Nethi
    Life is short. Enjoy it.
    ******************

  • RE: Moving indexes

    I think you have to drop the indexes and recreate them on the new filegroup.

    ******************
    Dinakar Nethi
    Life is short. Enjoy it.
    ******************

  • RE: Server Dates

    Usually the dateformatting should be done at the client level. If you need to use the same format irrespective of the client you can specify the SET DATEFORMAT just before...

    ******************
    Dinakar Nethi
    Life is short. Enjoy it.
    ******************

  • RE: Dropping db from a replicated backup on different server

    Try sp_removedbreplication to drop any replication related stuff from the db.

    ******************
    Dinakar Nethi
    Life is short. Enjoy it.
    ******************

  • RE: odd conflict issue with Transactional Replication

    If the table is small, try dropping the article from the publication and add it back and see if you can replicate the error.

    ******************
    Dinakar Nethi
    Life is short. Enjoy it.
    ******************

  • RE: add one coloumn

    In sql 2005 you dont need to use sp_Repladdcolumn. You can just do a regular ALTER TABLE and the table is modified at the subscriber too.

    ******************
    Dinakar Nethi
    Life is short. Enjoy it.
    ******************

Viewing 15 posts - 1 through 15 (of 254 total)