Click here to Skip to main content
15,907,492 members
Home / Discussions / Database
   

Database

 
QuestionRe: ADO.Net Problem getting schema information: AllowDBNull vs. IsNullable Pin
JSchumann7-Oct-06 0:32
JSchumann7-Oct-06 0:32 
QuestionEasy, easy select question [modified] Pin
Vodstok2-Oct-06 6:48
Vodstok2-Oct-06 6:48 
AnswerRe: Easy, easy select question Pin
Edbert P2-Oct-06 20:26
Edbert P2-Oct-06 20:26 
QuestionTable clone on same database. Pin
theJazzyBrain2-Oct-06 2:46
theJazzyBrain2-Oct-06 2:46 
AnswerRe: Table clone on same database. Pin
Colin Angus Mackay2-Oct-06 5:16
Colin Angus Mackay2-Oct-06 5:16 
QuestionPlease assist to solve this problem Pin
pubududilena2-Oct-06 1:35
pubududilena2-Oct-06 1:35 
AnswerRe: Please assist to solve this problem Pin
Michael Potter2-Oct-06 4:37
Michael Potter2-Oct-06 4:37 
GeneralRe: Please assist to solve this problem Pin
pubududilena3-Oct-06 19:47
pubududilena3-Oct-06 19:47 
Hi,
Many Thanks for reply.

I need to send Parameter Values for SQL Statement.I am using SQL Server 2000

So I have tried like this:

DECLARE @sqlStatement VARCHAR(1000)

SET @sqlStatement='SELECT @adultmarkup=SUM(dbo.CalculateMarkup(@fareprice,adultMarkup)),@childmarkup=SUM(dbo.CalculateMarkup(@fareprice,childMarkup)),@infantmarkup=SUM(dbo.CalculateMarkup(@fareprice,infantMarkup)),@studentmarkup=SUM(dbo.CalculateMarkup(@fareprice,studentMarkup))
FROM Agent_Markup_Fare WHERE fareid=@fareid AND (AgentsSubGroupID IN(INVARIABLES))'

SET @sqlStatement = REPLACE(@sqlStatement,'INVARIABLES',@AgentPreferencesIDS)
EXEC(@sqlStatement)

But Error Message Appeared :-
Must declare the variable '@fareprice'.

But All the Variables are declared on the Stored Procedure.

Can you please tell me how to recover the problem?

Thanks in advance.
GeneralRe: Please assist to solve this problem Pin
Michael Potter4-Oct-06 4:00
Michael Potter4-Oct-06 4:00 
QuestionOrdering a linked list Pin
Rob Philpott1-Oct-06 23:34
Rob Philpott1-Oct-06 23:34 
AnswerRe: Ordering a linked list Pin
Colin Angus Mackay2-Oct-06 0:41
Colin Angus Mackay2-Oct-06 0:41 
GeneralRe: Ordering a linked list Pin
Rob Philpott2-Oct-06 1:11
Rob Philpott2-Oct-06 1:11 
GeneralRe: Ordering a linked list Pin
Colin Angus Mackay2-Oct-06 2:01
Colin Angus Mackay2-Oct-06 2:01 
GeneralRe: Ordering a linked list Pin
Rob Philpott2-Oct-06 3:01
Rob Philpott2-Oct-06 3:01 
GeneralRe: Ordering a linked list Pin
Colin Angus Mackay2-Oct-06 8:04
Colin Angus Mackay2-Oct-06 8:04 
GeneralRe: Ordering a linked list Pin
Colin Angus Mackay2-Oct-06 8:07
Colin Angus Mackay2-Oct-06 8:07 
QuestionLargest Data Typein SQL Server Pin
King Shez1-Oct-06 21:08
King Shez1-Oct-06 21:08 
AnswerRe: Largest Data Typein SQL Server Pin
albCode1-Oct-06 21:25
albCode1-Oct-06 21:25 
AnswerRe: Largest Data Typein SQL Server Pin
Mark Salsbery4-Oct-06 11:02
Mark Salsbery4-Oct-06 11:02 
Questionsql server 2005 Pin
amaneet29-Sep-06 20:21
amaneet29-Sep-06 20:21 
AnswerRe: sql server 2005 Pin
zhengdong jin30-Sep-06 7:32
zhengdong jin30-Sep-06 7:32 
QuestionReplication cursor [modified] Pin
Skanless29-Sep-06 16:18
Skanless29-Sep-06 16:18 
AnswerRe: Replication cursor Pin
Skanless29-Sep-06 21:46
Skanless29-Sep-06 21:46 
QuestionT-SQL Syntax Pin
lakshmi_sri29-Sep-06 11:02
lakshmi_sri29-Sep-06 11:02 
AnswerRe: T-SQL Syntax Pin
zhengdong jin29-Sep-06 19:53
zhengdong jin29-Sep-06 19:53 

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.