February 25, 2013 at 8:37 am
Hi i have some request i would like to put them in one application so it's can display all the result instead of going each time to the database
Do you have any example how to put my request?is it vb programming?visual studio?
can someone give me a tutorial or example of a application?
thanks
February 25, 2013 at 9:09 am
February 25, 2013 at 9:09 am
Your question is unclear. Are you trying to create an application that will dynamically display the results of a query?
_______________________________________________________________
Need help? Help us help you.
Read the article at http://www.sqlservercentral.com/articles/Best+Practices/61537/ for best practices on asking questions.
Need to split a string? Try Jeff Modens splitter http://www.sqlservercentral.com/articles/Tally+Table/72993/.
Cross Tabs and Pivots, Part 1 – Converting Rows to Columns - http://www.sqlservercentral.com/articles/T-SQL/63681/
Cross Tabs and Pivots, Part 2 - Dynamic Cross Tabs - http://www.sqlservercentral.com/articles/Crosstab/65048/
Understanding and Using APPLY (Part 1) - http://www.sqlservercentral.com/articles/APPLY/69953/
Understanding and Using APPLY (Part 2) - http://www.sqlservercentral.com/articles/APPLY/69954/
February 25, 2013 at 9:35 am
Sean Lange (2/25/2013)
Your question is unclear. Are you trying to create an application that will dynamically display the results of a query?
Hi exactly
In fact instead of going to sql management studio and execute a new request everytime
i would like to put a list of request in a application and execute the request by pressing a button it will display the resulat
but all my queries are counting
for example how many poeple i have in my database i click on the button it 's shows 100
simple things, instead of going to the sql studio and executing the request and opening a new frame for each request etc...
thanks
February 25, 2013 at 10:26 am
asco5 (2/25/2013)
Sean Lange (2/25/2013)
Your question is unclear. Are you trying to create an application that will dynamically display the results of a query?Hi exactly
In fact instead of going to sql management studio and execute a new request everytime
i would like to put a list of request in a application and execute the request by pressing a button it will display the resulat
but all my queries are counting
for example how many poeple i have in my database i click on the button it 's shows 100
simple things, instead of going to the sql studio and executing the request and opening a new frame for each request etc...
thanks
Your issue is still very vague but basically you can create a stored proc, then create an application that calls that stored proc and displays the results.
_______________________________________________________________
Need help? Help us help you.
Read the article at http://www.sqlservercentral.com/articles/Best+Practices/61537/ for best practices on asking questions.
Need to split a string? Try Jeff Modens splitter http://www.sqlservercentral.com/articles/Tally+Table/72993/.
Cross Tabs and Pivots, Part 1 – Converting Rows to Columns - http://www.sqlservercentral.com/articles/T-SQL/63681/
Cross Tabs and Pivots, Part 2 - Dynamic Cross Tabs - http://www.sqlservercentral.com/articles/Crosstab/65048/
Understanding and Using APPLY (Part 1) - http://www.sqlservercentral.com/articles/APPLY/69953/
Understanding and Using APPLY (Part 2) - http://www.sqlservercentral.com/articles/APPLY/69954/
February 26, 2013 at 4:03 am
Sean Lange (2/25/2013)
asco5 (2/25/2013)
Sean Lange (2/25/2013)
Your question is unclear. Are you trying to create an application that will dynamically display the results of a query?Hi exactly
In fact instead of going to sql management studio and execute a new request everytime
i would like to put a list of request in a application and execute the request by pressing a button it will display the resulat
but all my queries are counting
for example how many poeple i have in my database i click on the button it 's shows 100
simple things, instead of going to the sql studio and executing the request and opening a new frame for each request etc...
thanks
Your issue is still very vague but basically you can create a stored proc, then create an application that calls that stored proc and displays the results.
hi thanks for your reply
this is a example of what i want to do
as you see i have my data base and i have my application
i would like to add all my sql request in my application and add a button to execute all the request and shows the result
February 27, 2013 at 8:09 am
asco5 (2/26/2013)
hi thanks for your replythis is a example of what i want to do
as you see i have my data base and i have my application
i would like to add all my sql request in my application and add a button to execute all the request and shows the result
OK so again here are the steps.
1) Create a stored proc that retrieves your data. (or maybe more than 1 stored proc)
2) Call this stored proc from your application.
3) Display the results in your application.
_______________________________________________________________
Need help? Help us help you.
Read the article at http://www.sqlservercentral.com/articles/Best+Practices/61537/ for best practices on asking questions.
Need to split a string? Try Jeff Modens splitter http://www.sqlservercentral.com/articles/Tally+Table/72993/.
Cross Tabs and Pivots, Part 1 – Converting Rows to Columns - http://www.sqlservercentral.com/articles/T-SQL/63681/
Cross Tabs and Pivots, Part 2 - Dynamic Cross Tabs - http://www.sqlservercentral.com/articles/Crosstab/65048/
Understanding and Using APPLY (Part 1) - http://www.sqlservercentral.com/articles/APPLY/69953/
Understanding and Using APPLY (Part 2) - http://www.sqlservercentral.com/articles/APPLY/69954/
February 27, 2013 at 5:39 pm
Sean Lange (2/27/2013)
asco5 (2/26/2013)
hi thanks for your replythis is a example of what i want to do
as you see i have my data base and i have my application
i would like to add all my sql request in my application and add a button to execute all the request and shows the result
OK so again here are the steps.
1) Create a stored proc that retrieves your data. (or maybe more than 1 stored proc)
2) Call this stored proc from your application.
3) Display the results in your application.
Hi thanks for your useful reply
But i m beginner i know that i have to store all my proc, and call from my application and display the result
but how?can i have 1 exemple of 1 proc how it's done so i can work on it to do all the rest of my requests?
thanks
February 28, 2013 at 7:16 am
asco5 (2/27/2013)
Sean Lange (2/27/2013)
asco5 (2/26/2013)
hi thanks for your replythis is a example of what i want to do
as you see i have my data base and i have my application
i would like to add all my sql request in my application and add a button to execute all the request and shows the result
OK so again here are the steps.
1) Create a stored proc that retrieves your data. (or maybe more than 1 stored proc)
2) Call this stored proc from your application.
3) Display the results in your application.
Hi thanks for your useful reply
But i m beginner i know that i have to store all my proc, and call from my application and display the result
but how?can i have 1 exemple of 1 proc how it's done so i can work on it to do all the rest of my requests?
thanks
Let's use the first of your outputs "how many person who have 100 MARKS"
To make this a little more flexible we will use a parameter.
Something like this:
create proc GetHighMarks
(
@MarkMin int
) as
select count(*) from YourTable
where Marks >= @MarkMin
_______________________________________________________________
Need help? Help us help you.
Read the article at http://www.sqlservercentral.com/articles/Best+Practices/61537/ for best practices on asking questions.
Need to split a string? Try Jeff Modens splitter http://www.sqlservercentral.com/articles/Tally+Table/72993/.
Cross Tabs and Pivots, Part 1 – Converting Rows to Columns - http://www.sqlservercentral.com/articles/T-SQL/63681/
Cross Tabs and Pivots, Part 2 - Dynamic Cross Tabs - http://www.sqlservercentral.com/articles/Crosstab/65048/
Understanding and Using APPLY (Part 1) - http://www.sqlservercentral.com/articles/APPLY/69953/
Understanding and Using APPLY (Part 2) - http://www.sqlservercentral.com/articles/APPLY/69954/
Viewing 9 posts - 1 through 8 (of 8 total)
You must be logged in to reply to this topic. Login to reply