Forum Replies Created

Viewing 15 posts - 61 through 75 (of 325 total)

  • RE: DATETIME - 3

    L' Eomot Inversรฉ (3/10/2013)


    Nice question and good explanation. Thanks Ron.

    +1

    I marked it too soon ๐Ÿ˜‰

    too soon to be correct ๐Ÿ˜›

  • RE: Query optimization

    swapnil.bole (3/8/2013)


    Hi demonfox,

    Actually i am new in sql, so could you please tell me What i have to do exactly?

    I suggest you go through some of the performance articles ,...

  • RE: Query optimization

    if you see in the executipn plan .. the estimated no. of rows are around 3600 whereas actual rows are around 100,000 .. that's a huge difference.. try updating the...

  • RE: Query optimization

    swapnil.bole (3/8/2013)


    Hello SSC Eights! & SSCoach,

    @SSC Eights!

    Table defination is:

    CREATE TABLE TABLE1

    (

    intIdintNOT NULL,

    bintTimeStampbigintNOT NULL,

    ...

  • RE: Inserting currency symbols in money datatypes

    winmansoft (3/8/2013)


    demonfox (3/7/2013)


    You can't .. that's how SQL Server stores it .. check it out on this link

    http://msdn.microsoft.com/en-us/library/ms179882.aspx

    ..

    I found this in your link

    It is important to remember that while...

  • RE: Query optimization

    swapnil.bole (3/8/2013)


    Hello friends,

    I have table contains millions of records.

    When i fired query to get record by id. Query get millions of rows for that it take 2-3 second time.

    How can...

  • RE: How to find all column dependencies including triggers?

    syscomments is there for backward compatibility only.

    Use sys.sql_modules in SQL 2005 and newer. The definition column contains the T-SQL code for the module.

    here is the code to find...

  • RE: modifying a SP

    ntreelevel (3/7/2013)


    We already have a SP which selects data from db.

    I need to modify the SP so that it selects one more column called supervisor.

    The code to get the...

  • RE: Inserting currency symbols in money datatypes

    winmansoft (3/7/2013)


    Hi,

    I heard we can insert currency Symbols like $ to Money and small money datatypes. But while i am trying i realized we can insert $ into money datatype...

  • RE: Getting minimum of top n rows without using subquery

    winmansoft (3/7/2013)


    Lynn Pettis (3/6/2013)


    Does this get you started?

    with TopDates as (

    select top (100)

    MyDates

    from

    dbo.MyTable

    order by

    MyDates desc

    )

    select min(MyDates) from TopDates;

    That...

  • RE: SubQuery

    vinu512 (3/7/2013)


    The option is wrong....it is not necessary to have an Order By clause if Top is specified in a query.....it should be other way round.....Order By can only be...

  • RE: SubQuery

    The first three items are required for subqueries. There are only 32 nesting levels allowed and if a TOP clause is used, an ORDER BY must be included.

    actually, It's otehr...

  • RE: SubQuery

    nice and easy for the last day of the week ..

    thanks for the question !!!

  • RE: CREATE statement

    Lokesh Vij (3/7/2013)


    Thank you Danny! I know how GO is used as a batch separator ๐Ÿ™‚

    Actually the confusion was this statement

    "every create store procedure and create function, always contains...

  • RE: CREATE statement

    the explanations says

    The CREATE PROCEDURE statement cannot be combined with other Transact-SQL statements in a single batch. The same rule applies to Functions as well, but this is not noted...

Viewing 15 posts - 61 through 75 (of 325 total)