If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Perl and the DBI > DBI continuing execution after a warning/informational message

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-19-10, 13:29
aksaravanan aksaravanan is offline
Registered User
 
Join Date: Dec 2007
Posts: 2
DBI continuing execution after a warning/informational message

hi,
I am executing a restore database (MS SQL Server 2005) from perl dbi.

but restore stops after printing this message [Microsoft][ODBC SQL Server Driver][SQL Server]Processed 168 pages for database 'aks1', file 'DBA_Test' on file 1. (SQL-01000)

if run the restore database from sqlcmd, i get following output
Processed 17632 pages for database 'aks1', file 'DBA_Test_Kline' on file 1.
Processed 2 pages for database 'aks1', file 'DBA_Test_Kline_log' on file 1.
RESTORE DATABASE successfully processed 17634 pages in 15.656 seconds (9.226 MB/sec).


how can i make my dbi to continue executing after getting informational messages.

thanks
AK
Reply With Quote
  #2 (permalink)  
Old 01-20-10, 11:55
aksaravanan aksaravanan is offline
Registered User
 
Join Date: Dec 2007
Posts: 2
i changed prepare to include an option solved the problem
my $sth = $db->prepare( $sql, { odbc_exec_direct => 1})
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On