Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Select into FOR large row

Status
Not open for further replies.

sow12

MIS
Apr 25, 2008
6
US
Hello:

I have row number with more than 400 rows. I use select into statement. It only allow 175 rows to get copied into Tem_Table. How to get all rows copied when create new table?

select id, code into Tem_table from Name where code = '11'

Your help is highly appreciated.
 
It should work.

Try
Code:
select count(*) from [Name] where code = '11'

select id, code into #temp_Table from [Name] where code = '11'

print @@rowcount
 
I'm guessing that there are only 175 rows where code = '11'.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top