Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.databases.ms-sqlserver > #302
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!aioe.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Erland Sommarskog <esquel@sommarskog.se> |
| Newsgroups | comp.databases.ms-sqlserver, microsoft.public.sqlserver.programming |
| Subject | Re: SSE 2008: Table Parameters |
| Followup-To | comp.databases.ms-sqlserver |
| Date | Sat, 07 May 2011 11:51:39 +0200 |
| Organization | Erland Sommarskog |
| Lines | 38 |
| Message-ID | <Xns9EDE78A7A35F9Yazorman@127.0.0.1> (permalink) |
| References | <unr8s65naj0l34l6vqr6s28esiur3n8ffv@4ax.com> <p4t8s6tl8dk779p73l01r81iv6da7de9p5@4ax.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=windows-1252 |
| Content-Transfer-Encoding | 8bit |
| Injection-Info | mx02.eternal-september.org; posting-host="DD6dU+BfJNjsjSP4/K/V7w"; logging-data="25611"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19ML7ak3VqnF5iquTmvhS3N" |
| User-Agent | Xnews/2006.08.24 Mime-proxy/2.1.c.0 (Win32) |
| Cancel-Lock | sha1:2upROJeawhripEUcxSMa7AIgiMo= |
| Xref | x330-a1.tempe.blueboxinc.net comp.databases.ms-sqlserver:302 |
Cross-posted to 2 groups.
Followups directed to: comp.databases.ms-sqlserver
Show key headers only | View raw
Gene Wirchenko (genew@ocis.net) writes: > On Fri, 06 May 2011 15:00:39 -0700, Gene Wirchenko <genew@ocis.net> > wrote: >> I have been digging into cursors. It appears that one can not > ^ and the like >>modify a cursor variable passed as a parameter. Being able to do so > ^^^^^^ >>would be very useful. What do you do when you need to modify a cursor > ^^^^^^ >>parameter? Or what is the workaround? > > Whoops! Read as "table". > > What do you do when you want to treat a cursor as a table? > > I want to build a cursor of data manipulating it with SQL > commands as I would a table and then update another table using the > cursor as a cursor. For your original question, I was about to answer that I don't use cursor variables or parameters. The fact that table-valued parameters are READONLY only makes them half as useful as they could have been. Or maybe only 30% as useful. I have an article on my web site that discusses a number of workarounds: http://www.sommarskog.se/share_data.html- I'm not sure that I understand your actual question, though. What do you mean with "treat a cursor as a table"? -- Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se Links for SQL Server Books Online: SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
Back to comp.databases.ms-sqlserver | Previous | Next — Previous in thread | Find similar
SSE 2008: Table Parameters Gene Wirchenko <genew@ocis.net> - 2011-05-06 15:00 -0700
Re: SSE 2008: Table Parameters Gene Wirchenko <genew@ocis.net> - 2011-05-06 15:33 -0700
Re: SSE 2008: Table Parameters Erland Sommarskog <esquel@sommarskog.se> - 2011-05-07 11:51 +0200
csiph-web