Click here to Skip to main content
15,888,454 members
Home / Discussions / Database
   

Database

 
AnswerRe: Join performance Pin
Mycroft Holmes1-Aug-09 23:43
professionalMycroft Holmes1-Aug-09 23:43 
AnswerRe: Join performance Pin
Vimalsoft(Pty) Ltd2-Aug-09 21:46
professionalVimalsoft(Pty) Ltd2-Aug-09 21:46 
GeneralRe: Join performance Pin
Xmen Real 3-Aug-09 2:45
professional Xmen Real 3-Aug-09 2:45 
GeneralRe: Join performance Pin
Vimalsoft(Pty) Ltd3-Aug-09 3:07
professionalVimalsoft(Pty) Ltd3-Aug-09 3:07 
GeneralRe: Join performance Pin
Xmen Real 3-Aug-09 3:21
professional Xmen Real 3-Aug-09 3:21 
QuestionSQL query: Get correspondence descriptions instead foreign key IDs. Is that possible ? Pin
sdancer7531-Jul-09 5:00
sdancer7531-Jul-09 5:00 
AnswerRe: SQL query: Get correspondence descriptions instead foreign key IDs. Is that possible ? Pin
Blue_Boy31-Jul-09 7:12
Blue_Boy31-Jul-09 7:12 
QuestionSQL SP exception: "Incorrect syntax near '-'" Pin
cdietschrun31-Jul-09 4:14
cdietschrun31-Jul-09 4:14 
I am getting an exception thrown from my web app's call to a SQL SP.

The expecption says "incorrect syntax near '-'". The dash I have narrowed down to an argument passed to the stored procedure contains dashes, such as 992-123-123. The SP works fine if the argument passed is 992123123.

What is the best way of fixing this? In all likelyhood it is more important to keep the dashes in the entries in the columns. I think it is just my SP syntax, so here it is: @PACKAGE is the value that is giving issues, which is 999-999-999 style.

CODE

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

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

set @sql=@sql+'update tbl_swbom_checklist_items set '+@COLUMN+'='''+@VALUE+''' where package='''+@PACKAGE+''' '

--print @sql

exec sp_executesql @sql
GO

AnswerRe: SQL SP exception: "Incorrect syntax near '-'" Pin
That's Aragon1-Aug-09 1:56
That's Aragon1-Aug-09 1:56 
QuestionHow to Use an Array Variant as a control name? Pin
dpminusa31-Jul-09 2:00
dpminusa31-Jul-09 2:00 
AnswerRe: How to Use an Array Variant as a control name? Pin
Luc Pattyn31-Jul-09 2:22
sitebuilderLuc Pattyn31-Jul-09 2:22 
GeneralRe: How to Use an Array Variant as a control name? Pin
dpminusa31-Jul-09 9:53
dpminusa31-Jul-09 9:53 
GeneralRe: How to Use an Array Variant as a control name? Pin
Luc Pattyn31-Jul-09 10:20
sitebuilderLuc Pattyn31-Jul-09 10:20 
GeneralRe: How to Use an Array Variant as a control name? Pin
dpminusa31-Jul-09 10:28
dpminusa31-Jul-09 10:28 
QuestionFull Text Search Pin
ps_prakash0230-Jul-09 21:33
ps_prakash0230-Jul-09 21:33 
QuestionData Retrieval Pin
mgr_2k730-Jul-09 20:25
mgr_2k730-Jul-09 20:25 
AnswerRe: Data Retrieval Pin
Blue_Boy30-Jul-09 21:37
Blue_Boy30-Jul-09 21:37 
Questionsql server 2005 installation Pin
Spurple30-Jul-09 18:14
Spurple30-Jul-09 18:14 
AnswerRe: sql server 2005 installation Pin
Mycroft Holmes30-Jul-09 20:24
professionalMycroft Holmes30-Jul-09 20:24 
GeneralRe: sql server 2005 installation Pin
Spurple30-Jul-09 23:48
Spurple30-Jul-09 23:48 
AnswerRe: sql server 2005 installation Pin
Eddy Vluggen31-Jul-09 6:14
professionalEddy Vluggen31-Jul-09 6:14 
AnswerRe: sql server 2005 installation Pin
Jerry Hammond2-Aug-09 3:55
Jerry Hammond2-Aug-09 3:55 
AnswerRe: sql server 2005 installation Pin
Robin_Roy3-Aug-09 0:16
Robin_Roy3-Aug-09 0:16 
QuestionMS SQL 2005 - merge new rows and tables Pin
Member 469202330-Jul-09 8:59
Member 469202330-Jul-09 8:59 
AnswerRe: MS SQL 2005 - merge new rows and tables Pin
Robin_Roy30-Jul-09 16:40
Robin_Roy30-Jul-09 16:40 

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.