Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8906263
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T02:36:30+00:00 2026-06-15T02:36:30+00:00

I am just trying to implement the following code sample on our SQL Server

  • 0

I am just trying to implement the following code sample on our SQL Server 2000 database:
http://support.microsoft.com/default.aspx?scid=kb;en-us;q248915

The problem appears when I try and create the “expand” stored procedure which produces the following errors:

Error code 156, SQL state S1000: Incorrect syntax near the keyword ‘INSERT’.
Error code 156, SQL state S1000: Incorrect syntax near the keyword ‘BEGIN’.
Error code 156, SQL state S1000: Incorrect syntax near the keyword ‘WHERE’.
Error code 156, SQL state S1000: Incorrect syntax near the keyword ‘WHERE’.
Error code 156, SQL state S1000: Incorrect syntax near the keyword ‘ELSE’.

It appears that I can’t create local temporary tables as the following SQL demonstrates:

CREATE TABLE #Yaks (YakID int,YakName char(30))

Error code 170, SQL state 37000: Line 1: Incorrect syntax near ‘TABLE’.

Does anybody have any idea why I can’t create temporary tables? Especially when article says the code applies to Microsoft SQL Server 2000.

Thanks

UPDATE: It appears this might be an issue with NetBeans SQL Editor as the query works fine when used within SQL Server Query Analyser.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T02:36:31+00:00Added an answer on June 15, 2026 at 2:36 am

    Turns out it was a bug within NetBeans itself, which has now been resolved:

    http://netbeans.org/bugzilla/show_bug.cgi?id=222617

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I´ve just started learning GWT and I´m trying to implement http://gwt.google.com/samples/Showcase/Showcase.html#!CwFileUpload and but failing
I'm trying to implement Matlab's rgb2gray in Java according to http://www.mathworks.com/help/toolbox/images/ref/rgb2gray.html . I have
I'm trying to implement the following code in a html document: $(function () {
Trying to implement following queries in NHibernate QueryOver. SQL SELECT SUM(GrossChargeAmount) FROM Charges INNER
I'm trying to implement the sample code to this article from 2002 (I know..),
Just trying to implement a simple audit logging solution with Grails 2.0.2 and it
Trying to implement 3-layer (not: tier, I just want to separate my project logically,
I'm trying to implement a tab menu just like the one in Stack Overflow.
I'm trying to implement a simple horizontal navigation menu that just shows a single
I'm trying to implement chained filter dropdown using just javascript - jquery. The solution

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.