Forum Replies Created

Viewing 15 posts - 196 through 210 (of 7,164 total)

  • RE: Query to count concurrent users every hour

    Here is the framework for a solution but I need some of the information I requested to be sure it meets all the business requirements:

    if OBJECT_ID('tempdb.dbo.#hours') is not null

    ...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Query to count concurrent users every hour

    Gstar1224 (2/18/2016)


    Hey Everyone,

    I have been trying to build a query that would calculate the number of concurrent users every hour for a date range(Lets say a month). Below is...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Using Parameters in a Query is Killing Performance

    Loner (2/18/2016)


    The table has 2357880092 number of records.

    Thanks. Please provide a CREATE TABLE statement including all indexes and constraints.

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Why Log Shipping is still a viable solution in 2016

    Log Shipping is tried and true, no doubt, but data center operations folks mostly (in my experience) think about 0 data loss from a DR perspective and therefore favor mirroring...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: International Characters (Korean) displayed as Junk data after migration to PB12.5.

    Seems you've ruled out a database problem. Maybe contact the Power Builder folks or post your question on a Power Builder forum.

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: International Characters (Korean) displayed as Junk data after migration to PB12.5.

    bh.shalini (2/18/2016)


    My problem is slightly different. From the database i get the Korean characters as is.

    Earlier you said you were not, from the new database via the OLE DB Driver....

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Using Parameters in a Query is Killing Performance

    Is the table partitioned?

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: International Characters (Korean) displayed as Junk data after migration to PB12.5.

    Seems like you isolated it to a driver issue. If memory serves, the OLE DB driver in SNAC actually leverages the ODBC driver behind the scenes so the problem may...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: purging old data and outer joins

    ChrisM@Work (2/16/2016)


    Orlando Colamatteo (2/15/2016)


    Can you try it in order from most rows to least, see Jeff's follow-up post to mine. The thought being to reduce the set as much as...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: How to "Date" help

    Lynn Pettis (2/16/2016)


    Orlando Colamatteo (2/16/2016)


    select datefromparts(year(getdate())-1,1,1) as beginning_of_last_year,

    datefromparts(year(getdate())-1,12,31) as end_of_last_year;

    I don't like using closed ended ranges for date ranges. Prefer close ended on the...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Scheduling Job Steps

    TheSQLGuru (2/16/2016)


    Just have a job step that starts the next job you want to run AFTER the completion of the first job. Easy-peasy-lemon-squeezy! 🙂

    sp_job_start is the sproc IIRC. You could...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied.

    Thanks for clarifying. My understanding is that processes running as "local system" may have trouble accessing network resources.

    You've proven it works when the services are running as your account. Not...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Scheduling Job Steps

    Maybe semantics, but wasn't thinking of anything to incorporate in your existing code. I was proposing new code and a new step 2 in your job.

    Suggestion: make a new...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Like / Contains

    Please read the article I linked to. While a scan of the data is inevitable with like%% the technique in the article still improves performance even with 0% nulls.

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Scheduling Job Steps

    How about this:

    Job starts at 20:15:

    Step 1: take backup

    Step 2: T-SQL, if before 21:00 run WAITFOR TIME '21:00'; else just be done

    Step 3: do important stuff

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

Viewing 15 posts - 196 through 210 (of 7,164 total)