Forum Replies Created

Viewing 15 posts - 61 through 75 (of 284 total)

  • RE: Query to show Database Objects last change

    MyDoggieJessie (3/17/2015)


    Not sure if this is something you're looking for but I recently posted a process on SSC to track these types of things. Feel free to check it...

  • RE: Query to show Database Objects last change

    Thanks for your help.

  • RE: Query to show Database Objects last change

    GilaMonster (3/17/2015)


    No, SQL doesn't track object change history.

    You can look at sys.objects in each database and look at the create_date and modify_date, but I think there are things you can...

  • RE: Changing Order by

    CASE figures out what type it is returning before the query is executed. It is not expecting to get different types for different rows. If thats what you give...

  • RE: Changing Order by

    For some reason it is trying to convert my data type to a number... one is varchar and the second is an ID field.

    , CASE @Sort_Sel

    WHEN 'Resource' THEN R.RESCODE

    ELSE D3.DATEID

    END...

  • RE: Changing Order by

    Thanks... did not know you could put case into ORDER BY ... it is a good day when you learn something new..

  • RE: Avoid using a Cursor

    Thanks for both of your replies.. During lunch I read through the article. Will try and get back to this project tomorrow.

    David

  • RE: Jobs Deadlocked

    Ok thanks.. got misled by it stating job step.

  • RE: Using SSIS 2008 to handle file retention

    BTW I created a script task for each server, that way I could disable a server's removal of database files if needed (this came up last week and we needed...

  • RE: Using SSIS 2008 to handle file retention

    I did finally get the C# syntax for 2008... so this is what I ended up with, in the script task box. Note it connects to our file and print...

  • RE: Problem with creating a Index on a temp table

    DonlSimpson (11/12/2014)


    Since it's a one column key, you can put the constraint on the column definition:

    CREATE TABLE [dbo].[#ShipTo]

    ([Ship_to_Num] [int] not null PRIMARY KEY CLUSTERED,

    [Country_key] [nvarchar](3) NULL)

    Forgot about that.......

  • RE: Problem with creating a Index on a temp table

    dogramone (11/12/2014)


    Get rid of the square brackets after the word constraint. So instead of "CONSTRAINT [] PRIMARY KEY CLUSTERED " have "CONSTRAINT PRIMARY KEY CLUSTERED "

    Ok, thanks...

    CREATE TABLE...

  • RE: Problem with creating a Index on a temp table

    Gail,

    How do you not name the constraint?

    I get the following error : An object or column name is missing or empty.

    If I try the following:

    CONSTRAINT [] PRIMARY KEY CLUSTERED

    (

    [ship_to_Num]...

  • RE: Excel Data Source Fails

    Phil Parkin (9/11/2014)


    dwilliscp (9/10/2014)


    Does anyone know how to fix this problem?

    SSIS Error Code DTS_E_OLEDB_EXCEL_NOT_SUPPORTED: The Excel Connection Manager is not supported in the 64-bit version of SSIS, as no OLE...

  • RE: Win7, Two Monitors and SSMS

    DeWayne_McCallie (9/4/2014)


    I just click in the window on Monitor #2 (SSMS) to change the focus to the window I want to type in and then type away.

    That is the way...

Viewing 15 posts - 61 through 75 (of 284 total)