Forum Replies Created

Viewing 15 posts - 7,096 through 7,110 (of 7,164 total)

  • RE: Discovering Foreign Key Constraints

    sp_help wlll tell you all referenced as well as referencing keys. You want to look at the last two result sets:

    USE AdventureWorks

    GO

    EXEC sys.sp_help @objname = 'HumanResources.EmployeeDepartmentHistory'

    If you are interested you...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Bulk Insert of CSV file

    harmand (2/25/2011)


    THANK YOU

    Another problem. I have catalog table with a description field. If the description has a comma in it the field in the flat file is in double...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: BULK INSERT multiple files without xp_cmdshell

    Lowell's example uses xp_cmdshell to find a list of files to BULK INSERT from specific directories. If the files you'll be BULK INSERTing will never change, or can be sent...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Normalization Question

    As with most things it will depend on a lot of factors...more than we can discuss in this forum. However as an initial direction for supporting reporting functions denormalizing the...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Cross Database Privileges for Application Role

    BOL: http://msdn.microsoft.com/en-us/library/ms190998.aspx

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Bulk Insert of CSV file

    You'll need to supply a format file. This post may help:

    http://www.sqlservercentral.com/Forums/FindPost99982.aspx

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: CXPACKET/Parallelism question

    mazzz (2/24/2011)


    I have a server with a significant amount of CXPACKET waits. It has only one processor (dual core).

    Does the possible max DOP depend on physical or logical cores?

    Possible...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Normalization Question

    I would designate the values you have for Products (Shirt), Colors (Green, Blue, etc.) and Sizes (S, M, L, etc.) as "natural keys". Surrogate keys (IDENTITY) are my preferred way...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Help with echo in xp_cmdshell

    namrata.dhanawade-1143388 (2/23/2011)


    Requirement:

    There are 100 tables each with different number and type of columns and obviously different rows.

    And then there is a condition to check if some 5 columns...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: change datatype of a column in a table - generic script

    Your OP says you're trying to alter columns from INT to BIGINT but your script is altering columns to VARBINARY(MAX). What exactly are you trying to do?

    In any case you'll...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: SQL stored Procedures

    Here is why using the sp_ prefix for your proc names is a bad idea:

    http://blogs.msdn.com/b/jenss/archive/2009/04/28/a-long-but-not-missed-friend-revisited-prefixing-stored-procedures-with-sp.aspx

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Problem with grouping on multiple columns with subtotals

    Please post the DDL for your table and the DML for your data.

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: change datatype of a column in a table - generic script

    Please post what you have so far.

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Primary Key based on Function

    Sounds like a proprietary SEQUENCE to me. Can you refactor?

    Your proprietary sequence (you called it ID) had to start somewhere so you must have a seed. Since all proprietary "ID"s...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: date for 15th Feb 12.00 a.m

    In short, yes.

    Try this:

    SELECT CONVERT(DATETIME,'15 Feb 2011 12 am',121) as my_date ;

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

Viewing 15 posts - 7,096 through 7,110 (of 7,164 total)