: In many real time scenarios when our database is interacting with the web application or so, we need to pass information to/from the database from/to the application. While updating/inserting such information into database, we usually pass it in the form of XML and also while getting it from the SP; we get it in [...]
Archive for February, 2009
Saving results of a stored procedure into a XML file
Posted in SQL Server on February 20, 2009 | 8 Comments »
SET FMTONLY ON (Useful in TSQL & SSIS packages for using temp tables)
Posted in SQL Server, SSIS on February 18, 2009 | 8 Comments »
As we talked earlier about ‘SET NOEXEC ON’ statement in TSQL which restricts the SQL batch statements to get executed but they only get parsed / complied. When we set NOEXEC as ‘ON’ then in the output we will get a message ‘Command completed successfully’; provided SQL statement(s) are correct else error message(s) will there. [...]
SET NOEXEC ON statement in TSQL (SQL Server 2005)
Posted in SQL Server on February 13, 2009 | 1 Comment »
When we execute any T-SQL statement(s) in SQL Server; it is accomplished by two processes: Compilation & then 2. Execution of the statement(s). Compilation phase is useful for validating the syntax and object names in Transact-SQL for executing them properly. If it finds some error in it, execution of that batch will not take place. [...]
“OnError” versus “OnTaskFailed” Event Handler in SSIS
Posted in SQL Server, SSIS on February 6, 2009 | 17 Comments »
There are lots of event/event handlers which we can make use of during the package execution. Among all those events/event handlers, two of them are very important for logging the custom errors; which may occur due to failure of some of the tasks of a package. We may be required to log such errors [...]
“OnVariableValueChanged” Event Handler in SSIS Package
Posted in SQL Server, SSIS on February 4, 2009 | 2 Comments »
In SSIS packages, we usually deal with many variables (system variables as well as user defined variables). We make use of these variables for certain calculations or for achieving the dynamic configurations. In case of dynamic configurations like file name/path for FTP connection manager or so, we create the variables and make them configurable using [...]