Forum Replies Created

Viewing 15 posts - 5,461 through 5,475 (of 13,468 total)

  • RE: Having issues using BCP command to create file

    bcp doesn't add headers, so you have to do it manually.

    here's two examples i keep onhand for that:

    --BCP to get headers

    --Version 1: global temp table

    --note i'm making sure my headers...

  • RE: Help with table constraints

    can't see a reason for the calculated persistent column;

    here's my prelim version of your schema, based on what you posted:

    by making the column not null, with a foeign key,...

  • RE: Limiting the records?

    well it looks like it can be done without the cursor and also without the dynamic SQL;

    this SELECT is the section that would be doing the INSERT;

    how many rows does...

  • RE: Limiting the records?

    well the details are certainly different now that the DDL is posted.

    the DDL details you posted is doing an Insert, not an update, and it's not joining on five...

  • RE: Limiting the records?

    Charmer (5/29/2012)


    GilaMonster (5/29/2012)


    Charmer (5/29/2012)


    i googled for checking 'update top' command....but it is like "update top 100 table set column = value "...

    Yup, that's the command.

    oh....but i am not sure how...

  • RE: Limiting the records?

    first a gentle reprimand: you've seen enough posts about providing code...posting pseudo code gets you a psuedo-answer that you have to adapt and ask more questions about...if you posted your...

  • RE: Unable to shrink datafiles

    truncating or deleting never returns file space to the server; it merely clears the internal tables so SQL can reuse the same space. SQL continues to reserve all that space...

  • RE: stored procedure library

    another option:

    if you use a common naming convention across related procs/tables etc, SSMS has the little used option to filter the results in the Object Browser to limit the items...

  • RE: Dynamic SQl error - I might be doing something wrong.

    michael vessey (5/24/2012)


    and please re-read the thread yourself - lowels reponse was to change the "query results to text" - which is nothing to do with a select to a...

  • RE: Dynamic SQl error - I might be doing something wrong.

    the truncation is because by default, to save memory, SSMS limits the Results-To-Text to the first 256 characters, regardless of the results.

    change it in your options to 8000

    not that no...

  • RE: SQL 2012 developper edition

    express 2012 is free, and you can get it straight from microsoft;

    the enterprise evaluation edition is also free, but it expires after a while.

    both of those you can google for...

  • RE: Manual UnInstall for SQL Server 2008 R2 standard edition

    SQLKnowItAll (5/22/2012)


    Just saw this link in another post from Lowell: http://msdn.microsoft.com/en-us/library/ms143412.aspx

    I was going to paste it here two! two questions on the same subject just a couple of minutes apart;...

  • RE: Problems With if And else.

    simple syntax issue.

    you have BEGIN ( and ) END; the parentheses are not allowed

    cthis is syntactically correct:

    CREATE PROCEDURE Casino.SP_SLOTMACHINE

    @User NVARCHAR(10),@bet INT

    AS

    BEGIN

    DECLARE @L_Wheel...

  • RE: Restore a database with a used space only

    not natively no. if the database is set to 60 gig, even though it's 10% used, you need 60 gig to restore it.

    that said, Redgates SQL virtual restore will...

  • RE: Column naming convention

    in our shop, all the identity columns contain the tablename + Id, so repeating the tablename would be repetitively redundant 🙂

    so for example TBAddress would have an identity TBAddressID...

Viewing 15 posts - 5,461 through 5,475 (of 13,468 total)