Friday, August 30, 2013

[SQL Server] Testing with Profiler Custom Events and Database Snapshots

  1. Testing with Profiler Custom Events and Database Snapshots ...

    www.sqlteam.com/.../testing-with-profiler-custom-events-and-database- snapshots
    22 Jun 2009 ... We've all had them. One of those stored procedures that is huge and contains
    complex business logic which may or may not be executed.

  2. Testing with Profiler Custom Events and Database Snapshots ...

    www.sswug.org/articles/viewarticle.aspx?id=45179
    (Mike Femenella) We've all had them. One of those stored procedures that is
    huge and contains complex business logic which may or may not be executed.

  3. Performance and Memory Java Profiler - YourKit Java Profiler

    www.yourkit.com/features/ - Cached
    Java profiler. ... "Quick Info" view: Ability to automatically capture snapshots on
    event: Ability to compare memory snapshots: Automated comprehensive memory
     ...

  4. Working with Models ? Phalcon 1.2.2 documentation

    docs.phalconphp.com/en/latest/reference/models.html - Cached
    Deleting Records; Validation Failed Events; Behaviors ... Pointing to a different
    schema; Setting multiple databases; Logging Low-Level SQL Statements;
    Profiling SQL ... If you need to work with databases at a lower level check out the
    Phalcon\Db ... This method aids in setting up the model with a custom behavior
    i.e. a ...

  5. Free SQL Server Tools Software and Utilities - SQL Server Utilities

    www.sqlserverutilities.com/SQL-Server-Utilities-Free-SQL-Server-Tools- Software-and-Utilities-for-the-DBA-and-Developer.htm - Cached - Similar
    RML Utilities for SQL Server (x86) and (x64) - tools to help database
    administrators manage the ... SQLTrace, Profiler & Extended Events ...
    procedures creation, new query templates, running custom scripts from Object
    explorer's context menu) for ... Create Database Snapshot - simple GUI for
    creating a database snapshot.

  6. Database Project Settings - MSDN - Microsoft

    msdn.microsoft.com/en-us/library/hh272681(v=vs.103).aspx - Cached
    You use database project settings to control aspects of your database,
    debugging ... How to: Create a Snapshot of a Project ... Build Events ... If this
    check box is cleared, file names for objects take the form ObjectName. ... You
    might choose to do this, for example, if you wanted a custom configuration in
    which you always ...

  7. SqlPackage.exe - MSDN - Microsoft

    msdn.microsoft.com/en-us/library/hh550080(v=vs.103).aspx - Cached
    Perspectives · Events · Forums ... Extract: Creates a database snapshot (.dacpac)
    file from a live SQL Server or Windows Azure SQL Database. .... The profile
    defines a collection of properties and variables to use when generating outputs.
    .... the WITH NOCHECK clause for check constraints when you publish to a
    database.

  8. [DOC] 

    SQL Server Replication: Providing High Availability using Database ...

    download.microsoft.com/download/d/9/4/.../ReplicationAndDBM.docx - Cached
    This agent applies the (optional) initial snapshot to the Subscribers and moves ....
    Create a custom profile by using a system-defined profile as a template, and then
    add .... In the event that these changes are made to the publication database
    again and ... The steps for doing this are as follows (continuing with the same test
     ...

  9. Appendix: Common DBA Tasks for Microsoft SQL Server - Amazon ...

    docs.aws.amazon.com/.../latest/.../Appendix.SQLServer.CommonDBATasks. html - Cached
    This section describes the Amazon RDS-specific implementations of some
    common DBA tasks for DB Instances that are running the Microsoft SQL Server ...

  10. Monitoring and Tuning the Database - 11g Release 2 (11.2)

    docs.oracle.com/cd/E25054_01/server.1111/.../montune.htm - Cached
    Other alerts correspond to database events such as Snapshot Too Old or ...... A
    green check mark in the SQL Profile column indicates a recommendation that ...

  11. How to maintain and troubleshoot BizTalk Server databases

    support.microsoft.com/kb/952555 - Cached - Similar
    Microsoft BizTalk Server databases and the health of the databases are very .....
    Additionally, the tool provides a snapshot of the BizTalk Server databases and
    the .... If these tracking events are not needed, clear the check box for this option
    in the ... Then, run SQL Profiler to determine the SQL statement that is executing
    in ...

  12. Database Management - Oracle Documentation

    docs.oracle.com/cd/E11857_01/em.../database_management.htm - Cached
    It displays a profile of the amount of time sessions are either working or waiting to
    work ... particular wait event that accounted for the highest percentages of
    sampled session activity. .... By default, the database takes snapshots at 60-
    minute intervals. ..... This user may add additional custom database objects or
    extensions to ...

  13. New Features In Oracle Enterprise Manager Cloud Control 12c

    docs.oracle.com/cd/E24628_01/doc.121/e25353/whats_new.htm - Cached
    For example, when a new version of Oracle Database is released, you can ....
    These entities can be consumed in custom job types defined for the plug-in. ...
    priority than targets where the value of the lifecycle property is staging, test, or
    development. ...... A provisioning profile is a read-only snapshot of an existing
    database ...

  14. ej-technologies - Java Profiler, Java Installer Builder, Java Tools

    www.ej-technologies.com/products/jprofiler/features.html - Cached - Similar
    In JProfiler, you can save a snapshot of all current profiling data to disk. ...
    Executors from the java.util.concurrent package; AWT events; SWT events;
    Thread starts ... JProfiler offers a custom probe wizard that allows you to define
    your custom probes directly in .... JProfiler supports specific probes for the
    following databases:.

  15. Nodetime Docs: Documentation

    docs.nodetime.com/ - Cached
    Database Monitoring; CPU Profiling; Memory Profiling; Alerts; Team Features ...
    Check out the screencast to see sample filtering in action. ... Using metric API call
    , custom metrics can be sent to the Nodetime server and presented in the ... The
    snapshots are then analyzed by Nodetime and presented in a form, which leads
    to ...

  16. Basit A. Farooq - United Kingdom | LinkedIn

    uk.linkedin.com/in/basitfarooq - Cached
    Leeds, United Kingdom - Lead/Senior Database Administrator at Parabis Group
    View Basit A. Farooq's (United Kingdom) professional profile on LinkedIn. ... log
    shipping based warm spare, custom inter-datacentre replication, 100 GB Custom
    ... DBCC, SQL Profiler, DTA, Auditing, Event Notifications, Extended Events,
    Service Broker, SSIS, Visio, Database Mirroring, LogShipping, Database
    Snapshots.

  17. The Grails Framework 2.2.4

    grails.org/doc/latest/guide/single.html - Similar
    2.9Testing an Application ... 4.7.6Snapshots and Other Changing Dependencies
    ... 6.5.1Events and Auto Timestamping ... 6.5.2.4Custom Database Identity .....
    running with a custom Grails environment called "production", a Spring profile of
     ...

  18. RegOnline Features ? Badges, Custom Events Websites, Email ...

    www.regonline.ca/__features/ - Cached
    1) Charts 2) Event Statistics 3) The custom event URL ... Reports - Events
    Snapshot ... Build directories in tabbed, contact card, and full profile formats. ...
    Searchable Attendee Database ... The Event Organizer Tools app allows you to
    check in attendees to your event or to an individual session either through the
    interface or ...

  19. DB Tools for Oracle - SoftTree Technologies, Inc.

    www.softtreetech.com/dbtools/ - Cached
    DB Tools is an integrated set of "must have" tools for monitoring, tuning, ...
    schema or database snapshots; anticipate schema change impact and
    dependencies. ... can run robust database performance and organization
    diagnostic tests and get a .... SQL Profiler - DB Tools PL/SQL Profiler provides
    graphical interface to the ...

  20. Techniques for improving online data cleanup in a WebSphere ... - IBM

    www.ibm.com/developerworks/websphere/.../0808_voldman.html - Cached - Similar
    As the database grows, the performance and maintainability of the site are
    affected, ... You will learn techniques to implement, test, and tune cleanup scripts,
    and to ... Implementing a custom program for the deletion is also possible and ......
    Instead of running snapshots or event monitors against the whole database, you
    can ...

