![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I am using SQLCMD.EXE of SQL Server 2005 for the automation of my installation scripts. I wanted to make use of transactions when inserting data into the database during the installation but since there are several GO in between it was not possible without having to multiplicate the BEGIN/END TRANSACTION. |
|
3) Does the PRINT 'any message' gets automatically flushed to the output stream or do I always have to use GO after it to make sure it is flushed before continuing? I need to print these messages (and thus have the user read them) BEFORE the action is performed, if it remains in the cache then the user feedback is lost. I wanted to avoid having GO after a plain old PRINT. |
#3
| |||
| |||
|
|
I am using SQLCMD.EXE of SQL Server 2005 for the automation of my installation scripts. I wanted to make use of transactions when inserting data into the database during the installation but since there are several GO in between it was not possible without having to multiplicate the BEGIN/END TRANSACTION. |
|
3) Does the PRINT 'any message' gets automatically flushed to the output stream or do I always have to use GO after it to make sure it is flushed before continuing? I need to print these messages (and thus have the user read them) BEFORE the action is performed, if it remains in the cache then the user feedback is lost. I wanted to avoid having GO after a plain old PRINT. |
#4
| |||
| |||
|
|
I am using SQLCMD.EXE of SQL Server 2005 for the automation of my installation scripts. I wanted to make use of transactions when inserting data into the database during the installation but since there are several GO in between it was not possible without having to multiplicate the BEGIN/END TRANSACTION. |
|
3) Does the PRINT 'any message' gets automatically flushed to the output stream or do I always have to use GO after it to make sure it is flushed before continuing? I need to print these messages (and thus have the user read them) BEFORE the action is performed, if it remains in the cache then the user feedback is lost. I wanted to avoid having GO after a plain old PRINT. |
#5
| |||
| |||
|
|
I am using SQLCMD.EXE of SQL Server 2005 for the automation of my installation scripts. I wanted to make use of transactions when inserting data into the database during the installation but since there are several GO in between it was not possible without having to multiplicate the BEGIN/END TRANSACTION. |
|
3) Does the PRINT 'any message' gets automatically flushed to the output stream or do I always have to use GO after it to make sure it is flushed before continuing? I need to print these messages (and thus have the user read them) BEFORE the action is performed, if it remains in the cache then the user feedback is lost. I wanted to avoid having GO after a plain old PRINT. |
#6
| |||
| |||
|
|
I am using SQLCMD.EXE of SQL Server 2005 for the automation of my installation scripts. I wanted to make use of transactions when inserting data into the database during the installation but since there are several GO in between it was not possible without having to multiplicate the BEGIN/END TRANSACTION. |
|
3) Does the PRINT 'any message' gets automatically flushed to the output stream or do I always have to use GO after it to make sure it is flushed before continuing? I need to print these messages (and thus have the user read them) BEFORE the action is performed, if it remains in the cache then the user feedback is lost. I wanted to avoid having GO after a plain old PRINT. |
#7
| |||
| |||
|
|
I am using SQLCMD.EXE of SQL Server 2005 for the automation of my installation scripts. I wanted to make use of transactions when inserting data into the database during the installation but since there are several GO in between it was not possible without having to multiplicate the BEGIN/END TRANSACTION. |
|
3) Does the PRINT 'any message' gets automatically flushed to the output stream or do I always have to use GO after it to make sure it is flushed before continuing? I need to print these messages (and thus have the user read them) BEFORE the action is performed, if it remains in the cache then the user feedback is lost. I wanted to avoid having GO after a plain old PRINT. |
#8
| |||
| |||
|
|
I am using SQLCMD.EXE of SQL Server 2005 for the automation of my installation scripts. I wanted to make use of transactions when inserting data into the database during the installation but since there are several GO in between it was not possible without having to multiplicate the BEGIN/END TRANSACTION. |
|
3) Does the PRINT 'any message' gets automatically flushed to the output stream or do I always have to use GO after it to make sure it is flushed before continuing? I need to print these messages (and thus have the user read them) BEFORE the action is performed, if it remains in the cache then the user feedback is lost. I wanted to avoid having GO after a plain old PRINT. |
#9
| |||
| |||
|
|
I am using SQLCMD.EXE of SQL Server 2005 for the automation of my installation scripts. I wanted to make use of transactions when inserting data into the database during the installation but since there are several GO in between it was not possible without having to multiplicate the BEGIN/END TRANSACTION. |
|
3) Does the PRINT 'any message' gets automatically flushed to the output stream or do I always have to use GO after it to make sure it is flushed before continuing? I need to print these messages (and thus have the user read them) BEFORE the action is performed, if it remains in the cache then the user feedback is lost. I wanted to avoid having GO after a plain old PRINT. |
#10
| |||
| |||
|
|
I am using SQLCMD.EXE of SQL Server 2005 for the automation of my installation scripts. I wanted to make use of transactions when inserting data into the database during the installation but since there are several GO in between it was not possible without having to multiplicate the BEGIN/END TRANSACTION. |
|
3) Does the PRINT 'any message' gets automatically flushed to the output stream or do I always have to use GO after it to make sure it is flushed before continuing? I need to print these messages (and thus have the user read them) BEFORE the action is performed, if it remains in the cache then the user feedback is lost. I wanted to avoid having GO after a plain old PRINT. |
![]() |
| Thread Tools | |
| Display Modes | |
| |