Last version of TOAD 5.7. I use SQL Server 2005 Advanced Express Edition in italian language with service pack 4.
I test this simple script :
if OBJECT_ID(‘dbo.T1’,‘U’) is not null
drop table dbo.T1;
create table dbo.T1(col1 int identity);
insert into dbo.T1 default values;
go 100
select * from dbo.T1;
I create a simple DB TEST_TOAD in execute this script on this DB.
I execute the script statement by statement. I select first,second,third and fourth and press F9.
First :
if OBJECT_ID(‘dbo.T1’,‘U’) is not null
drop table dbo.T1;
Second : create table dbo.T1(col1 int identity);
Third : insert into dbo.T1 default values;
go 100
Fourth : select * from dbo.T1;
When I execute the last script I obtain only one row with one record with value 1.
If I execute the same script in the same mode with SSMS in the last script I obtain a grid with 100 records.
Why this with TOAD ?
It’s normal ?
I stay tune for your answer.
Best regards.
Sergio Bertolotti