x

open view

Is there any differnce between open view and select * from view ?
more ▼

asked Oct 02 '12 at 01:49 PM in Default

neeehar gravatar image

neeehar
80 3 4 6

(comments are locked)
10|1200 characters needed characters left

1 answer: sort voted first
There is no T-SQL syntax support for OPEN VIEW. You can use the SQL Server Management Studio to issue a command that is running "SELECT * FROM view" in the background.
more ▼

answered Oct 02 '12 at 04:31 PM

Grant Fritchey gravatar image

Grant Fritchey ♦♦
90.4k 19 21 74

Thanks a lot Grant.The reason I asked this question is I am trying to copy information from a column and paste it in a tool called 7edit(tool for reading hl7 messages). If I copy date from a physical table or a view the 7edit tool wont parse the string.But If I copy information from open view command then 7edit dosent give any problem. So, I was a bit curious.
Oct 05 '12 at 03:34 PM neeehar
Sounds like the difference in output. You can try varying the results from a query too. There's a button at the top that will change the output to text instead of a grid. Experiment a little.
Oct 06 '12 at 01:15 PM Grant Fritchey ♦♦
Differnce in output may be the issue. I tried output to text to but only if i copy from an open view then it works..sql server is sometimes funny..
Oct 09 '12 at 04:02 PM neeehar
(comments are locked)
10|1200 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

New code box

There's a new way to format code on the site - the red speech bubble logo will automatically format T-SQL for you. The original code box is still there for XML, etc. More details here.

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

SQL Server Central

Need long-form SQL discussion? SQLserverCentral.com is the place.

Topics:

x1933
x30

asked: Oct 02 '12 at 01:49 PM

Seen: 476 times

Last Updated: Oct 10 '12 at 10:58 AM