Click here to Skip to main content
15,914,014 members
Home / Discussions / Database
   

Database

 
GeneralRe: SQL Server config Pin
helelark1234-Aug-09 18:44
helelark1234-Aug-09 18:44 
AnswerRe: SQL Server config Pin
N a v a n e e t h4-Aug-09 17:52
N a v a n e e t h4-Aug-09 17:52 
GeneralRe: SQL Server config Pin
helelark1234-Aug-09 18:46
helelark1234-Aug-09 18:46 
QuestionThe ORA-01033: ORACLE initialization or shutdown in progress Pin
vikash_singh4-Aug-09 5:59
vikash_singh4-Aug-09 5:59 
AnswerRe: The ORA-01033: ORACLE initialization or shutdown in progress Pin
suresh.palghar1-Sep-09 23:31
suresh.palghar1-Sep-09 23:31 
QuestionLoading(Importing) Data into SQL Server 2005 Pin
sm_sadhik4-Aug-09 5:00
sm_sadhik4-Aug-09 5:00 
AnswerRe: Loading(Importing) Data into SQL Server 2005 Pin
i.j.russell5-Aug-09 11:42
i.j.russell5-Aug-09 11:42 
QuestionInvalid column name error? Pin
cdietschrun4-Aug-09 4:25
cdietschrun4-Aug-09 4:25 
Error: saving tester - TST-000-341 - item :: System.Data.SqlClient.SqlException: Invalid column name 'TST'.

update tbl_swbom_checklist_testers set passfail='No' where package=992-700-358 and tester=TST-000-341


That is part of the exception thrown by my web app. There is no column named TST, the column is named TESTER, which is why the SQL statement is 'where tester=TST-000-341'. The PACKAGE column is the same syntax and it has no complaints. What am I missing here? Here is my entire SP:


CREATE PROCEDURE dbo.sp_UpdateTesterColumn 
(
@PACKAGE nvarchar(255),
@TESTER nvarchar(100),
@COLUMN nvarchar(100),
@VALUE nvarchar(100),
@LASTCHANGEBY nvarchar(100)
) 
AS 

declare @sql nvarchar(1024)
set @sql=''

set @sql=@sql+'update tbl_swbom_checklist_testers set '+@COLUMN+'='''+@VALUE+''' '
set @sql=@sql+'where tester='+convert(nvarchar(100),@tester)+' and package='+convert(nvarchar(255),@package)

print @sql

exec sp_executesql @sql
GO


Obviously the print is when I uncomment the print statement. What am I missing here?
AnswerRe: Invalid column name error? Pin
Blue_Boy4-Aug-09 4:44
Blue_Boy4-Aug-09 4:44 
GeneralRe: Invalid column name error? Pin
cdietschrun4-Aug-09 4:50
cdietschrun4-Aug-09 4:50 
GeneralRe: Invalid column name error? Pin
cdietschrun4-Aug-09 4:58
cdietschrun4-Aug-09 4:58 
GeneralRe: Invalid column name error? [modified] Pin
Blue_Boy4-Aug-09 5:40
Blue_Boy4-Aug-09 5:40 
QuestionHow to edit Dataset value (NOT DATA GRID) Pin
sacr834-Aug-09 0:12
sacr834-Aug-09 0:12 
AnswerRe: How to edit Dataset value (NOT DATA GRID) Pin
Kschuler4-Aug-09 3:14
Kschuler4-Aug-09 3:14 
GeneralRe: How to edit Dataset value (NOT DATA GRID) Pin
sacr835-Aug-09 20:21
sacr835-Aug-09 20:21 
AnswerRe: How to edit Dataset value (NOT DATA GRID) Pin
Andy_L_J4-Aug-09 9:38
Andy_L_J4-Aug-09 9:38 
Questionsql server comparing two huge tables Pin
ps_prakash023-Aug-09 21:26
ps_prakash023-Aug-09 21:26 
AnswerRe: sql server comparing two huge tables Pin
Mycroft Holmes3-Aug-09 23:18
professionalMycroft Holmes3-Aug-09 23:18 
GeneralRe: sql server comparing two huge tables Pin
ps_prakash023-Aug-09 23:50
ps_prakash023-Aug-09 23:50 
GeneralRe: sql server comparing two huge tables Pin
David Skelly4-Aug-09 2:10
David Skelly4-Aug-09 2:10 
GeneralRe: sql server comparing two huge tables Pin
ps_prakash024-Aug-09 2:26
ps_prakash024-Aug-09 2:26 
GeneralRe: sql server comparing two huge tables Pin
David Skelly4-Aug-09 6:20
David Skelly4-Aug-09 6:20 
GeneralRe: sql server comparing two huge tables Pin
Mycroft Holmes4-Aug-09 16:12
professionalMycroft Holmes4-Aug-09 16:12 
GeneralRe: sql server comparing two huge tables Pin
ps_prakash024-Aug-09 17:44
ps_prakash024-Aug-09 17:44 
GeneralRe: sql server comparing two huge tables Pin
ps_prakash024-Aug-09 17:39
ps_prakash024-Aug-09 17:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.