Forum Replies Created

Viewing 15 posts - 46 through 60 (of 65 total)

  • RE: delete table

    you can not do this using SQL. You will have to either schedule a job to do this or create a Windows Service which will fire the delete query every...

  • RE: problem with OPENROWSET(BULK...)

    Andras Belokosztolszki (8/20/2008)


    johan.frisell (8/20/2008)


    Hi,

    I want to reada textfile which will further on be used in a mail sent from the database.

    To read this file i want to use the...

  • RE: delete table

    kumar99ms (8/20/2008)


    Query to delete, all the records from a table before half an hour,…

    Delete * from table where condition=100 and …..what we have write here…for time…

    Regards,

    I am afraid your...

  • RE: creating calculation scripts

    I think this should help

    select id, Depreciation, Depreciation + isnull((select Depreciation from TABLE where id = (select max(id) from TABLE where id < x.id)),0) from

    TABLE x

    😀

  • RE: List out SP's Columns into a Table

    arjun.tewari (8/20/2008)


    Hi,

    The following script will give you the name of the SP, the name of the tables it references, and the name of the columns inside those tables used by...

  • RE: List out SP's Columns into a Table

    Hi,

    The following script will give you the name of the SP, the name of the tables it references, and the name of the columns inside those tables used by the...

  • RE: creating calculation scripts

    if your ID values are random as shown in the data example, you will have to either iterate using a loop or use a cursor. If they are in an...

  • RE: Is there Any Differeence ?

    PhisycalOp referes to Physical Operations. Physical operators displayed in red indicate that the query optimizer has issued a warning, such as missing column statistics which is turn forces the optimizer...

  • RE: Problem with right()

    check my query, I haven't casted the whole case but only the else part which was returning the INT value.:D

  • RE: Problem with right()

    The reason is that right() function returns a string value where as case returns the highest precedence type from the set of types in when or else clause. Which, in...

  • RE: Avoid Dynamic Query

    Couldn't understand the question clearly. In the scenario that you have specified, you don't need a dynamic SQL, you can simply write:

    SELECT * FROM Product P WHERE

    P.ProductName Like '%'...

  • RE: Generate random number

    How about this?

    create table #temp_table

    (

    ID int identity primary key,

    number int

    )

    GO

    declare @ss int

    declare @ms int

    declare @rand int

    select @ss = datepart(ss, getdate())

    select @ms = datepart(ms, getdate())

    select @ss...

  • RE: Please help me in writing a query to retreive data from three tables

    This table is not normalized please work on the database design. Once done, rest all will be a piece of cake.

  • RE: CAST....

    I dont think that the problem is due to the CAST done to int because in thins case, you should get String or binary data would be truncated ERROR and...

  • RE: Why so many reads?

    sry, misinterpreted the question:)

Viewing 15 posts - 46 through 60 (of 65 total)