Click here to Skip to main content
15,900,378 members
Home / Discussions / Database
   

Database

 
GeneralRe: Stored Procedure Pl/SQL Pin
Civic063-Aug-09 4:59
Civic063-Aug-09 4:59 
GeneralRe: Stored Procedure Pl/SQL Pin
Vimalsoft(Pty) Ltd3-Aug-09 5:06
professionalVimalsoft(Pty) Ltd3-Aug-09 5:06 
GeneralRe: Stored Procedure Pl/SQL Pin
Civic063-Aug-09 5:33
Civic063-Aug-09 5:33 
AnswerRe: Stored Procedure Pl/SQL Pin
David Skelly3-Aug-09 6:09
David Skelly3-Aug-09 6:09 
QuestionError in Stored Procedure. Pin
Satish - Developer3-Aug-09 3:29
Satish - Developer3-Aug-09 3:29 
AnswerRe: Error in Stored Procedure. Pin
Vimalsoft(Pty) Ltd3-Aug-09 4:38
professionalVimalsoft(Pty) Ltd3-Aug-09 4:38 
Questiondesigning database tables to store data Pin
uglyeyes2-Aug-09 14:57
uglyeyes2-Aug-09 14:57 
AnswerRe: designing database tables to store data Pin
Henry Minute3-Aug-09 2:09
Henry Minute3-Aug-09 2:09 
QuestionAccessing the file of a T-SQL BACKUP call Pin
Uwe Keim2-Aug-09 5:52
sitebuilderUwe Keim2-Aug-09 5:52 
AnswerRe: Accessing the file of a T-SQL BACKUP call Pin
scottgp2-Aug-09 14:34
professionalscottgp2-Aug-09 14:34 
GeneralRe: Accessing the file of a T-SQL BACKUP call Pin
Uwe Keim2-Aug-09 19:14
sitebuilderUwe Keim2-Aug-09 19:14 
AnswerRe: Accessing the file of a T-SQL BACKUP call Pin
Vimalsoft(Pty) Ltd3-Aug-09 4:50
professionalVimalsoft(Pty) Ltd3-Aug-09 4:50 
GeneralRe: Accessing the file of a T-SQL BACKUP call Pin
Uwe Keim3-Aug-09 6:00
sitebuilderUwe Keim3-Aug-09 6:00 
QuestionJoin performance Pin
Xmen Real 1-Aug-09 15:26
professional Xmen Real 1-Aug-09 15:26 
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 

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.