Forum Replies Created

Viewing 15 posts - 346 through 360 (of 405 total)

  • RE: The conversion of a char data type to a datetime data type resulted in an out-of-range datetime value.

    Please see the below link

    http://support.microsoft.com/kb/173907

    ----------------------------------------------------------------------------------------------------------------------------------------------------
    Roshan Joe

    Jeff Moden -Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: The conversion of a char data type to a datetime data type resulted in an out-of-range datetime value.

    try

    convert(datetime,'date',101)

    ----------------------------------------------------------------------------------------------------------------------------------------------------
    Roshan Joe

    Jeff Moden -Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: How to run the job (residing in one server) from different server

    1) Create a linked server

    2) execute sp_start_job in msdb

    eg

    execute serverB.msdb.dbo.sp_start_job 'Jobname'

    ----------------------------------------------------------------------------------------------------------------------------------------------------
    Roshan Joe

    Jeff Moden -Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: After Index Rebuild, the fragmentation rate is still very high

    Check the size of the table as well. For smaller tables, rebuiding may not remove fragmentation.

    ----------------------------------------------------------------------------------------------------------------------------------------------------
    Roshan Joe

    Jeff Moden -Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: DBCC CHECKDB Error messge

    Do you have backups? I think you might need to restore the database from recent backup.

    See Paul Randal's blog below

    http://www.sqlskills.com/blogs/paul/post/CHECKDB-From-Every-Angle-Can-CHECKDB-repair-everything.aspx

    Edit: added Paul's link

    ----------------------------------------------------------------------------------------------------------------------------------------------------
    Roshan Joe

    Jeff Moden -Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: Common questions asked in SQL Server DBA Interview

    jcrawf02 (6/23/2009)


    jeffrey yao (6/22/2009)


    I dare say if a data model needs to be tested under rigorous cases, the data modeler will "consciously" or "unconsciously" conform to normalization requirements. By "unconsciously",...

    ----------------------------------------------------------------------------------------------------------------------------------------------------
    Roshan Joe

    Jeff Moden -Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: How to trace Stored Procedure modifications history

    insert into dbo.changelog(

    databasename, eventtype,

    objectname, objecttype,

    sqlcommand,eventdate, loginname)

    values(

    @data.value('(/EVENT_INSTANCE/DatabaseName)[1]', 'varchar(256)'),

    @data.value('(/EVENT_INSTANCE/EventType)[1]', 'varchar(50)'),

    @data.value('(/EVENT_INSTANCE/ObjectName)[1]', 'varchar(256)'),

    @data.value('(/EVENT_INSTANCE/ObjectType)[1]', 'varchar(25)'),

    @data.value('(/EVENT_INSTANCE/TSQLCommand)[1]', 'varchar(max)'),

    getdate(),

    @data.value('(/EVENT_INSTANCE/LoginName)[1]', 'varchar(256)')

    )

    ----------------------------------------------------------------------------------------------------------------------------------------------------
    Roshan Joe

    Jeff Moden -Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: database backup

    - server fail, or new backup fail

    - update resume

    lol 😀

    ----------------------------------------------------------------------------------------------------------------------------------------------------
    Roshan Joe

    Jeff Moden -Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: hI, CAN ANYONE GIVE ME THE SQL STATEMENT TO COUNT THE NUMBER OF TABLES IN SQL SERVER ?

    select count(*) from sysindexes where indid in (0,1)

    Edit: This will return all tables including system tables.

    Check

    select object_name(id) from sysindexes where indid in (0,1)

    If you need user tables only, use syobjects...

    ----------------------------------------------------------------------------------------------------------------------------------------------------
    Roshan Joe

    Jeff Moden -Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: create job help?

    If your database size is small you can have a maintenance plan to rebuild all index for the database.

    If its a large database, you may have to write your custom...

    ----------------------------------------------------------------------------------------------------------------------------------------------------
    Roshan Joe

    Jeff Moden -Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: database backup

    You can use maintenance plan to delete old backups.

    But since you are appending backups to a single file, this may not be possible. While taking backups, select option to create...

    ----------------------------------------------------------------------------------------------------------------------------------------------------
    Roshan Joe

    Jeff Moden -Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: MS SQL 2005 Standard Database freezing under high workload

    you will get the spid of the blocking connection in sysprocesses.

    use

    DBCC INPUTBUFFER(spid)

    to get the query

    ----------------------------------------------------------------------------------------------------------------------------------------------------
    Roshan Joe

    Jeff Moden -Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: Possible to calculate a position?

    Which version of SQL server you are using?

    You might be looking for rank() or row_number function

    ----------------------------------------------------------------------------------------------------------------------------------------------------
    Roshan Joe

    Jeff Moden -Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: Profiler: Multiple Filters On TextData Column

    The condition will cancel each other.

    Why don't you try '% customers %' assuming there will be a space before and after the view in your query

    ----------------------------------------------------------------------------------------------------------------------------------------------------
    Roshan Joe

    Jeff Moden -Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: TABLESAMPLE

    Here is a good article I found when I goggled

    http://www.mssqltips.com/tip.asp?tip=1308

    ----------------------------------------------------------------------------------------------------------------------------------------------------
    Roshan Joe

    Jeff Moden -Forum Etiquette: How to post data/code on a forum to get the best help[/url]

Viewing 15 posts - 346 through 360 (of 405 total)