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

Database

 
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 
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 
You have several options for this and they all have their downsides. Here's few.

One way is to create the statement and concatenate the parameter values to a string variable. After that you can execute the contents of the variable using EXEC[^]. This may lead to problems when dates, numbers etc are used in the parameters.

Another option is to create a permanent or temporary table and insert the parameter values to this table and join the openquery to this table. Of course you can use other conditions also (exists, 'column returned by openquery' < 'value in temp table' etc etc). Now you can build a data-type safe solution but you may encounter performance problems.
The need to optimize rises from a bad design.My articles[^]

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 
GeneralRe: Does it make sense to use CLR Stored Procedures Pin
Jani Giannoudis30-Mar-11 21:43
Jani Giannoudis30-Mar-11 21:43 
GeneralRe: Does it make sense to use CLR Stored Procedures Pin
PIEBALDconsult31-Mar-11 2:52
mvePIEBALDconsult31-Mar-11 2:52 

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.