Forum Replies Created

Viewing 15 posts - 3,121 through 3,135 (of 5,393 total)

  • RE: Sum Counter for a Week

    A table script, some sample data and the expected output would help a lot.

    Take a look at the article linked in my signature line and find out how to help...

    -- Gianluca Sartori

  • RE: Are the posted questions getting worse?

    Roy Ernest (6/8/2011)


    Does going down the stairs and way to the back of the office towards the beach to take a smoke break count for this? 🙂

    That's not fair, Roy!...

    -- Gianluca Sartori

  • RE: Are the posted questions getting worse?

    Grant Fritchey (6/8/2011)


    Jim Murphy (6/8/2011)


    Grant Fritchey (6/8/2011)


    Don't forget to get out and Run with Steve[/url] today everyone.

    I'm not much of a runner. Uh, at all. But with all of...

    -- Gianluca Sartori

  • RE: Numeric to time

    I think it's just a display issue, then.

    Try this:

    -- Source table with some sample values

    DECLARE @source TABLE (

    id int, -- to...

    -- Gianluca Sartori

  • RE: Are the posted questions getting worse?

    GilaMonster (6/8/2011)


    Fal (6/8/2011)


    Didn't mean to imply you didn't, if it came across as such. Was alluding that the second half would be a wholly contained subset of the first...

    -- Gianluca Sartori

  • RE: Migration from Oracle 10g to Sql sever 2005

    Managers know better. 😛

    I think you will have to create a package by hand or use the wizard.

    -- Gianluca Sartori

  • RE: Numeric to time

    lanky_doodle (6/8/2011)


    Not quite. It converted my numeric value from -0.5700 to 23:03:00.

    That's what -00:57:00 looks to me.

    What does a negative time mean to you?

    -- Gianluca Sartori

  • RE: Numeric to time

    See if this helps:

    -- Source table with some sample values

    DECLARE @source TABLE (

    id int, -- to identify the converted values in the destination table

    decCol decimal(19,4)

    )

    -- some sample values

    INSERT INTO @source...

    -- Gianluca Sartori

  • RE: Migration from Oracle 10g to Sql sever 2005

    Let me ask one question: why replicate the database to SQL Server if you can access the data from Oracle?

    I know, Oracle sucks. I hope there's a better reason for...

    -- Gianluca Sartori

  • RE: Migration from Oracle 10g to Sql sever 2005

    You could use the Oracle migration assistant

    It's not as easy to use as it might seem and it hangs sometimes, but it kinda works.

    -- Gianluca Sartori

  • RE: How To Determine which days are weekends

    ashok.faridabad1984 (6/7/2011)


    Hi,

    There is no harm in usung this

    select datename(dw,getdate())

    and can check for Sat or Sun accordingly.

    Regards

    Ashok

    It still depends on the client's language:

    set language italian

    select datename(dw,getdate())

    Saturday is ...

    -- Gianluca Sartori

  • RE: Why Msdb has simple recovery model?

    There's no need for FULL recovery model on MSDB:

    http://msdn.microsoft.com/en-us/library/ms365937.aspx

    -- Gianluca Sartori

  • RE: Find string in SQL Objects

    Actually syscomments is a compatibility view for SQL2000 and it should not be used. It splits the object definition on multiple rows when it exceeds 4000 characters. sys.sql_modules is the...

    -- Gianluca Sartori

  • RE: Find string in SQL Objects

    ... or you can use Red-Gate's SQLSearch[/url].

    It's free and easy to use.

    -- Gianluca Sartori

  • RE: Find string in SQL Objects

    You can use a query like this:

    SELECT OBJECT_NAME(id)

    FROM syscomments

    WHERE text LIKE '%whateveryoulookfor%'

    Hope this helps

    Gianluca

    -- Gianluca Sartori

Viewing 15 posts - 3,121 through 3,135 (of 5,393 total)