Forum Replies Created

Viewing 15 posts - 766 through 780 (of 1,241 total)

  • RE: What is the equivalent to Yes/No data type in SQL?

    I did like the article basically promoting thinking things out at design time to see if the state you want to represent with a BIT data type is truly a...

    ----------------------------------------------------

  • RE: Updating a scheduled SSIS package

    SSIS has a deployment utility to help with these sort of things. Right click your project name at the top in BIDS > properties > deployment utility.... set CreateDeploymentUtility =...

    ----------------------------------------------------

  • RE: What is the equivalent to Yes/No data type in SQL?

    This works with TRUE or FALSE >

    DECLARE @mybit bit;

    SET @mybit = 'true';

    SELECT @mybit

    Though yes/no , on/off do not. Just want to add to this post.

    ----------------------------------------------------

  • RE: AutoNumber Integer to Varchar with min ID

    Borrowing the table and data creation

    CREATE TABLE SampleData(

    FIRST_NAME varchar(20),

    MIDDLE_INITIAL varchar(20),

    ...

    ----------------------------------------------------

  • RE: Super long running queries (bad users)

    As the main question asked is if there is a way to automatically blow off into oblivion queries running over n minutes:

    I have to agree that is not the way...

    ----------------------------------------------------

  • RE: Long Running Update statement

    You could add a identity column to the table, IDENTITY(1,1). This can be your guide for doing the updates in the table one batch at a time.

    Borrowing on Jeff's...

    ----------------------------------------------------

  • RE: values in two columns?

    The first principle of ISO-11179 and all data element names is that you name a thing for what it is by its nature, not how or where it is used...

    ----------------------------------------------------

  • RE: Slow Queries with Linked Server

    Eric M Russell (2/9/2015)


    Jeff Moden (2/9/2015)


    Eric M Russell (2/9/2015)


    axc_67 (2/9/2015)


    No I am not joining any tables in the remote server.

    I am just pulling a simple data extraction from remote server...

    ----------------------------------------------------

  • RE: MMM DD YYY to YYYYMMDD

    I for one like the yyyy-mm-dd notation. In other countries a '20140711' could be interpreted as Nov 07, 2014. If you changed the default language setting on your machine then...

    ----------------------------------------------------

  • RE: How to return top n and sum up the rest

    CELKO (2/12/2015)


    it is not entirely inconceivable and you wouldn't want to give a customer short shrift and knock them out of the rankings just because there was coincidentally a tie.

    ...

    ----------------------------------------------------

  • RE: How to return top n and sum up the rest

    Luis Cazares (2/12/2015)


    sonchoix (2/12/2015)


    dwain.c (2/11/2015)


    In the TOP 2 or 3 or 4 you are listing (outside of the Others group), what do you want to do if there are ties?

    This...

    ----------------------------------------------------

  • RE: SQL apparently not realising it should ditch a cached execution plan and make a new one

    Running the command

    EXEC DBCC FreeProcCache

    and witnessing the expected performance makes your case for parameter sniffing.

    ----------------------------------------------------

  • RE: Convert mm/dd/yyyy, m/d/yyyy and mm/d/yyyy Date format To Date/datetime (yyyy/mm/dd) in SSIS

    To handle the non date values, incorporate the use of a conditional split transformation. You are the best judge on what the non date values are like. You can state...

    ----------------------------------------------------

  • RE: WHERE 1 = 1,who uses this besides me

    I use this when I am developing and want to set up the structure to easily comment out conditions in the WHERE clause if needed. It was weird to me...

    ----------------------------------------------------

  • RE: Table structure for creating timetable for a school

    Jeff Moden (2/17/2015)


    MMartin1 (2/17/2015)


    Using tables like a Calendar, Course, TimeOfDay table (separate from Calendar which implies a day as the primary key) or Period ...

    you could employ a simple...

    ----------------------------------------------------

Viewing 15 posts - 766 through 780 (of 1,241 total)