[SQL Server] Efficiently Reuse Gaps in an Identity Column

  1. Efficiently Reuse Gaps in an Identity Column - SQLTeam.com

    www.sqlteam.com/article/efficiently-reuse-gaps-in-an-identity-column - Similar
    9 Feb 2010 ... This article will demonstrate an efficient way to reuse gaps in an identity column.
    Please note that this is something you normally shouldn't be ...

  2. SQL Server Forums - Article: Efficiently Reuse Gaps in an Identity ...

    www.sqlteam.com/forums/topic.asp?TOPIC_ID=139584 - Cached
    Posted - 02/09/2010 : 08:50:18 Show Profile · Visit AskSQLTeam's Homepage ·
    Reply with Quote. This article will demonstrate an efficient way to reuse gaps in ...

  3. Efficiently Reuse Gaps in an Identity Column - SQLTeam ... - Google+

    https://plus.google.com/117791377540125472005/.../ShxUNrVsjwv - Cached
    23 Jan 2013 ... Efficiently Reuse Gaps in an Identity Column - SQLTeam.com #sqlserver #sql
    http://ow.ly/h3D6f.

  4. How do I fill in identity gaps? - Ask SqlServerCentral

    ask.sqlservercentral.com/.../2844/how-do-i-fill-in-identity-gaps.html - Cached
    You can also read this blog post http://weblogs.sqlteam.com/peterl/archive/2009/
    03/10/How-to-efficiently-reuse-gaps-in-identity-column.aspx.

  5. Auto Identity Column in SQL Server : The Official Microsoft ASP ...

    forums.asp.net/t/prev/1793104 - Cached
    http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=98389. http://www.sqlteam.
    com/article/efficiently-reuse-gaps-in-an-identity-column. Reply ...

  6. id column gets biger then integer ?! : The Official Microsoft ASP ...

    forums.asp.net/p/1629312/4195217.aspx/1?Re+id+column... - Cached
    for the gaps : http://weblogs.sqlteam.com/peterl/archive/2009/03/10/How-to-
    efficiently-reuse-gaps-in-identity-column.aspx. (but be aware of ...

  7. IDENTITY (Property) (Transact-SQL) - TechNet - Microsoft

    technet.microsoft.com/en-us/library/ms186775.aspx - Cached
    Creates an identity column in a table. ... Identity columns can be used for
    generating key values. ... This can result in gaps in the identity value upon insert.
    ... Reuse of values ? For a given identity property with specific seed/increment,
    the ...

  8. IDENTITY (Property) - TechNet - Microsoft

    social.technet.microsoft.com/Forums/en-US/.../identity-property - Cached
    17 Nov 2010 ... Efficiently Reuse Gaps in an Identity Column. http://www.sqlteam.com/article/
    efficiently-reuse-gaps-in-an-identity-column. bug again what you ...

  9. Primary key incremented even when insert fails. - MSDN - Microsoft

    social.msdn.microsoft.com/Forums/sqlserver/en.../action?... - Cached
    12 Aug 2009 ... http://weblogs.sqlteam.com/peterl/archive/2009/03/10/How-to-efficiently-reuse-
    gaps-in-identity-column.aspx. Thursday, August 13, 2009 1:55 ...

  10. The HOBT: The IDENTITY Property: A Much-Maligned Construct in ...

    thehobt.blogspot.com/2009/.../identity-property-much-maligned.html - Cached
    28 Jan 2009 ... Identity columns do not serialize inserts ? custom written ... Again, I understand
    that there are some applications for which gaps simply ... Or perhaps sequencing
    functions aren't quite as efficient in other RDBMS's. ... At the same time some
    developers demanded that we carefully re-use deleted IDs in tables ...

  11. SQL Server find first gap between ID key fields - Stack Overflow

    stackoverflow.com/.../sql-server-find-first-gap-between-id-key-fields - Cached
    That's why gap reusing would be wonderful for me. ... If you have a numeric ids,
    use identities and don't worry about gaps unles you have some specific ...
    GetFirstIdInGap_2 @table SYSNAME, @column SYSNAME AS BEGIN SET
    NOCOUNT ON; ... And I guess it is much more efficient than mine, isn't it?

  12. sql - How do I get first unused ID in the table? - Stack Overflow

    stackoverflow.com/.../how-do-i-get-first-unused-id-in-the-table - Cached - Similar
    If you have multiple users, the time gap between running Quassnoi's query ...
    Real world, you'd not want to go back and re-use an ID that had already been
    used, or skipped. ... So the right thing to do is to create a sequence or identity
    column in .... How to efficiently get a random row out of a massive table?

  13. Creating a table to store sequence numbers - Beyond Relational

    beyondrelational.com/.../sqlserver-quiz-general-2010-dinesh-asanka- populating-a-table-with-default-values.aspx - Cached
    20 Oct 2010 ... Peter explained this in http://www.sqlteam.com/article/efficiently-reuse-gaps-in-an
    -identity-column. Method 2: Maintaining an another table with ...

  14. MS SQL Server :: Filling The Gap Identity Columns - BigResource

    www.bigresource.com/MS_SQL-Filling-the-gap-Identity-columns-JtvHr8Jg. html - Cached
    I do not want to re-use the already used Identity value. I just want to ... gaps in the
    sequence etc. so would it be less efficient for me to calculate the field than ...

  15. Using generators to create unique row IDs - Firebird

    www.firebirdsql.org/manual/generatorguide-rowids.html - Cached - Similar
    Can you re-use generator values? ... will likely see gaps in a per-table ID
    sequence, since generator values are spread throughout all tables. With the ?one
    for ...

  16. Mapper Configuration ? SQLAlchemy 0.9 Documentation

    docs.sqlalchemy.org/en/latest/orm/mapper_config.html - Cached
    from sqlalchemy import Table, MetaData, Column, ForeignKey, Integer, String ......
    The identity of an AddressUser object will be in terms of these two values, and is
    ... less efficient than that which would be produced by direct query construction.
    .... with a Session, it is possible to re-use the data from a previous transaction).

  17. Filling The Gap Identity Columns - Forum Array

    forumarray.com/filling-the-gap-identity-columns-821132 - Cached
    So just want to ask whats the largest number record id (identity) column can hold
    and in ASP.NET which data ... I have a column where the value is equivalent to
    my identity column's value. For an example, I ..... Reuse Numbers In Identity
    Column ..... I'm doing this for hundreds of rows so I need an efficient way to do
    that.

  18. FBI ? IT Strategic Plan, 2010-2015

    www.fbi.gov/about-us/itb/it-strategic-plan-2010-2015 - Cached - Similar
    Our customers, the agents and analysts in the field and headquarters, expect us
    to ... NGW will equip FBI users with new and efficient ways to communicate and
    .... Additional strategic gaps identified the need for additional digital forensics ...
    and for FBI's biometrics to evolve the legacy identity systems to a multi-modal ...

  19. Generate a set or sequence without loops ? part 1

    www.sqlperformance.com/2013/01/t-sql-queries/generate-a-set-1 - Cached
    16 Jan 2013 ... I'm not talking about a persisted IDENTITY column (or the new ... So there is a
    need to fill those gaps with the dates that are not present in the data. ... this is out
    there, and how tempting it might be to just re-use code you come across. .... has
    functions for generating series, that is extremely fast and efficient.

  20. [PDF] 

    ALAE: Accelerating Local Alignment with Affine Gap Exactly - VLDB ...

    vldb.org/pvldb/vol5/p1507_xiaochunyang_vldb2012.pdf - Cached
    an accurate and efficient algorithm for evaluating local-alignment ... to prune
    meaningless calculations and an algorithm for reusing ..... for the 5-th column
    must be 3, but the calculated MX (1, 5) = 1. .... Since there is an identity mapping
    be-.

