Forum Replies Created

Viewing 15 posts - 61 through 75 (of 98 total)

  • RE: A Simple way of Automating Scripts

    Martin Bell (8/2/2009)


    the sqlist (7/31/2009)


    Mmm... the delete option doesn't seem to work!

    What delete option?

    I tested that code right before I posted it and everything worked fine.

    Don't just give the hungry man a fish, teach him how to catch it as well.

    the sqlist

  • RE: A Simple way of Automating Scripts

    I agree with the ideea that the sql script files should be kept in separate files but for the output file is better to have only one as is far...

    Don't just give the hungry man a fish, teach him how to catch it as well.

    the sqlist

  • RE: A Simple way of Automating Scripts

    I am doing this for a long time now and personally I don't see the need of that complicated T-SQL code. The bacth file is the best and by far...

    Don't just give the hungry man a fish, teach him how to catch it as well.

    the sqlist

  • RE: SQL code management and promotion

    And in regards to the backup-restore promotion method, would work only if the database is in within reasonable size limits, if is few hundred of gigs then becomes a problem.

    Don't just give the hungry man a fish, teach him how to catch it as well.

    the sqlist

  • RE: SQL code management and promotion

    Actually you are the one with no structure in place because there is no reason for code in development to be executed in production. When everything is structured and...

    Don't just give the hungry man a fish, teach him how to catch it as well.

    the sqlist

  • RE: SQL code management and promotion

    Gift Peddie (5/17/2009)


    That is correct QA DBA gets the .bak and QA passes .bak to Staging from staging to production some compare is needed that is why you need a...

    Don't just give the hungry man a fish, teach him how to catch it as well.

    the sqlist

  • RE: SQL code management and promotion

    Gift Peddie (5/17/2009)


    ...When you have .bak in VSS that is the only thing given to QA, Staging and production so there is tight control of the database build.

    So you say...

    Don't just give the hungry man a fish, teach him how to catch it as well.

    the sqlist

  • RE: SQL code management and promotion

    Thanks, Gift Peddie for your reply.

    When you say add .bak to VSS do you mean the database backup? Sounds a bit too much, why the need of backup in...

    Don't just give the hungry man a fish, teach him how to catch it as well.

    the sqlist

  • RE: SQL code management and promotion

    Gift Peddie (5/16/2009)


    TFS( Team Foundation Server) that is the new fancy Microsoft source control system, it runs with SQL Server native and uses Windows Sharepoint services to manage documents. ...

    Don't just give the hungry man a fish, teach him how to catch it as well.

    the sqlist

  • RE: SQL code management and promotion

    Gift Peddie (5/16/2009)


    We store .sql and .bak files in VSS and TFS the later is native in VSS it takes manual work through server explorer or actual copy and paste...

    Don't just give the hungry man a fish, teach him how to catch it as well.

    the sqlist

  • RE: Changing a Non-IDENTITY column to IDENTITY and vice versa

    JeremyG (5/9/2009)


    I will probably continue to use the create table/copy data/rename tables approach 99% of the time myself..but i think the article does offer a different way to do this..the...

    Don't just give the hungry man a fish, teach him how to catch it as well.

    the sqlist

  • RE: Changing a Non-IDENTITY column to IDENTITY and vice versa

    jeremygiaco (4/14/2009)


    I have to respectfully disagree with the posters that are saying that using the GUI is the best approach. If by best you mean easiest, then that would...

    Don't just give the hungry man a fish, teach him how to catch it as well.

    the sqlist

  • RE: SQLCMD & Batch file creation

    You need to use the OSQL utility for 2K server or OSQL or SQLCMD utility for 2K5 server and up. For 2K5 both utility are available. These command line utilities...

    Don't just give the hungry man a fish, teach him how to catch it as well.

    the sqlist

  • RE: Changing a Non-IDENTITY column to IDENTITY and vice versa

    SQL Frenzy (2/25/2008)


    Hi,

    Can we have two identity columns on a single table?

    If not then how can one insert an identity column in a table having an identity column?

    Regards,

    Ahmad

    The answer...

    Don't just give the hungry man a fish, teach him how to catch it as well.

    the sqlist

  • RE: Custom Pagination in SQL Server 2005

    Eric Inman (1/6/2009)


    one flaw would be ORDER BY and TOP. Check this out:

    Check this out

    http://blogs.msdn.com/queryoptteam/archive/2006/03/24/560396.aspx

    The title is "TOP 100 Percent ORDER BY Considered Harmful". My query doesn't use TOP 100(N)Percent....

    Don't just give the hungry man a fish, teach him how to catch it as well.

    the sqlist

Viewing 15 posts - 61 through 75 (of 98 total)