Forum Replies Created

Viewing 15 posts - 196 through 210 (of 216 total)

  • RE: Alternate Receipts

     

    Yes,

    You should use (Not Exists) predicate

    for satisfying two or more conditions.

    either

    You can use (IN) Predicate.

     

     

     

  • RE: bcp login failure in query analyzer but ok in cmd console ???!!!

    Your,

    Windows Domain settings are chaged.

    You should login the SQL TO sa

    The Sql Server Administrator Account  

  • RE: Error 14421 Log shipping

     

     

    I think , your database log file is not shipped to the server.

    Properly.

     

     

  • RE: Has any one passed MCTS SQL Server 2005 - 70-431 ?

    No Answer About such Question

     

  • RE: inserting decimal point

     

    USE THIS SIMPLE qUERY???

     

    select REPLACE(substring('V4567',1,3) + SPACE(1) + SUBSTRING('V4567',4,LEN('V4567')),' ','.')

     

     

  • RE: Checking Status of T-SQL Statements

     

    hi,

    You have to use for each T - Sql satements

    you should check,

    on error goto err

    if @@error<>0

    go to err

     

    err:

    Rollback Transaction

     

  • RE: A little help please

     

    HI ,

     

    USE THIS,

     

    SELECT  NAME_COL,

           (SELECT MAX(REV_NO) FROM TABLE_A WHERE B.NAME_COL=NAME_COL AND B.KEY_COL=KEY_COL)

           ORDER_NO,

           KEY_COL

    FROM TABLE_A B

    GROUP BY NAME_COL,

             ORDER_NO,

             KEY_COL

     

  • RE: Zero Count

     

    Hi,

     

    You can use the following Query !!!

    select client_name,count(*) from <table>

    group by dateadd(mm,-1,ticket_date)

    order by ticket_name

     

    i hope this would be your answer!!!

    which you are trying to ask.

     

     

  • RE: Date formatting problem

     

    hi ls,

    you can use this,

    declare @mm_month int

    set @mm_month=5

    select len(@mm_month),str(@mm_month,2)

    select cast(replace(str(@mm_month,2),' ','0') as varchar(2)) + '/' + '01' + '/' + cast(year(getdate()) as varchar(4))

     

    you will get your answer!!!

     

     

  • RE: Extract entities having ALL of a set of attributes

     

    you can use the following query ?

     

    select * from

    student s join studentcourse sc

    on <join condition>

    join

    course c

    on <join condition>

     

  • RE: SQL QUERY TO EXCEL FILE

     

    use the DTS wizard for impot/export the records??

     

     

     

  • RE: update with a case statement

     

    You can use the following Query :

     

    update test_update

    set name=(case when id=1 then 'aaa'

                           when id=2 then 'bbb'

                            when id=3 then 'ccc'

                    else null end)

    where id=?

     

  • RE: copy Db from one PC to another without lan

    use the following steps if you can :

    1) stop the services of your sql server.

    2) copy the mdf and ldf files into floppy

    if small or write ait into cd...

  • RE: Column Test

    you may use the following command:

    if not exists (select * from information_schema.columns where table_name=<tbl_name> and column_name=<col_name&gt

    begin

    alter table table_name add col_name <type>

    end

    use it and ask...

  • RE: SQL Transaction deadlock

    It may happen that which script you are using

    contains such objects (i.e. tables or views or procedures) are accessed by some transactions.

    In that case you have to first kill the...

Viewing 15 posts - 196 through 210 (of 216 total)