[SQL Server] Using REPLACE in an UPDATE statement

  1. Using REPLACE in an UPDATE statement - SQLTeam.com

    www.sqlteam.com/article/using-replace-in-an-update-statement - Similar
    31 Mar 2010 ... This article covers using the REPLACE function to selectively replace text inside
    a string in SQL Server. The REPLACE function is easy to use ...

  2. sql server 2005 - How to update a part of the string using replace ...

    stackoverflow.com/.../how-to-update-a-part-of-the-string-using-replace- function-in-tsql - Cached
    Hi I have a column of nvarchar(1000) type. I need to get rid of encode ... This will
    replace in the entire column. REPLACE(MyColumn, '&', '&').

  3. SQL Update Replace statement - Stack Overflow

    stackoverflow.com/questions/9525184/sql-update-replace-statement - Cached
    I need to write a sql update statement using REPLACE. The string looks like 'SE*
    88*000000001'. I need to replace the number between the two ...

  4. tsql - T-SQL String replace in Update - Stack Overflow

    stackoverflow.com/questions/4350482/t-sql-string-replace-in-update - Cached
    I need to update the values so that @domain2 should be replaced to @ ...
    Replacing a string using SQL Server Replace function - string has ...

  5. Using REPLACE in a UPDATE statement - Dev Shed

    forums.devshed.com/...sql.../using-replace-in-a-update-statement-479993. html - Cached - Similar
    Using REPLACE in a UPDATE statement- Firebird SQL Development. Visit Dev
    Shed to discuss Using REPLACE in a UPDATE statement.

  6. How to use REPLACE() within NTEXT columns in SQL Server ...

    www.sidesofmarch.com/.../how-to-use-replace-within-ntext-columns-in-sql- server/ - Cached - Similar
    27 Feb 2008 ... If you're using SQL 2000, you're out of luck, as NVARCHAR(max) first .... SQL
    UPDATE syntax with a replace on a column of type ntext, ...

  7. using a sql statement to do a string replace - Velocity Reviews

    www.velocityreviews.com/.../t62926-using-a-sql-statement-to-do-a-string- replace.html - Cached - Similar
    Is there an update statement that will let me go through the table an replace
    myServer with newServer in all the URLs (and leave the rest of the

  8. mysql - Why would an UPDATE SET REPLACE() statement match ...

    dba.stackexchange.com/.../why-would-an-update-set-replace-statement-match -rows-but-change-none-and-give - Cached
    Why would an UPDATE SET REPLACE() statement match rows, but change ... I'
    m seeking a certain string in a field and want to replace it with...

  9. SQL statement for replace/update a stringvalue in an Oracle table ...

    ask.sqlservercentral.com/.../sql-statement-for-replaceupdate-a-stringvalue-in-a .html - Cached
    0. Please use replace in Oracle, can be done in one update statement. ... we can
    help you better if you are using SQL Server. Any chance of ...

  10. Query to use update statement with Replace function in SQL Server ...

    www.aspdotnet-suresh.com/.../query-to-use-update-statement-with.html - Cached
    12 Jun 2012 ... In previous posts I explained Replace function example and Substring function
    example in SQL Server and many more articles relating to SQL ...

  11. Using REPLACE in an UPDATE statement - Ashish's Blog

    www.ashishblog.com/blog/using-replace-in-an-update-statement/
    30 Nov 2011 ... doing a search and replace in SQL is not radically difficult. You basically do an
    update using the replace() function.

  12. SQL SERVER ? UPDATE From SELECT Statement ? Using JOIN in ...

    blog.sqlauthority.com/.../sql-server-update-from-select-statement-using-join- in-update-statement-multiple-tables-in-update-statement/ - Cached
    30 Apr 2013 ... As you can see that using JOIN clause in UPDATE statement it makes it very
    easy to ... Eg. UPDATE Table SET Col1 = REPLACE(Col1, '.', ' ')

  13. Replacing part of field data of table with another string using SQL

    www.plus2net.com/sql_tutorial/replace.php - Cached - Similar
    We know how to change data inside a field by using update command inside a
    query. Here we will try to learn how to replace part of the data without changing ...

  14. How to Find and Replace Text in MySQL Database using SQL ? My ...

    www.mydigitallife.info/how-to-find-and-replace-text-in-mysql-database- using-sql/ - Cached
    23 Apr 2007 ... How to Find and Replace Text in MySQL Database using SQL ... update
    client_table set company_name = replace(company_name, 'Old ...

  15. update using replace function - Dbasupport.com

    www.dbasupport.com/.../showthread.php?26372-update-using-replace... - Cached
    Data was entered using dashes. eg 617-123-4567 I want to get rid of the dashes
    ... dashes but how can I use this function in an update statement.

  16. replace considerations for SQL

    pic.dhe.ibm.com/infocenter/rbdhelp/.../regl_data_sql_replace.html - Cached
    Use a get statement (with the forUpdate option) to retrieve the row. ...
    sqlStatement: An embedded SQL UPDATE statement to replace the implicit SQL
    UPDATE ...

  17. SQL UPDATE Statement - W3Schools

    www.w3schools.com/sql/sql_update.asp - Cached - Similar
    SQL UPDATE Example. Assume we wish to update the customer "Alfreds
    Futterkiste" with a new contact person and city. We use the following SQL
    statement...

  18. Changing part of a string in SQL Server using REPLACE | Victoria ...

    victoriayudin.com/.../changing-part-of-a-string-in-sql-server-using-replace/ - Cached
    11 Mar 2013 ... Using REPLACE in SQL Server, you can quickly update the account names to
    reflect the correct department name. If you want to preview what ...

  19. Running a SQL query to replace certain characters in a table ...

    www.webmasterworld.com/databases_sql_mysql/3216875.htm - Similar
    running a sql query to replace certain characters in a table. ... have a database
    that contains many characters and symbols we no longer want (or that we need
    to replace with something else). ... UPDATE Product_Descriptions

  20. OraFAQ Forum: SQL & PL/SQL ? update using replace function

    www.orafaq.com/forum/t/170809/0/ - Cached
    I have a table called email that contains a field called email. I have a few records
    in the table that contain example@hotmial.com and want to ...

[Articles] Great IT Shops

[Articles] Great IT Shops


Great IT Shops

Posted: 29 Aug 2013 11:00 PM PDT

Do you work in a great IT shop? Steve Jones talks about some of the things that make one and wonders if you feel you work at a great company.

[SQL Server] Handling SQL Server Errors

  1. TRY...CATCH (Transact-SQL) - TechNet - Microsoft

    technet.microsoft.com/en-us/library/ms175976.aspx - Cached
    Implements error handling for Transact-SQL that is similar to the exception ...
    Errors that have a severity of 20 or higher that stop the SQL Server Database ...

  2. Error Handling in SQL Server ? a Background

    www.sommarskog.se/error-handling-I.html - Cached
    Error Handling in SQL 2000 ? a Background. An SQL text by Erland Sommarskog
    , SQL Server MVP. Last revision 2009-11-29.

  3. Handling SQL Server Errors in Nested Procedures - CODE Magazine

    www.code-magazine.com/Article.aspx?quickid=0305111 - Cached - Similar
    Handling SQL Server Errors in Nested Procedures. Basic error handling in SQL
    Server's programming language, Transact-SQL, is straightforward.But when you
     ...

  4. Using TRY?CATCH to Handle SQL Server Errors - About Databases

    databases.about.com/od/sqlserver/a/try_catch.htm - Cached - Similar
    The TRY?CATCH statement in Transact-SQL allows you to detect and handle
    error conditions gracefully within your database applications. This statement is ...

  5. SQL SERVER ? 2005 ? Explanation of TRY?CATCH and ERROR ...

    blog.sqlauthority.com/.../sql-server-2005-explanation-of-trycatch-and-error- handling/ - Cached - Similar
    11 Apr 2007 ... SQL Server 2005 offers a more robust set of tools for handling errors than in
    previous versions of SQL Server. Deadlocks, which are virtually ...

  6. Exception Handling in SQL Server Stored Procedure with TRY ...

    www.codeproject.com/.../Exception-Handling-in-SQL-Server-Stored- Procedure - Cached
    17 Jul 2013 ... Here, I will explain how to handle exceptions in SQL Server or exception
    handling in SQL Server for stored procedure by using try catch or error ...

  7. SQL Server Transactions and Error Handling - CodeProject

    www.codeproject.com/.../SQL-Server-Transactions-and-Error-Handling - Cached
    1 Jul 2003 ... SQL Server Transactions and Error Handling; Author: Saumendra Poddar;
    Updated: 2 Jul 2003; Section: Database; Chapter: Database; ...

  8. Handling SQL Server Errors - SQLTeam.com

    www.sqlteam.com/article/handling-sql-server-errors - Similar
    5 Apr 2010 ... This article covers the basics of TRY CATCH error handling in T-SQL introduced
    in SQL Server 2005. It includes the usage of common ...

  9. Error Handling in SQL Server Stored Procedures - Stack Overflow

    stackoverflow.com/.../error-handling-in-sql-server-stored-procedures - Cached
    I have a fairly complex SP (logic wise) with nested IF BEGIN END ... In order to be
    able to do a rollback , you need to do a begin transaction at the ...

  10. What is the best practice use of SQL Server T-SQL error handling ...

    stackoverflow.com/.../what-is-the-best-practice-use-of-sql-server-t-sql-error- handling - Cached - Similar
    We have a large application mainly written in SQL Server 7.0, where ... You
    should read this: http://www.sommarskog.se/error-handling-I.html.

  11. SQL Server Error Handling Tips

    www.mssqltips.com/sql-server-tip-category/79/error-handling/ - Cached
    Error Handling Tips. Raiserror. Using the NOWAIT option with the SQL Server
    RAISERROR statement. Throw. SQL Server 2012 Throw Statement Introduction.

  12. Error handling in Database Backup using Sql Server ( error number ...

    stackoverflow.com/.../error-handling-in-database-backup-using-sql-server- error-number-3013 - Cached
    I am attempting a database backup using the following code : ... possible
    duplicate of How to handle multiple errors The BACKUP command is ...

  13. Error handling in sql server Part 56 - YouTube

    www.youtube.com/watch?v=VLDirfx_OQg6 Oct 2012 - 18 min - Uploaded by kudvenkat
    In this video we will lean about handling errors in sql server 2005, 2008 and 20012. Error ...
  14. ODBC Sql Server error handling - Perl Monks

    www.perlmonks.org/?node_id=1049307 - Cached
    13 Aug 2013 ... sub ErrorHandler { my ($sqlstate, $msg, $nativeerr) = @_; # Strip out all of the
    driver ID stuff $msg =~ s/^(\[[\w\s:]*\])+//; print $msg; print ...

  15. Tip (SQL Server): Error Handling in a Stored Procedure

    www.novicksoftware.com/.../tips-erorr-handling-in-a-stored-procedure.htm - Cached
    Tip (SQL Server): how to handle errors in a stored procedure.
  16. SQL Server 2012: Transact-SQL Error Handling - Online Training ...

    pluralsight.com/training/.../sqlserver-transact-sql-error-handling - Cached
    21 Aug 2013 ... SQL Server 2012: Transact-SQL Error Handling. Learn how to write Transact-
    SQL code that deals correctly with anticipated and unanticipated ...

  17. New Course: SQL Server 2012: Transact-SQL Error Handling | the ...

    blog.pluralsight.com/.../new-course-sql-server-2012-transact-sql-error- handling/ - Cached
    21 Aug 2013 ... Joe Sack of SQLskills has just published a new course: SQL Server 2012:
    Transact-SQL Error Handling Robust Transact-SQL coding practices ...

  18. SQL Server Exception Handling by TRY?CATCH - Dot Net Tricks

    www.dotnet-tricks.com/.../sqlserver/O3P3120412-SQL-Server-Exception- Handling-by-TRY?CATCH.html - Cached
    25 Sep 2012 ... Like C#, SQL Server also has an exception model to handle exceptions and
    errors that occurs in T-SQL statements. To handle exception in Sql ...

  19. Handling Errors in SQL Server 2012 - Simple Talk

    https://www.simple-talk.com/sql/.../handling-errors-in-sql-server-2012/ - Cached
    3 Jan 2013 ... The error handling of SQL Server has always been somewhat mysterious. Now at
    last, the THROW statement has been included in SQL Server ...

  20. SQL Server 2008 error handling best practice - Anthony Bloesch's ...

    blogs.msdn.com/b/.../sql-server-error-handling-best-practice.aspx - Cached - Similar
    10 Mar 2009 ... Error handling in SQL Server 2008 needs careful implementation. The Microsoft ?
    Oslo? Repository's API has the further problem that we cannot ...

[SQL Server] Using Dynamic SQL in Stored Procedures

  1. Building Dynamic SQL In a Stored Procedure - CodeProject

    www.codeproject.com/.../Building-Dynamic-SQL-In-a-Stored-Procedure - Cached
    9 Oct 2007 ... A dynamic SQL in a stored procedure is a single Transact-SQL statement or a set
    of statements stored in a variable and executed using a SQL ...

  2. Using Dynamic SQL in Stored Procedures - SQLTeam.com

    www.sqlteam.com/article/using-dynamic-sql-in-stored-procedures
    7 Mar 2011 ... Dynamic SQL allows stored procedures to ?write? or dynamically generate their
    SQL statements. The most common use case for dynamic SQL ...

  3. Using Dynamic SQL Statements in Stored Procedures ...

    www.4guysfromrolla.com/webtech/102300-1.shtml - Cached - Similar
    23 Oct 2000 ... We've all likely created ASP pages that contain dynamic SQL statements within
    the ASP pages... SQL statements that are constructed on the fly, ...

  4. Why you want to avoid Dynamic SQL in stored procedure? - DBA ...

    dba.stackexchange.com/.../why-you-want-to-avoid-dynamic-sql-in-stored- procedure - Cached
    up vote 4 down vote. There is nothing wrong with using dynamic SQL if you must.
    ... Conditional compilation of SQL Server stored procedure.

  5. Dynamic SQL Stored procedure - MSDN - Microsoft

    social.msdn.microsoft.com/.../sqlserver/.../action?...dynamic-sql-stored- procedure - Cached
    13 Oct 2012 ... I am trying to write a dynamic SQL stored procedure. I am not successful in doing
    so. I am new to this so please kindly help. Below is my Stored ...

  6. Dynamic SQL and stored procedure optimization - Stack Overflow

    stackoverflow.com/.../dynamic-sql-and-stored-procedure-optimization - Cached
    I've read that using Dynamic SQL in a stored procedure can hurt performance of
    your stored procedures. I guess the theory is that the store ...

  7. SQL injection: Dynamic SQL within stored procedures - The What ...

    https://blogs.msdn.com/.../sql-injection-dynamic-sql-within-stored-procedures .aspx - Cached
    5 Sep 2007 ... SQL injection: Dynamic SQL within stored procedures ... This is in spite of using
    parameterized input in data access code to call the stored ...

  8. The curse and blessings of dynamic SQL

    www.sommarskog.se/dynamic_sql.html - Cached - Similar
    In the introduction, I presented various strategies for data-access for an
    application, and I said that ...

  9. Coding Dynamic SQL Statements - Oracle Documentation

    docs.oracle.com/cd/B10500_01/appdev.920/.../adg09dyn.htm - Cached
    For example, dynamic SQL lets you create a procedure that operates on a table
    ... "A Dynamic SQL Scenario Using Native Dynamic SQL"; "Choosing Between
    Native ..... to native dynamic SQL inside PL/SQL stored procedures and functions.

  10. Database - Advanced Stored Procedures Cursors and Dynamic SQL ...

    www.youtube.com/watch?v=B9zKi8H_IUs5 Feb 2013 - 13 min - Uploaded by Ron Eaglin
    A demonstration of using cursors and dynamic SQL to solve more complex reporting and ...
  11. Dynamic SQL

    www.benkotips.com/pages/DynamicSQL.aspx - Cached
    Dynamic SQL vs. Stored Procedures. The purist DBA view will point out that
    using stored procedures would be better because of the advantages they provide
    .

  12. Generate dynamic SQL statements in SQL Server - TechRepublic

    www.techrepublic.com/.../generate-dynamic-sql-statements-in-sql-server/ - Cached
    10 Mar 2008 ... While these stored procedures can be made to take into account every ....
    Although I am not a huge fan of using dynamic SQL statements, ...

  13. Dynamic SQL Examples - SQLUSA

    sqlusa.com/bestpractices/training/scripts/dynamicsql/ - Cached
    Stored procedure with dynamic SQL WHILE loop. 4. Dynamic SQL with using
    parent's #temptable. 5. Dynamic SQL for dynamic PIVOT query. 6. Dynamic
    stored ...

  14. Execute Dynamic SQL commands in SQL Server - MSSQLTips.com

    www.mssqltips.com/sqlservertip/.../execute-dynamic-sql-commands-in-sql- server/ - Cached
    15 Oct 2012 ... Look into using dynamic SQL in your stored procedures by employing one of the
    three techniques above instead having the code generated ...

  15. Stored procedure - Wikipedia, the free encyclopedia

    en.wikipedia.org/wiki/Stored_procedure - Cached - Similar
    Also, some DBMSs will check the parameter's type. A stored procedure that in
    turn generates dynamic SQL using ...

  16. Speed Test: Dynamic SQL vs Stored Procedures :: BlackWasp ...

    www.blackwasp.co.uk/SpeedTestSqlSproc.aspx - Cached - Similar
    25 May 2008 ... Two options are dynamically-generate SQL statements and stored procedures.
    Does either ... By using the site you accept the cookie policy.

  17. Permissions With Dynamic SQL Within Stored Procedure : The ...

    forums.asp.net/t/next/1017556 - Cached
    I have a CLR stored procedure which does some dynamic SQL building based
    on values sent in via XML. It's a CLR stored procedure using ...

  18. Using Dynamic Sql Stored Procedure | Teradata Developer Exchange

    forums.teradata.com/forum/.../using-dynamic-sql-stored-procedure - Cached - Similar
    Hi ,I am trying to write a dynamic sql using Stored procedure wherein I am using
    the underlying table as one of the input parameters.Below is the SP which I am ...

  19. Dynamic SQL versus stored procedures - Sybase

    infocenter.sybase.com/help/topic/com.sybase.../X80489.htm - Cached - Similar
    Step 5: Deallocate the prepared statement Chapter 9: Using Directory Services.
    Chapter ... There are similarities between dynamic SQL and stored procedures:.

  20. MySQL :: Using dynamic SQL in Informix's stored procedure..

    forums.mysql.com/read.php?64,548,548 - Cached - Similar
    9 Aug 2004 ... hi, i want to create a procedure in informix in which table name is in a variable (
    strTable) and i want to retrieve the records from that table.

[SQL 2012] Date time Query

[SQL 2012] Date time Query


Date time Query

Posted: 30 Aug 2013 03:34 AM PDT

I want to add a condition for date time range of yesterday 3pm . Basically I want to write something like below SELECT * FROM abc WHERE DATETIME between 'Yesterday 3pm' and 'Today 2:59pm'Please help me to add the date time code for the above.

Sql Server 2012 performance

Posted: 29 Aug 2013 07:21 AM PDT

Our Server1 Db is running on SQL server 2008, and the server has 2 processors, 2.67 GHz , 60 GB memory, 64 bit operating System, Windows server 2008 R2, Enterprise.The Server2 server Db is running SQL server 2012, and the server is 2 GHz 2 processors, 128 DB memory, 64 bit Operating System, Windows server 2008 R2, Enterprise.They are both on the same network and use SAN drives with similar performance capacity.The CPU_Count used on Server2 is 32, while it is 24 on production.They both have the same database, as we restored the db on server2 from server1 db.We have very large difference in the time taken to run an ETL on the two servers. It takes 6-7 hrs on server1, while it takes 24-28 hrs on server2Both are running the same code, and processing the same amount of data. We have run several rounds of this ETL on both servers, but the timing is still the same.We were expecting it to take much less on the more robust server2 with latest version SQL. What can we look at to improve performance on server2.

Upgrade SQL Server 2012 from 2008 R2

Posted: 30 Aug 2013 01:50 AM PDT

I have a new Server with Windows Server 2012 installed.I'm going to install SQL Server 2012 Enterprise Edition.I have some SQL Server 2008 R2 Databases which I want upgrade to 2012.Can I upgrade without installing 2008 R2 on the new Server?If I take the backup and perform a restore what else do I need to do to in addition to setting the compatibility mode?Any input would be greatly appreciated.

Unable to see User Databases in SSMS

Posted: 29 Aug 2013 04:46 PM PDT

Hi, need helpI set db_datareader role to the Security Login Group for the User Database in SQL2012 instance on Virtual Machine.This Group cannot see this database in 2008 SSMS under Databases. The only way they can see this database if I would assign this Group a sysadmin role.The same group does not have any problems to see another User database in 2008 SSMS from another SQL2012 Server with the same role.This 2nd one is an actual Server (not Virtual Machine) that is probably not a relevant information.Both Servers have the same version of Windows (Windows 2012) and SQL Server (SQL Server 11.0.3128)Any help would be greatly appreciated.Thank you Alex

SQL 2012 AlwaysOn failover/failback

Posted: 30 Aug 2013 01:04 AM PDT

I'm looking into using SQL 2012 AlwaysOn for DR purposes in our shop and don't find much information on the failback process. Can anyone comment on the failback process or point me to a good link? Is failback exactly the same as failover? I assume there must be some process to run to resync the servers before failing back. This is primarily what I am interested in knowing more about. For example, node 1 fails and it fails over to node 2. it takes a week to repair node 1 (or recover from a true disaster). Now we have a weeks worth of data to mirror back to node 1 before failing back. Is this built in to the failback process? How is this managed and how do you check the state of the mirroring? I would also be interested to hear any general comment, good or bad, tips, tricks, gotchas that anyone has with AlwaysOn. Many thanks!

Close existing connections

Posted: 29 Aug 2013 07:51 AM PDT

While attempting to use SSMS to do a "database" restore I am unable to select "Close existing connections to destination database" on the options page of the restore wizard. In the past I have been able to use this. All of my server except one are now like this. Any ideas what I have done to cause this?[img]http://www.sqlservercentral.com/Forums/Attachment14256.aspx[/img]

Backup / Restore user with minimum permissions

Posted: 29 Aug 2013 07:11 PM PDT

I would like to create a user (SQL Auth. or Windows Auth., doesn't matter) which is only able to backup and restore one or more (but not all) database(s) using SSMS. The user should not be able to do anything else on the SQL server, it should have a minimum set of permissions. Basically i want to create a sort of "backup operator" user which can backup/restore specific databases on the SQL server without being able to do anything else. So far i only found "solutions" for SQL server 2008 or 2005, but unfortunately those "solutions" don't work with SQL server 2012 anymore, apparently because of changes to the permissions/server roles in SQL 2012.The main problem is, that to execute the RESTORE command, the user must have either sysadmin or dbcreator server roles or be the owner (dbo) of the database (the database role db_owner is not enough, it doesn't include the RESTORE permission). I don't want the user to have any of those three permissions/server roles because these permission allow the user to do way more than just backup/restore. sysadmin is out of the question (you can do practically anything with that permission), dbcreator is out of the question (as you can create, alter and drop ANY database with that permission) and the owner of the database should be sa and nobody else.Apparently it is not possible to specifically give a user the RESTORE permission, because there simply is no such permission. The RESTORE permission is only "part" of sysadmin, dbcreator or the dbo and can't be "assigned" to any other server/database role or user.Has anybody implemented such a "back operator user" with SQL 2012 before? Right now i'm completely stuck in implementing this, and i see no way of doing this with SQL 2012.

USERSTORE_TOKENPERM is Huge

Posted: 29 Aug 2013 04:36 AM PDT

I'm having problems with my USERSTORE_TOKENPERM cache becoming growing. When I came in this morning it was 2.4 gb and was actually larger than my buffer pool. I cleared it out and an hour later it is already back up to 1.8 gb. All the information I can find talks about sql server 2005 and it sounds like this was supposed to be fixed long ago. Below is the token class that is taking up the most space. Anyone have any ideas?TokenCount Token Name Class SubClass167214 TokenAccessResult 65535 0

Search This Blog