Forum Replies Created

Viewing 15 posts - 16 through 30 (of 79 total)

  • RE: Abusing Table Variables?

    I think give it a try by using temp table instead of table variable , then crate index on temp table for the field whic is in where clause ,...

  • RE: Row Size

    Clear with the Max row size, it wont allow char to grow more than 8060 and varchar would reside in row upto 8060 and after that off tha page...

    thanks a...

  • RE: Row Size

    ok means the max row size is 8060 bytes and anything more than then resides off the page , right...

    Thanks very much.....

    Mithun

  • RE: Row Size

    this row size me total columns size?

    i mean i tried like this first,

    create table my table (str1 varchar(3000),

    ...

  • RE: DML in Functions

    Hey chris sir,,,

    thanks for ur reply... now i know y we cant use dml in functions...

    thanks , really thats usefulll

    Mithun

  • RE: DML in Functions

    Chris Morris (4/22/2009)


    mithun.gite (4/22/2009)


    Dear friends,

    Need understanding, that y v can perform DMLs in Functions?

    We can use DMLs using table variable in fucntion then y can with actual tables..

    Please guide me...

  • RE: Regarding Query Optimisation

    GilaMonster (4/21/2009)


    mithun.gite (4/21/2009)


    Can any one give me a link for Query Optimization, using that i can start optimizing my queries?

    I can suggest some books.

    Inside SQL Server 2005: Query Tuning and...

  • RE: Unique Constrain

    Florian Reischl (4/17/2009)


    Hi

    In SQL2k5 it is possible by a detour over a non-unique index and a CHECK constraint:

    CREATE TABLE TestCheck

    (

    Id INT NOT NULL IDENTITY,

    UniqueText...

  • RE: Use Exist

    Paul White (4/17/2009)


    Mithun


    I have one query like

    select * from emp where dept_no in(10,20,30)

    Can anyone help me in using EXISTS instead of IN ?

    Mithun,

    Everyone else has posted the sensible answers, so...

  • RE: Use Exist

    GilaMonster (4/17/2009)


    mithun.gite (4/17/2009)


    See, anyone who sees the query can guess that its not the actual query to optimize,,

    Then what was the point of posting it?

    its just a matter of...

  • RE: Use Exist

    GilaMonster (4/17/2009)


    mithun.gite (4/17/2009)


    Actually I have been asked to Optimize the query and do the performance tunning to the query.

    select * from emp where dept_no in(10,20,30)

    As in this query only optimization...

  • RE: Use Exist

    Chris Morris (4/17/2009)


    mithun.gite (4/17/2009)


    There is a big performnace problem with using Exists in this example,, so can i say that if we are passing static values in where clause then...

  • RE: Use Exist

    Dear All,

    I took some test data on adventureworks database...

    below are the queries:::

    Query 1

    select * from HumanResources.EmployeeDepartmentHistory

    where departmentid in(7,4,1,2)

    (201 row(s) affected)

    Table 'EmployeeDepartmentHistory'. Scan count 1, logical reads 4, physical reads 0,...

  • RE: Use Exist

    Dear ALL,

    Actually I have been asked to Optimize the query and do the performance tunning to the query.

    select * from emp where dept_no in(10,20,30)

    As in this query only optimization we...

  • RE: Unique Constrain

    It is possible, one way i know which is pasted below, wanted to know anyone knows the other simple way????

    SET NUMERIC_ROUNDABORT OFF;

    SET ANSI_PADDING, ANSI_WARNINGS, CONCAT_NULL_YIELDS_NULL, ARITHABORT,

    QUOTED_IDENTIFIER,...

Viewing 15 posts - 16 through 30 (of 79 total)