Forum Replies Created

Viewing 15 posts - 76 through 90 (of 103 total)

  • RE: Order By list order

    Hi,

    Did you try to use derived tables to achieve this.

    select etc

    from tablea a, (select guestid, name from Guest order by guestid) as b


    Helen
    --------------------------------
    Are you a born again. He is Jehova Jirah unto me

  • RE: Usage of Column Alias in SQL calculated fields and queries.

    Hi,

    I think this cannot be done within a single sql query. If you are using a derived table that is possible. (Select any key column instead of ID)

    SELECT...


    Helen
    --------------------------------
    Are you a born again. He is Jehova Jirah unto me

  • RE: Drop or Delete.. which is better?

    Hai,

    If you drop a table it is faster. But with all its side effects like You need to recreate the table from scratch. (Have the table definition script). . You...


    Helen
    --------------------------------
    Are you a born again. He is Jehova Jirah unto me

  • RE: Scalar function help

    Thanks a lot. This worked well. A silly mistake

    Just to test how to apply scalar function to table


    Helen
    --------------------------------
    Are you a born again. He is Jehova Jirah unto me

  • RE: SQL Service won''''t start - corrupt model db?

    Hi James,

    What I meant was try connecting from command prompt with the mentioned trace flag


    Helen
    --------------------------------
    Are you a born again. He is Jehova Jirah unto me

  • RE: concurrent queries

    Hai,

    Are you trying to use multiple threads from any front end application.

     


    Helen
    --------------------------------
    Are you a born again. He is Jehova Jirah unto me

  • RE: Just a thought: Which statement is faster?

    Hai,

    Both the statements have a syntax error. Please use the forum for useful purpose

     

     


    Helen
    --------------------------------
    Are you a born again. He is Jehova Jirah unto me

  • RE: SQL Service won''''t start - corrupt model db?

    Hai,

    When recovery occurs SQL has to scan through the log looking for these updates as well as committing new updates that might be occurring on other databases.

    Additonally to check on...


    Helen
    --------------------------------
    Are you a born again. He is Jehova Jirah unto me

  • RE: SQL Query

    Hai,

    Use this

    select substring('sub001-001',charindex('-','sub001-001')+1,len('sub001-001'))

    If it is a column then use this

    select substring(materialcod,charindex('-',materialcod)+1,len(materialcod))

     

     


    Helen
    --------------------------------
    Are you a born again. He is Jehova Jirah unto me

  • RE: About to add some more RAM - things to consider?

    Take care of  boot.ini switches /3 GB

    /3gb. Lets user-mode applications access 3GB of memory instead of the usual 2GB that NT allocates...


    Helen
    --------------------------------
    Are you a born again. He is Jehova Jirah unto me

  • RE: Convert Query result to negative number

    Hai,

    Try this

    Create table Qty

    (REcordType int null,

     Quantity_Ord int null)

    Insert into Qty values (20,100)

    Insert into Qty values (21,100)

    select RecordType, Quantity_Ord = case when REcordType <> 20...


    Helen
    --------------------------------
    Are you a born again. He is Jehova Jirah unto me

  • RE: Xcopy in SQL

    Hai Phill,

    That worked great

     

    Thanks a lot

     


    Helen
    --------------------------------
    Are you a born again. He is Jehova Jirah unto me

  • RE: Table Collation

    Hai,

    Simply modify the above query

    select  name as column_name , collation collation_name ,id from syscolumns where id in (select id from sysobjects where name ='thetable') and collation is not null

     

     


    Helen
    --------------------------------
    Are you a born again. He is Jehova Jirah unto me

  • RE: Named Instances

    Hai,

    Did you try quering the sysprocesses table or looking into registry for all instrance. There is a system stored proc master..xp_regread  to read


    Helen
    --------------------------------
    Are you a born again. He is Jehova Jirah unto me

  • RE: SQL Server Developer vs Enterprise vs Standard Editions

    Hai,

    By default, SQL Server 7.0 and 2000 are set to use "Use All Available CPUs" on a server. If this is not your current setting, then this has...


    Helen
    --------------------------------
    Are you a born again. He is Jehova Jirah unto me

  • Viewing 15 posts - 76 through 90 (of 103 total)