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

Database

 
Generalvirtual keyboard Pin
shelbypowell31-Mar-11 4:02
shelbypowell31-Mar-11 4:02 
GeneralRe: virtual keyboard Pin
Mycroft Holmes31-Mar-11 13:09
professionalMycroft Holmes31-Mar-11 13:09 
GeneralRe: virtual keyboard Pin
shelbypowell31-Mar-11 13:58
shelbypowell31-Mar-11 13:58 
GeneralRe: virtual keyboard Pin
Mycroft Holmes31-Mar-11 14:17
professionalMycroft Holmes31-Mar-11 14:17 
GeneralRe: virtual keyboard Pin
Pete O'Hanlon31-Mar-11 23:35
mvePete O'Hanlon31-Mar-11 23:35 
GeneralRe: virtual keyboard Pin
Andy_L_J31-Mar-11 23:56
Andy_L_J31-Mar-11 23:56 
GeneralRe: virtual keyboard Pin
shelbypowell1-Apr-11 1:05
shelbypowell1-Apr-11 1:05 
QuestionPlease modify the Stored procedure (Error:-incorrect syntax near '+') Pin
vinu.111131-Mar-11 2:17
vinu.111131-Mar-11 2:17 
hi..
the below is my SP..

i want to pass the parameter @name to the open query
but it is showing the error
incorrect syntax near '+'

ALTER PROCEDURE [dbo].[cub]
@name nvarchar(50)

AS
BEGIN

SET NOCOUNT ON;

select * from OPENQUERY(XHMNDGHFYUHFGHJFFRJF,'select {[Employee].[Dept].[Dept]*[Employee].[Empno].[Empno]} on 1,
[Measures].[Salary] on 0 from [Employee] where [Employee].[Empname].&'+ @name +' ')
END

if i pass the value directly..
like this.. where [Employee].[Empname].&vasu ')
it will execute fine..

but through the parameter name it will show error..
help me..
AnswerRe: Please modify the Stored procedure (Error:-incorrect syntax near '+') Pin
s_magus31-Mar-11 3:47
s_magus31-Mar-11 3:47 
AnswerRe: Please modify the Stored procedure (Error:-incorrect syntax near '+') Pin
Wendelius31-Mar-11 5:30
mentorWendelius31-Mar-11 5:30 
AnswerRe: Please modify the Stored procedure (Error:-incorrect syntax near '+') Pin
SamRST4-Apr-11 21:27
SamRST4-Apr-11 21:27 
QuestionSQL Server Error: String or binary data would be truncated Pin
cateyes9930-Mar-11 15:24
cateyes9930-Mar-11 15:24 
AnswerRe: SQL Server Error: String or binary data would be truncated Pin
Luc Pattyn30-Mar-11 15:41
sitebuilderLuc Pattyn30-Mar-11 15:41 
GeneralRe: SQL Server Error: String or binary data would be truncated Pin
cateyes9930-Mar-11 16:34
cateyes9930-Mar-11 16:34 
AnswerRe: SQL Server Error: String or binary data would be truncated Pin
Wendelius31-Mar-11 5:19
mentorWendelius31-Mar-11 5:19 
Questionreporting left to right instead of top to bottom [not solved but project went another way so closed] Pin
gavindon30-Mar-11 11:24
gavindon30-Mar-11 11:24 
AnswerRe: reporting left to right instead of top to bottom Pin
Jörgen Andersson30-Mar-11 19:54
professionalJörgen Andersson30-Mar-11 19:54 
GeneralRe: reporting left to right instead of top to bottom Pin
gavindon31-Mar-11 2:59
gavindon31-Mar-11 2:59 
AnswerRe: reporting left to right instead of top to bottom Pin
Simon_Whale30-Mar-11 22:13
Simon_Whale30-Mar-11 22:13 
GeneralRe: reporting left to right instead of top to bottom Pin
gavindon31-Mar-11 3:02
gavindon31-Mar-11 3:02 
GeneralRe: reporting left to right instead of top to bottom Pin
Simon_Whale31-Mar-11 3:05
Simon_Whale31-Mar-11 3:05 
GeneralRe: reporting left to right instead of top to bottom Pin
gavindon31-Mar-11 8:27
gavindon31-Mar-11 8:27 
QuestionDoes it make sense to use CLR Stored Procedures Pin
Jani Giannoudis29-Mar-11 22:11
Jani Giannoudis29-Mar-11 22:11 
AnswerRe: Does it make sense to use CLR Stored Procedures Pin
Wayne Gaylard29-Mar-11 22:41
professionalWayne Gaylard29-Mar-11 22:41 
AnswerRe: Does it make sense to use CLR Stored Procedures Pin
PIEBALDconsult30-Mar-11 3:23
mvePIEBALDconsult30-Mar-11 3:23 

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.