Forum Replies Created

Viewing 15 posts - 2,791 through 2,805 (of 7,502 total)

  • RE: Convert datetime to varchar

    sandy-833685 (9/27/2010)


    Hi i am having table with column name time data type as datetime

    And when i try to execute the select statement with convert like

    select * from tablename

    where convert(varchar(10),time,103)<'06/06/2010'

    as i...

  • RE: DBCC CHECKDB Error Msg 2570, Level 16, State 3

    I'm glad it has been solved using the page method.

    I've been confronted a couple of times with this issue and I've been able to filter the troublesome rows using this...

  • RE: Retrieve User/Principal who executed an alter trigger statment

    it's a petty for us all, but "disable trigger" is not a ddl statement !

    So you cannot capture it with a ddl trigger.

    We have the same issue as you have,...

  • RE: Are the posted questions getting worse?

    Grant Fritchey (9/27/2010)


    I just got bad news. I've seen the schedule for the PASS Summit. I'll be speaking to an empty room because I'm presenting the same time as Jeff....

  • RE: Indexes during nightly dataloads - tips?

    Don't drop your clustering index !!

    (because it actually contains the data pages, so a drop will cause all your data to be moved to a heap and all non-clustering...

  • RE: sql 2008 r2 32 bit management studio

    And it even works! :w00t:

  • RE: Sql View - Performance Tuning

    James Tech (9/26/2010)


    ALZDBA (9/26/2010)


    the cross join is one thing

    the function on the datetime column is another one. This causes no datetime index to be used !!

    This conversion is also member...

  • RE: Sql View - Performance Tuning

    the cross join is one thing

    the function on the datetime column is another one. This causes no datetime index to be used !!

    This conversion is also member of the group...

  • RE: Cluster automatic failover - could it be caused by something running within SQL?

    Also check your cluster log !!

    It may also help with the facts analysis.

    A long startup time for your sqlinstance may be cause by an excessive amount of virtual log files...

  • RE: Clustered Index - UniqueIdentifiers

    The index will have to be dropped and recreated because of the change of datatype.

    Rule number 1: tell the system what you know.

    So don't use a (var)char datatype if you...

  • RE: t-sql Date Problem

    There may be a difference between microsoft week and iso week !

    try this:

    declare @dates table ( dt datetime not null )

    Declare @startdate datetime

    set @startdate = '2010-01-01'

    insert into @dates

    ...

  • RE: convert UTC dates to BST dates

    george sibbald (9/24/2010)


    Johan, you are right, as the app is designed to be used globally and is therefore attempting to store the date without including time zone offsets it should...

  • RE: Deleting tables from master database

    indeed, every object needs its own drop statement.

    In SSMS however, you can select all these tables in the detail pane of the tables section and delete them all in a...

  • RE: convert UTC dates to BST dates

    Oh, indeed quick copy / paste, you know ... forgot to translate the comments, but you got it anyway 😎

    Off course, IMHO, it is better to avoid this kind...

  • RE: convert UTC dates to BST dates

    Keep in mind these "switch" weekends are determined on a country bases.

    As in many cases in Europe, every country can do it differently 😉

    These are the dates I found in...

Viewing 15 posts - 2,791 through 2,805 (of 7,502 total)