With ASA 9.0.2, is there a way to use: SELECT ColName INTO #temp FROM ExistingTable but give #temp the NOT TRANSACTIONAL quality, as if it were declared with this: DECLARE LOCAL TEMPORARY TABLE #temp(ColName) NOT TRANSACTIONAL

asked 31 Mar '14, 19:33

Paul%20Moore's gravatar image

Paul Moore
61123
accept rate: 0%


I am fairly certain the answer is "no, not for ASA 9.0.2, not for SQL Anywhere 16, not for any version".

...which is too bad, because SELECT ... INTO #temp is such an incredibly powerful construction... because you don't have to explicitly define data types... you can even use SELECT * to create a table without specifying the columns AT ALL; e.g.,

SELECT * INTO #t FROM rowgenerator CROSS JOIN dummy;

Powerful, yes, but apparently folks aren't lining up to demand NOT TRANSACTIONAL for it :)

permanent link

answered 31 Mar '14, 21:03

Breck%20Carter's gravatar image

Breck Carter
32.5k5417261050
accept rate: 20%

edited 31 Mar '14, 21:08

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×27
×8

question asked: 31 Mar '14, 19:33

question was seen: 1,983 times

last updated: 31 Mar '14, 21:08