Forum Replies Created

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

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

    bismsit.29 (3/3/2016)


    Hi Alan,

    Thank you very much for replying back so early.

    Its sort of a business requirement that's why i want to reuse them also this value can hold till 99999...

    "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: Shredding with XML schema and XML data in one XML column

    This link should help get you started:

    https://msdn.microsoft.com/en-us/library/ms188282.aspx

    If you post some ddl and sample data we can demonstrate on that.

    "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: Roll Your Own Fuzzy Match / Grouping (Jaro Winkler) - T-SQL

    ip7915 (3/4/2016)


    The CLR implementation found in the assembly Microsoft.MasterDataServices.DataQuality, can be used in SQL and it is about 300 times faster..

    Yep. And if you have DQS setup it's already available...

    "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: Showing Quarters Dynamically

    Duplicate thread. Direct any esponses to http://www.sqlservercentral.com/Forums/Topic1766578-3412-1.aspx

    "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: 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

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