Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Sybase > Select into pro...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 5 Topic 2390 of 2504
Post > Topic >>

Select into problem

by tijgertje <griet.schauwers@[EMAIL PROTECTED] > Jan 30, 2008 at 02:24 AM

Hi,

I have a problem concerning the select into statement.
I have created a procedure that contains dynamic sql, which creates a
variable number of columns.

The sql looks like :

@[EMAIL PROTECTED]
 = 'select columnA, columnB, columnC,.... into #t from.....'
execute(@[EMAIL PROTECTED]
)
select * from #t

#t is nowhere defined as I cannot predict the number of columns nor
their data types.

The first time I launch the procedure it gives correct results.
However if i launch the procedure again with different arguments
( creating more, or less columns with different column names ) the
definition of #t does not change.

It seems that when the procedure ends it does not free up #t

Thanks in advance for some suggestions!
Griet
 




 5 Posts in Topic:
Select into problem
tijgertje <griet.schau  2008-01-30 02:24:21 
Re: Select into problem
Manish Negandhi <negan  2008-01-30 03:01:27 
Re: Select into problem
tijgertje <griet.schau  2008-01-30 06:03:09 
Re: Select into problem
bret@[EMAIL PROTECTED]   2008-01-30 09:04:24 
Re: Select into problem
tijgertje <griet.schau  2008-01-31 07:15:53 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan13V112 Sun Jul 6 18:07:27 CDT 2008.