Wrox Programmer Forums
|
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 29th, 2007, 08:09 PM
tal tal is offline
Authorized User
 
Join Date: Apr 2007
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Default OUTPUT keyword on 2000?


Hi all, help is needed!

I'm running this query:
"INSERT INTO location (x,y) OUTPUT INSERTED.Location_ID VALUES ("+x+","+y+")"

which works fine on my SQL EXPRESS 2005 (i get the id back, which is a must).
However, my server has SQL 2000, and when i try to run the query i get an exception:
" Line 1: Incorrect syntax near 'OUTPUT' "

Anyone knows a workaround
How can you run such a query on 2000

Thanks!!!


 
Old July 31st, 2007, 09:19 PM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

What are you trying to output, the values of x and y or the id of the location table?

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
Technical Editor for:
Professional Search Engine Optimization with ASP.NET

Professional IIS 7 and ASP.NET Integrated Programming

================================================== =========





Similar Threads
Thread Thread Starter Forum Replies Last Post
Search by Keyword Grafixx01 Access 10 May 31st, 2007 08:59 AM
The "New" Keyword rfarmer VB Components 1 August 16th, 2006 12:18 PM
Invaild use of Me keyword jakeone Beginning VB 6 3 September 28th, 2004 10:53 AM
this keyword RSteel C# 1 December 18th, 2003 04:33 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.