Forum Replies Created

Viewing 15 posts - 1,921 through 1,935 (of 6,036 total)

  • RE: Data type for Credit Card

    Ever heard of Maestro cards?

  • RE: Find Affected Row Count from a Dynamic Query

    Output parameter gives more flexibility, as you do not need to have the counted SELECT as the last statement.

    It even allows you to aggregate 2 or more counts:

    DECLARE @sSQL NVARCHAR(500),...

  • RE: Byte Me: Hairy Situation

    I guess it's about SharePoint.

    There was an issue when it caused a deadlock during final stages of installation.

    As they say - it would be funny if it would not be...

  • RE: Is a Primary Key an index?

    Koen Verbeeck (7/17/2014)


    Sergiy (7/16/2014)


    Koen Verbeeck (7/16/2014)


    So it is 100% possible to decouple the primary key from the index

    Can you illustrate how?

    Easy peasy. I draw a table diagram in Visio and...

  • RE: Is a Primary Key an index?

    Steve Lund (7/17/2014)


    Interesting also, is that when you create a PK on a table, in SSMS that it lists that PK under Indexes and not under Constraints.

    Look under "Keys".

    It's another...

  • RE: Is a Primary Key an index?

    Phil Factor (7/17/2014)


    @Sergei

    Please correct me if I'm wrong but I'd always believed a primary key was enforced by a constraint which was implemented by means of both a UNIQUE ...

  • RE: Is a Primary Key an index?

    h.tobisch (7/17/2014)


    well, it HAS an idex, so what ?

    No, it's implemented in form of an index.

    So, IT IS an index.

    Take the index away -and there is no key.

    Here is another...

  • RE: Is a Primary Key an index?

    PurpleLady (7/16/2014)


    .... but creating a primary key does create a corresponding index (if it doesn't already exist).

    Wrong.

    It creates a corresponding unique index even if you have 10 unique indexes...

  • RE: Is a Primary Key an index?

    Koen Verbeeck (7/16/2014)


    So it is 100% possible to decouple the primary key from the index

    Can you illustrate how?

    , as the latter one is just a matter of implementation.

    The fact of...

  • RE: BCP hangs in T-SQL not at DOS prompt

    Check that the domaun account used for trusted connection is registered against the database and is allowed to select data from the table.

  • RE: space given in DB name and backup failure

    Steve Jones - SSC Editor (10/22/2013)


    I like Sergiy's advice.

    I better like this:

    generate the statements on the fly, replace all special chars with e.g. "_" in the part where that script...

  • RE: space given in DB name and backup failure

    Benki Chendu (10/3/2013)


    The maintenance plan runs for all database backups. Its a generic job.

    Do you have any more inputs.

    Try to use double quotes around the file names:

    BACKUP DATABASE [safe_PreTMS ]...

  • RE: BCP hangs in T-SQL not at DOS prompt

    When you go to DOS you execute the command in your desktop/laptop environment, and "C:\Temp\OrderNo_123.xml" is a file on your computer with your user having administrative permission over it.

    When launch...

  • RE: Unique Identifier as Clustered index

    I believe "indexes with only one column" does not reveal all the indexes we need to see.

    Clustered indexes with 1st column of uniqueidentifier type are as bad, probably even worse.

    Following...

  • RE: Trigger to insert from one (new row) in table to another table

    That procedure might have multiple "reiterating" update while a row is added to the table.

    Extremely bad but at the same time very popular approach.

    Trigger is launched during every one of...

Viewing 15 posts - 1,921 through 1,935 (of 6,036 total)