Forum Replies Created

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

  • RE: Trigger for updates on a row using previous record value?

    Most certainly it is possible. Especially if you are basing your view directly on one physical table.

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

  • RE: NOLOCK across linked server with join

    I'd stear clear of joining a local table with a remote table using 4 part naming convention. This type of cross-instance joining is not efficient for a number of reasons,...

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

  • RE: Trigger for updates on a row using previous record value?

    Will this work for you? It does not rely on a lag() which are not available before SQL SERVER 2012.

    SELECT

    T2.[WEEK] , T2.CAMPUS, T2.BUILDING, T1.[OCCUPIED SUITES] AS OCCUPIED_SUITES_WEEK_START, T2.[OCCUPIED...

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

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

    One thing I can say for the BIT type .... I can see the issues arising from not knowing the yes/no answer at time t1. So these were allowed...

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

  • RE: practical advice arounding indexing and ETL?

    Just to cover, there are no triggers firing on the destination table correct?

    Also from this page https://msdn.microsoft.com/en-us/library/ms141237(v=sql.105).aspx

    I can see where it reads "Performance can be improved if you...

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

  • 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.

    ...

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

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