Forum Replies Created

Viewing 15 posts - 18,481 through 18,495 (of 26,489 total)

  • RE: Finding more than 1 record in query

    It would help if you could provide the DDL (CREATE TABLE statements) for the tables, sample data (INSERT INTO <tablename> SELECT <values> UNION ALL ... ), expected results based on...

  • RE: scom System Center Server Management for sql

    We have SCOM where I work but I haven't had the opportunity to work with our network admins in seeing how we could use it for monitoring SQL Server. ...

  • RE: hard disk crash

    I think that has been suggested.

  • RE: dateadd function

    newbieuser (11/4/2009)


    Actually we have the cast function in sql server now, I'm converting this into Oracle so I need to know the equivalent for it.. Thanks

    Understand, but I thought you...

  • RE: How does a View work?

    Yes, your welcome!

  • RE: Archiving in SQL 2005

    Before you start looking deep into partitioned tables I have one question for you, are you running SQL Server 2005 Enterprise Edition or SQL Server 2005 Standard Edition? This...

  • RE: dateadd function

    newbieuser (11/4/2009)


    cast(convert(nvarchar(20), getdate(), 101) as datetime)

    Instead of the above, I'd use the following in MS SQL Server:

    select dateadd(dd, datediff(dd, 0, getdate()), 0)

  • RE: How does a View work?

    Gus, you beat me and you provided additional info that is quite appropriate. Three thumbs up!

  • RE: How does a View work?

    You can easily answer this question yourself. Before running the query in SSMS, set it to also return the Actual Execution Plan and review the plan. You should...

  • RE: Date conversion into AM/PM Format

    q123126 (11/3/2009)


    select right(convert(varchar(18),getdate(),100),7)

    Is that right?

    Works on my computer at home.

    Edit: Except you need to change the varchar(18) to varchar(19) or varchar(20) as I originally posted. You could also...

  • RE: Are the posted questions getting worse?

    Okay, I bit the bullet and I am now on twitter, @LynnPettis. So, who else is out there?

  • RE: Sudden Slowness Of Query

    JonJon (11/3/2009)


    Im loading a datawarehouse with many dimension tables.

    WHen I moved to sql 08, I added more indexes but things were working well for a month.

    My issue just started. When...

  • RE: Long running query issue...

    Not with the information provided. lease read Gail's article about asking for help with performance issues (the second article I have referenced below in my signature block).

  • RE: Date conversion into AM/PM Format

    Here is the code I developed.

    declare @time decimal(4,2);

    set @time = 14.23;

    select right(convert(varchar(20), dateadd(mi, (@time - floor(@time)) * 100, dateadd(hh, floor(@time), 0)), 100), 7)

  • RE: Date conversion into AM/PM Format

    anitha.cherukuri (11/3/2009)


    it was stored in below format

    14,23

    15,59

    12,12

    13,45

    what i wwant here

    14,23 =2:23 PM

    15,59=3:59 PM

    tahnks

    Being in the US, I am assuming the comma (,) is just like the decimal point (.)...

Viewing 15 posts - 18,481 through 18,495 (of 26,489 total)