Forum Replies Created

Viewing 15 posts - 5,386 through 5,400 (of 15,381 total)

  • RE: Duplicate key issue ... again ... and again ...

    sql-lover (3/27/2014)


    Is someone else experiencing this problem, SQL2012, of course:

    Violation of PRIMARY KEY constraint 'PK_MyTable'. Cannot insert duplicate key in object 'dbo.MyTable'. The duplicate key value is (1842649).

    The statement has...

  • RE: Table Disk Space Usage by Row?

    jpk 91966 (3/27/2014)


    Anyone know how to get the disk space usage of a table by row?

    Example:

    I have table A with 1 million rows. I want to know how much space...

  • RE: GUID Pirmary key

    Koen Verbeeck (3/27/2014)


    Sean Lange (3/27/2014)You do however, want to create a clustered index on some column in your table.

    Is that absolutely necessary? It depends on the type of table and...

  • RE: Are the posted questions getting worse?

    Koen Verbeeck (3/27/2014)


    W00t w00t, this one makes my 12000th point. 😎

    Congrats!

  • RE: Group by question

    Here is one way.

    create table #Something

    (

    ID int,

    Name varchar(50),

    Address varchar(50),

    DateInserted datetime

    )

    insert #Something

    select 1, 'Amy Paul', '2 Main St, Acton,MA', '2013/03/02' union all

    select 1, 'Amy Claire Paul', '2 Main St, Acton,MA', '2014/01/09'...

  • RE: Specific Sprocs vs general get all sprocs

    JKSQL (3/26/2014)


    For my own curiosity I wanted to know how to handle situations where developers ask for specific sprocs vs get all.

    I have a table call Foo that has Id,...

  • RE: GUID Pirmary key

    yuvipoy (3/27/2014)


    Sean Lange (3/27/2014)

    I would recommend though that you have some other column as your clustered index.

    Coludn't get you.

    You mean to say primary key clusterindex on the child tables??

    No...

  • RE: SQL query issue

    Hi and welcome to the forums. It looks like maybe you want a crosstab here. You can read about the technique by following the link in my signature.

    If you need...

  • RE: GUID Pirmary key

    yuvipoy (3/27/2014)


    Hi,

    Can we have a GUID Column to primary key with nonclusterindex?

    Is nonclusterindex is needed while we run the GUID column on WHERE Condition.

    Say for eg i am having 50...

  • RE: SQL Scripts Manager

    Loads fast now. Not sure what the issue was. I tried several times yesterday and no dice. I only have a couple of the scripts added to my briefcase so...

  • RE: What is (Null='Hello') in Sql Server

    Nice question about a basic concept that many people don't understand. Given that at the time of post there are 30% wrong answers it seems this is something that many...

  • RE: Need Help for the following problem

    mdsharif532 (3/26/2014)


    I have the Baseline number and I have to populate the next columns based on the following formula

    2013 = Baseline + Baseline*0.055

    2014 = 2013 + 2013*0.055

    2015 = 2014 +...

  • RE: SQL Scripts Manager

    This seems like it is pretty cool. It loads up the scripts section pretty fast. However, the favorites seems to be broken. I clicked on favorites and it asked me...

  • RE: SQL date with year & Quater

    kishorreddy.yuva (3/26/2014)


    I have a table with five columns as

    ID Join_Date Join_Qtr End_Date End_Qtr

    1 2014-01-12 2014Q1 2015-05-15 ...

  • RE: SQL INSERTS are significanlty slower on newer server

    mberran (3/26/2014)


    Sorry, I didn't realize I selected the SQL 2008 forum. We are using SQL Server 2005 on both servers. The new server pretty much has upgraded OS...

Viewing 15 posts - 5,386 through 5,400 (of 15,381 total)