473,405 Members | 2,354 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

The name "xxxx" not permitted in the Context (insert) ???

Adithya Adi
I'm a beginner of SQL Server. I'm using SQL Server Management Studio Express.

I created table with 3 fields

Table Name = Add_Tax_Group
tax_id as int,
tax_nm as varchar(50),
tax_rate numeric(18,2)

(Primary Key Not set)

I created Procedure for the insertion--

create procedure add_txgrp
@tax_id as int,
@tax_nm as varchar(50)
as
insert into add_tax_group
values(tax_id,tax_nm)(@tax_id,@tax_nm)

But while executing in the database an error occurs, it shows

"Msg 128, Level 15, State 1, Procedure add_txgrp, Line 6
The name "tax_id" is not permitted in this context. Valid expressions are constants, constant expressions, and (in some contexts) variables. Column names are not permitted."

So could anyone help me how to solve this..
Dec 28 '11 #1
2 3747
Check your insert Query inside the Sp.

create procedure add_txgrp
@tax_id as int,
@tax_nm as varchar(50)
as
insert into Add_Tax_Group(tax_id,tax_nm) values(@tax_id,@tax_nm)
Dec 28 '11 #2
yup,, right!!,, thank you, :)
Jan 2 '12 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

23
by: raj | last post by:
I used to remember why c++ needed both ? Could somebody help me here ? For example class A{ f(); }; A* aa;
2
by: Hazzard | last post by:
I just realized that the code I inherited is using all asp.net server controls (ie. webform controls) and when I try to update textboxes on the client side, I lose the new value of the textbox when...
5
by: ad | last post by:
When I study the Portal Starter Kit (http://www.asp.net/Default.aspx?tabindex=8&tabid=47) There is a line in DesktopPortalBanner.ascx.cs PortalSettings portalSettings = (PortalSettings)...
6
by: Martin Eyles | last post by:
Hi, I have a page that contains the following <div runat="server" id="Pikea"> <object runat="server" id="PiTV" style="width:560px; height:560px"...
2
by: SonicChen | last post by:
i have read the article http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q318274 and try those two solutions but message still come: CS1595: "Runchs_WebUI.Global" is defined in multiple...
1
MMcCarthy
by: MMcCarthy | last post by:
Hi guys There is a question in the lounge that some of you may be able to help with. If so I'll try to get it moved. Just reply here if you want me to do so. ...
3
Lazandra
by: Lazandra | last post by:
I have a form, and if credit card details have been entered i want it to save in the field completed a "c". However if it doesnt have the credit card details i want it to save to the field completed...
6
by: =?Utf-8?B?UGF1bA==?= | last post by:
I am getting an "Access to the path "xxxx" is denied error. I believe is because the file that I am writing to programatically is being read/written to by another end user. These files have the...
1
by: JaganMohanRao | last post by:
i have create a table and inserted a values init. when i am getting the values it is throwing the exception "ERROR: column "dtype" of relation "xxxx" does not exist" where xxxx is table name. if...
1
by: \(O\)enone | last post by:
I've added a TabControl to my WinForms app, and added a couple of tabs to the control. The result is that the top strip of the TabControl contains the two tabs, and then to the right of them is...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.