Forum Replies Created

Viewing 15 posts - 946 through 960 (of 2,458 total)

  • RE: generate unique id for each row within a range

    bismsit.29 (3/3/2016)


    Hi All

    I want to assign one unique id to each row in a table and the range is from 1 to 99999. there will be a flag for active...

    "I cant stress enough the importance of switching from a sequential files mindset to set-based thinking. After you make the switch, you can spend your time tuning and optimizing your queries instead of maintaining lengthy, poor-performing code."

    -- Itzik Ben-Gan 2001

  • RE: How do I find what process is making the server slow ?

    Take a look at sp_whoisactive by Adam Machanic.

    "I cant stress enough the importance of switching from a sequential files mindset to set-based thinking. After you make the switch, you can spend your time tuning and optimizing your queries instead of maintaining lengthy, poor-performing code."

    -- Itzik Ben-Gan 2001

  • RE: Trouble Deploying CLR functions

    You can run CLRs compiled and under .Net framework 2.0 on a SQL 2014 instance.

    "I cant stress enough the importance of switching from a sequential files mindset to set-based thinking. After you make the switch, you can spend your time tuning and optimizing your queries instead of maintaining lengthy, poor-performing code."

    -- Itzik Ben-Gan 2001

  • RE: Extract specific words from row or leave blank?

    Building on Amos' solution... Note that you don't need "ELSE NULL" in a CASE statement. Returning NULL is the default behavior when an ELSE is not specified.

    DECLARE @table1 TABLE...

    "I cant stress enough the importance of switching from a sequential files mindset to set-based thinking. After you make the switch, you can spend your time tuning and optimizing your queries instead of maintaining lengthy, poor-performing code."

    -- Itzik Ben-Gan 2001

  • RE: Subreport

    Without handling it in the main report I think you're out of luck. You can't have drop-down parameters for sub-reports.

    "I cant stress enough the importance of switching from a sequential files mindset to set-based thinking. After you make the switch, you can spend your time tuning and optimizing your queries instead of maintaining lengthy, poor-performing code."

    -- Itzik Ben-Gan 2001

  • RE: Mid result in ssrs

    If you are using SQL Serve and wanted to handle the string manipulation inside a dataset you could do something like this:

    -- your data

    DECLARE @strings TABLE (s varchar(100));

    INSERT @strings VALUES('PT=45.7=02/07/2002'),...

    "I cant stress enough the importance of switching from a sequential files mindset to set-based thinking. After you make the switch, you can spend your time tuning and optimizing your queries instead of maintaining lengthy, poor-performing code."

    -- Itzik Ben-Gan 2001

  • RE: MS SQL vs Oracle

    raven066 (3/3/2016)


    HI All,

    Recently i was thinking about Oracle, beacuse right now I'm MS SQL DBA/DEVELOPER.

    Some people said that oracle is future, and i'm little bit confused.

    Can Senior members in...

    "I cant stress enough the importance of switching from a sequential files mindset to set-based thinking. After you make the switch, you can spend your time tuning and optimizing your queries instead of maintaining lengthy, poor-performing code."

    -- Itzik Ben-Gan 2001

  • RE: Are the posted questions getting worse?

    SQLRNNR (3/2/2016)


    Alan.B (3/1/2016)


    Ed Wagner (3/1/2016)


    Alan.B (3/1/2016)


    jasona.work (3/1/2016)


    Ah, using SQL Server DATEDIFF to figure out how many days until my vacation...

    Hmm, using DD makes it seem so far away, lets try...

    "I cant stress enough the importance of switching from a sequential files mindset to set-based thinking. After you make the switch, you can spend your time tuning and optimizing your queries instead of maintaining lengthy, poor-performing code."

    -- Itzik Ben-Gan 2001

  • RE: Are the posted questions getting worse?

    Sean Lange (3/2/2016)


    Steve Jones - SSC Editor (3/2/2016)


    Alan.B (3/1/2016)


    Ed Wagner (3/1/2016)


    Alan.B (3/1/2016)


    jasona.work (3/1/2016)


    Ah, using SQL Server DATEDIFF to figure out how many days until my vacation...

    Hmm, using DD makes it...

    "I cant stress enough the importance of switching from a sequential files mindset to set-based thinking. After you make the switch, you can spend your time tuning and optimizing your queries instead of maintaining lengthy, poor-performing code."

    -- Itzik Ben-Gan 2001

  • RE: Are the posted questions getting worse?

    Ed Wagner (3/1/2016)


    Alan.B (3/1/2016)


    jasona.work (3/1/2016)


    Ah, using SQL Server DATEDIFF to figure out how many days until my vacation...

    Hmm, using DD makes it seem so far away, lets try WEEK...

    That's a...

    "I cant stress enough the importance of switching from a sequential files mindset to set-based thinking. After you make the switch, you can spend your time tuning and optimizing your queries instead of maintaining lengthy, poor-performing code."

    -- Itzik Ben-Gan 2001

  • RE: Are the posted questions getting worse?

    jasona.work (3/1/2016)


    Ah, using SQL Server DATEDIFF to figure out how many days until my vacation...

    Hmm, using DD makes it seem so far away, lets try WEEK...

    That's a little better...

    How about...

    "I cant stress enough the importance of switching from a sequential files mindset to set-based thinking. After you make the switch, you can spend your time tuning and optimizing your queries instead of maintaining lengthy, poor-performing code."

    -- Itzik Ben-Gan 2001

  • RE: constant high memory usage on SQL Server 2012 SP3

    If you go into SSMS, Server/Instance properties that's where you can set the minimum and maximum memory settings. If the minimum memory setting is ~89% of your memory that would...

    "I cant stress enough the importance of switching from a sequential files mindset to set-based thinking. After you make the switch, you can spend your time tuning and optimizing your queries instead of maintaining lengthy, poor-performing code."

    -- Itzik Ben-Gan 2001

  • RE: How to call a function with multiple parameters in a select statement

    Stix83 (3/1/2016)


    select statement:

    select a.Owner_Id,

    b.Name as KPI,

    B.Record_Type,

    B.Resource_Id,

    C.Display_Name,

    count(A.Owner_Id) as Max

    from amgr_appointments A

    right outer join AMGR_Resources B on A.Owner_Id = b.Resource_Id

    right outer JOIN ADMN_User_Details AS C ON A.Creator_Id=C.User_Id

    where b.Resource_Id in ('R25B2864CB6', 'R2691D72523', 'R25B2868972','R25B2868EE0','R39D1B39765',...

    "I cant stress enough the importance of switching from a sequential files mindset to set-based thinking. After you make the switch, you can spend your time tuning and optimizing your queries instead of maintaining lengthy, poor-performing code."

    -- Itzik Ben-Gan 2001

  • RE: Are the posted questions getting worse?

    Brandie Tarvin (3/1/2016)


    As part of some classes I've been taking lately, I had to do record some video presentations. I'd love some feedback on my latest, if none of you...

    "I cant stress enough the importance of switching from a sequential files mindset to set-based thinking. After you make the switch, you can spend your time tuning and optimizing your queries instead of maintaining lengthy, poor-performing code."

    -- Itzik Ben-Gan 2001

  • RE: MTD Default Parameters

    I don't get what MTD is or exactly what you are trying to do.

    If you are looking for a default parameter value of the first day of the month and...

    "I cant stress enough the importance of switching from a sequential files mindset to set-based thinking. After you make the switch, you can spend your time tuning and optimizing your queries instead of maintaining lengthy, poor-performing code."

    -- Itzik Ben-Gan 2001

Viewing 15 posts - 946 through 960 (of 2,458 total)