Click here to Skip to main content
15,908,445 members
Home / Discussions / Database
   

Database

 
AnswerRe: help, implementing this method Pin
Dave Kreskowiak7-May-07 13:55
mveDave Kreskowiak7-May-07 13:55 
QuestionMulti-Command Execution Pin
Tristan Rhodes7-May-07 10:38
Tristan Rhodes7-May-07 10:38 
AnswerRe: Multi-Command Execution Pin
Dave Kreskowiak7-May-07 13:50
mveDave Kreskowiak7-May-07 13:50 
GeneralRe: Multi-Command Execution Pin
Tristan Rhodes8-May-07 2:46
Tristan Rhodes8-May-07 2:46 
GeneralRe: Multi-Command Execution Pin
Dave Kreskowiak8-May-07 17:20
mveDave Kreskowiak8-May-07 17:20 
GeneralRe: Multi-Command Execution Pin
Tristan Rhodes8-May-07 22:38
Tristan Rhodes8-May-07 22:38 
GeneralRe: Multi-Command Execution Pin
Dave Kreskowiak9-May-07 12:10
mveDave Kreskowiak9-May-07 12:10 
QuestionHelp with Stored Procedure and passing varible Pin
Hulicat7-May-07 7:33
Hulicat7-May-07 7:33 
Hello,
SQL 2005
I have a stored procedure and I am not sure I wrote it correctly to except a parameter of ticketid.

In VS I can see the fields however no data gets passed.
When I select query builder from VS I get an error "unable to parse query text"
I then exceute query and the fields show up with no data.

If I set the Parameter @ticketid to a value it works in SQL Query Analyser.

In the command and editor window in VS-? under parameters I have ticketid value request.querystring ("@ticketid")

Query String Field = @ticketid

here is the stored procedure:

Declare @ticketid as varchar (20)
Declare @Technician as varchar (20)


set @Technician=(SELECT email

FROM dbo.tech INNER JOIN dbo.job_ticket ON tech.client_id = job_ticket.assigned_tech_id WHERE job_ticket.job_ticket_id =Cast (@ticketid as varchar (20)))

SELECT job_ticket.job_ticket_id 'Ticket Number', @Technician 'Technician Assigned',job_ticket.subject 'Issue Description', report_date 'Open Date',tech_note.note_text 'Work Notes'

FROM job_ticket INNER JOIN dbo.tech_note ON tech_note.job_ticket_Id = job_ticket.job_ticket_id WHERE job_ticket.job_ticket_id =Cast (@ticketid as varchar (20))



Am I not passing the varible correctly or is the stored procedure incorrect?

Any help is greatly appreciated; I have been stuck on this for days.

Thanks



Regards,
Hulicat

AnswerRe: Help with Stored Procedure and passing varible Pin
Hulicat7-May-07 13:11
Hulicat7-May-07 13:11 
AnswerRe: Help with Stored Procedure and passing varible Pin
Ch_Shahzad iqbal8-May-07 1:17
Ch_Shahzad iqbal8-May-07 1:17 
GeneralRe: Help with Stored Procedure and passing varible Pin
Hulicat8-May-07 4:35
Hulicat8-May-07 4:35 
QuestionIBindingListView Filter Property Pin
Skippums7-May-07 7:09
Skippums7-May-07 7:09 
AnswerRe: IBindingListView Filter Property Pin
Giorgi Dalakishvili7-May-07 7:23
mentorGiorgi Dalakishvili7-May-07 7:23 
AnswerRe: IBindingListView Filter Property Pin
Ch_Shahzad iqbal8-May-07 1:11
Ch_Shahzad iqbal8-May-07 1:11 
Questionisnull in Sql Server Pin
Tamimi - Code7-May-07 1:59
Tamimi - Code7-May-07 1:59 
AnswerRe: isnull in Sql Server Pin
gauthee7-May-07 23:58
gauthee7-May-07 23:58 
Questionwhat is he Difference Between these two codes in datagrid Pin
Vimalsoft(Pty) Ltd6-May-07 22:16
professionalVimalsoft(Pty) Ltd6-May-07 22:16 
AnswerRe: what is he Difference Between these two codes in datagrid Pin
Ch_Shahzad iqbal8-May-07 22:50
Ch_Shahzad iqbal8-May-07 22:50 
GeneralRe: what is he Difference Between these two codes in datagrid Pin
Vimalsoft(Pty) Ltd9-May-07 1:12
professionalVimalsoft(Pty) Ltd9-May-07 1:12 
Questionforce to restore database Pin
Xandip6-May-07 20:51
Xandip6-May-07 20:51 
AnswerRe: force to restore database Pin
Colin Angus Mackay6-May-07 23:00
Colin Angus Mackay6-May-07 23:00 
QuestionHow to write triggers in stored procedure Pin
Sophia Rekhi6-May-07 20:09
Sophia Rekhi6-May-07 20:09 
AnswerRe: How to write triggers in stored procedure Pin
vimal_yet6-May-07 20:41
vimal_yet6-May-07 20:41 
AnswerRe: How to write triggers in stored procedure Pin
Colin Angus Mackay6-May-07 22:55
Colin Angus Mackay6-May-07 22:55 
Questionhow to connect sql server from internet Pin
Ahmed El-Badry6-May-07 12:23
Ahmed El-Badry6-May-07 12: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.