Forum Replies Created

Viewing 15 posts - 1,906 through 1,920 (of 2,462 total)

  • RE: Data Archive for a single table.

    i think you can do one thing

    1. Add a column in source table "archive_flag"

    2. set archive_flag = 1 for six month data

    3 inset data into dest. table where...

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • RE: more than 250 indexes on a table

    hennie7863 (4/9/2010)


    deleting these statistics could be a quick win.

    Are these Statisctics are manually created ??

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • RE: SQL Agent Unable to Initiate Linked Server without User Logged on

    I havent got much help from these deatils but it looks like the agent user doen't have access to the linked server.

    Also refer this http://support.microsoft.com/default.aspx?scid=kb;en-us;906954

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • RE: SQL Agent Unable to Initiate Linked Server without User Logged on

    YCH (4/1/2010)


    "Cannot initialize the data source object of OLE DB provider "MSDASQL" for linked server..."

    post the complete error and query you are using in job.

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • RE: SQL admin account gone

    r.rozeboom (4/8/2010)


    Well it seems i found the trace at last were i found the evidence.

    its better to keep A DDL trigger just for future prospect.

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • RE: How to find, when the login last used on SQL Server?

    You can also choose C2 Audit Trace , it is good option but the main limitation of the auditing is that it reduces the performance of the SQL Server. This...

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • RE: Backup Transaction Log

    If your Database is handling good amount of transactions , growth of log is expected.

    Read Log Growing Pains[/url]

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • RE: DR Planning for 100+ Databases

    I would go with Mirroring

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • RE: Data Archive for a single table.

    - Win. (4/8/2010)


    But i have to use in script, thats the criteria..

    INSERT INTO LINKEDSERVER.Databasename.dbo.Tablename

    Select * from DatabaseName.dbo.Tablename

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • RE: Disk space alert script needed

    Try this

    DECLARE @availableSpace AS FLOAT

    DECLARE @alertMessage AS Varchar(4000)

    CREATE TABLE #tbldiskSpace

    (

    driveName VARCHAR(3),

    freeSpace FLOAT

    )

    INSERT INTO #tbldiskSpace EXEC master..XP_FixedDrives

    SELECT @availableSpace = ROUND((freeSpace)/1024,1) FROM #tbldiskSpace WHERE driveName = 'D'

    SET @alertMessage = 'Free Space...

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • RE: Copy data from one Column to another

    Paul White NZ (4/7/2010)


    If your table is relatively small, something like this is simplest:

    DECLARE @test-2

    TABLE (

    ID ...

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • RE: Running the stored procedure more than once

    hmm thats quite interesting, or i would say some poor SQL logic ;-).

    Post the Stored Proc's script

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • RE: Using SSIS to transfer data from SQL 2000 to SQL 2005

    these link can help you

    http://www.sqlservercentral.com/articles/Integration+Services/61774/

    http://www.sqlservercentral.com/Articles/SQL+Server+2005/SQL+Server+2005+-+SSIS/

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • RE: Data Archive for a single table.

    - Win. (4/7/2010)


    Anyone let me know how to correct and help me to do so.

    Have you tested it ? i dont think you did.

    Script is looking OK but better...

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • RE: Primary Key that relates to Another Table

    SELECT p.TABLE_NAME,c.CONSTRAINT_NAME,c.COLUMN_NAME

    FROM INFORMATION_SCHEMA.TABLE_CONSTRAINTS p ,

    INFORMATION_SCHEMA.KEY_COLUMN_USAGE c

    WHERE CONSTRAINT_TYPE = 'PRIMARY KEY'

    AND c.TABLE_NAME = p.TABLE_NAME

    AND c.CONSTRAINT_NAME = p.CONSTRAINT_NAME

    ORDER by c.TABLE_NAME

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

Viewing 15 posts - 1,906 through 1,920 (of 2,462 total)