Forum Replies Created

Viewing 15 posts - 7,786 through 7,800 (of 8,731 total)

  • RE: increment id based on column value

    An easy and effective way to do this is by using the quirky update. You must fully understand what it is doing, follow all the rules and test for effectiveness...

  • RE: 2008 free BI tools

    Yes, depending ont he architecture, it should be x64 or x86.

  • RE: 2008 free BI tools

    You can install SQL Server Express with advanced tools. It includes SSRS but won't have BIDS for SSIS or SSAS.

  • RE: Sales puzzle

    tom.w.brannon (8/14/2013)


    I use numbers in my order by statements every day for short queries. It is faster than typing out long names and is especially nice when the column...

  • RE: SELECT with a variable Tablename

    bgrossnickle (8/13/2013)


    FYI - I wanted the FROM @tablename to be a variable. Not a variable in the WHERE clause.

    But you got a different way of doing things that will give...

  • RE: Select statement can't modify

    Do you mean that you want to edit the results of a SELECT statement? That can't be done.

    Right clicking the table and selecting "edit 200 rows", will change the contents...

  • RE: SELECT with a variable Tablename

    Have you tried something like this?

    Declare @Database varchar(20)

    Set @Database = 'TDSTEP'

    Declare @RowCount int

    declare @sql as nvarchar(max)

    set @sql = ' SELECT @RowCountOUT = Count(*) FROM ' + @Database

    exec sp_executesql @sql, N'@RowCountOUT...

  • RE: Problem with EXCEPT statement

    Have you tried to compare characters with the ASCII() or UNICODE() functions? You might have characters that look alike and are different for SQL Server.

  • RE: need urgent help on a calculation

    Apparently all of your requirements are urgent and you haven't learned much from SQL in the last 7 months you've been around here.

    Please post DDL, sample data and expected results...

  • RE: How to find exact no. of months

    Will this give you the expected output?

    SELECT DATEDIFF( mm, date1, date2) - CASE WHEN DAY( date1) <= DAY( date2) THEN 0 ELSE 1 END

    FROM (VALUES( '2013-08-05 00:00:00.000','2014-06-01 00:00:00.000'),

    ( '2013-08-01...

  • RE: Defining a process for troubleshooting performance issues

    You could take a look at this book. It's a complete process for troubleshooting SQL Server

    http://www.sqlservercentral.com/articles/books/76296/

  • RE: Using Replace to ..well...replace...

    Without more information, you could test this.

    UPDATE MyTable SET

    file_path = REPLACE( file_path, '/Downloads/', '/forms/')

  • RE: using in with SP

    Using dynamic code might cause problems with sql injection. You could try to use the 8K splitter [/url]to split your string.

    You could end up with something like this:

    SELECT *

    FROM MyTable...

  • RE: Pivot columns

    How do you define the order? do you have an identity value?

  • RE: Issue with Like Statement

    .Netter (8/7/2013)


    Luis Cazares (8/6/2013)


    I see letter k in both rows.

    Kipling Road

    Alexandra Park

    I actually feel like an idiot! this just goes to shows I was completely shattered last night.

    I'm sorry for...

Viewing 15 posts - 7,786 through 7,800 (of 8,731 total)