Forum Replies Created

Viewing 15 posts - 91 through 105 (of 315 total)

  • RE: How to design new query to take off invoice?

    Lakhbir.Bhatti (12/30/2008)


    If any invoices matching to code AS0630 that showing me the invoices are paid and take it off my list.

    select * from table as t

    where not exists(select * from...


    Madhivanan

    Failing to plan is Planning to fail

  • RE: Query to exclude any special characters.

    Ashwin M N (12/30/2008)


    create table temp (id int identity(1,1),Name varchar(50))

    insert into temp (name) select 'IP 20867 Corona'

    insert into temp (name) select '19"-RAC - C60184-03'

    insert into temp (name) select 'HEEFA Tower...


    Madhivanan

    Failing to plan is Planning to fail

  • RE: How to validate a CSV import file?

    Jeff Moden (12/30/2008)


    Good thread. I like the sp_MakeWebTask trick.

    Thanks Jeff Moden 🙂


    Madhivanan

    Failing to plan is Planning to fail

  • RE: How to design new query to take off invoice?

    Do you want one row per invoice?


    Madhivanan

    Failing to plan is Planning to fail

  • RE: How to find a day of a date.

    emailtoDeepa (12/29/2008)


    Select DATENAME(weekday, YourDateHere)

    Already suggested


    Madhivanan

    Failing to plan is Planning to fail

  • RE: How to validate a CSV import file?

    Jeff Moden (12/29/2008)


    I don't use SSIS but I believe there's a Bulk Insert task available in SSIS. The reason I don't use SSIS is because I do it...


    Madhivanan

    Failing to plan is Planning to fail

  • RE: Can we?

    Dave (12/29/2008)


    How?

    What? 😉


    Madhivanan

    Failing to plan is Planning to fail

  • RE: Dynamic Sql

    mithun.gite (12/30/2008)


    sir, thanks for the reply

    its a long sp of balance sheet and earlier it is using dynamic sql now we need to do some modification and needs to add...


    Madhivanan

    Failing to plan is Planning to fail

  • RE: How to calculate the Bi-weekly in SQL

    As far as I know the only case that I needed to use semicolon to terminate the statement is when I used GO as the procedure name

    create procedure go

    as

    select 45...


    Madhivanan

    Failing to plan is Planning to fail

  • RE: using column name as row value

    [sniped]


    Madhivanan

    Failing to plan is Planning to fail

  • RE: using column name as row value

    select empid,'Allowance1',Allowance1 as amount from your_table union all

    select empid,'Allowance2',Allowance2 from your_table union all

    select empid,'Allowance3', Allowance3 from your_table

    order by empid


    Madhivanan

    Failing to plan is Planning to fail

  • RE: How to calculate the Bi-weekly in SQL

    One more query

    select dateadd(day,number,'20090102') as BiFriday from master..spt_Values

    where type='p' and dateadd(day,number,'20090102')<'20100101' and number%14=0


    Madhivanan

    Failing to plan is Planning to fail

  • RE: Doubt Reg. Exec in Dynamic SQL

    http://www.sommarskog.se/dynamic_sql.html


    Madhivanan

    Failing to plan is Planning to fail

  • RE: How to transpose the ROWs

    Read about Cross-tab reports in sql server help file


    Madhivanan

    Failing to plan is Planning to fail

  • RE: GETDATE() Manipulation

    Franco_1 (12/23/2008)


    1. Here is the code I'm using:

    declare @dt as datetime

    set @dt=CONVERT(varchar(8), GETDATE(), 112)

    print @dt

    The result is :

    Dec 23 2008 12:00AM

    How do I get only Dec 23 2008?

    2....


    Madhivanan

    Failing to plan is Planning to fail

Viewing 15 posts - 91 through 105 (of 315 total)