Click here to Skip to main content
15,890,512 members
Home / Discussions / Database
   

Database

 
GeneralRe: create/update tbl in MS Access Pin
rmarma25-Sep-05 23:06
rmarma25-Sep-05 23:06 
Questionhow can i have the record number in query Pin
m.rastgar23-Sep-05 7:14
m.rastgar23-Sep-05 7:14 
AnswerRe: how can i have the record number in query Pin
Michael Potter23-Sep-05 7:36
Michael Potter23-Sep-05 7:36 
QuestionADO.NET DataBinding ComboBox Pin
Kotolom23-Sep-05 2:54
Kotolom23-Sep-05 2:54 
QuestionTake Backup of Database Pin
imshally8123-Sep-05 1:37
imshally8123-Sep-05 1:37 
AnswerRe: Take Backup of Database Pin
enjoycrack23-Sep-05 2:10
enjoycrack23-Sep-05 2:10 
Questionenable TCP\IP protocols for SQL server Pin
Prafulgoyal23-Sep-05 0:31
Prafulgoyal23-Sep-05 0:31 
QuestionesT-Sql Problem Pin
WDI22-Sep-05 23:49
WDI22-Sep-05 23:49 
Hi
I have a stored procedure (sp_getscores) that gets a parameter with type int( name it ID )
and returns one row with fields A int, B int, C int.
I need to use this stored procedure as :

I have a range of IDs say 100 to 150.
I want to use sp_getscore foreach ID in range of 100 to 150 and get the tabular result as

ID |A|B|C
___|_|_|____
100|.|.|.
101|.|.|.

...
150|.|.|

which . is an int.

It is obvious that i can achieve this by call the sp in .net application and use a for structure as

for( int i = 100 ; i<= 150 ;i++ )<br />
{<br />
  //Fill a dataTable by calling sp_getScore<br />
}


But i need to have a sp that does this job for me.
Can anyone write me a t-sql to does this?
Thanks!Blush | :O
AnswerRe: esT-Sql Problem Pin
miah alom23-Sep-05 3:32
miah alom23-Sep-05 3:32 
GeneralRe: esT-Sql Problem Pin
WDI23-Sep-05 3:38
WDI23-Sep-05 3:38 
GeneralRe: esT-Sql Problem Pin
miah alom23-Sep-05 4:09
miah alom23-Sep-05 4:09 
QuestionAbout reporting services Pin
Ali Sapanci22-Sep-05 22:47
Ali Sapanci22-Sep-05 22:47 
QuestionHow to import Pin
hariyani22-Sep-05 20:32
hariyani22-Sep-05 20:32 
AnswerRe: How to import Pin
Yulianto.23-Sep-05 17:47
Yulianto.23-Sep-05 17:47 
QuestionPassing an array of integers to a stored procedure Pin
Luis Alonso Ramos22-Sep-05 7:05
Luis Alonso Ramos22-Sep-05 7:05 
AnswerRe: Passing an array of integers to a stored procedure Pin
Orina DCosta22-Sep-05 10:58
Orina DCosta22-Sep-05 10:58 
GeneralRe: Passing an array of integers to a stored procedure Pin
Luis Alonso Ramos22-Sep-05 17:11
Luis Alonso Ramos22-Sep-05 17:11 
GeneralRe: Passing an array of integers to a stored procedure Pin
Christian Graus22-Sep-05 17:24
protectorChristian Graus22-Sep-05 17:24 
GeneralRe: Passing an array of integers to a stored procedure Pin
Luis Alonso Ramos23-Sep-05 6:35
Luis Alonso Ramos23-Sep-05 6:35 
GeneralRe: Passing an array of integers to a stored procedure Pin
Christian Graus25-Sep-05 12:15
protectorChristian Graus25-Sep-05 12:15 
Questionselecting data from one table and copy them into another Pin
achrafus22-Sep-05 5:52
achrafus22-Sep-05 5:52 
AnswerRe: selecting data from one table and copy them into another Pin
Colin Angus Mackay22-Sep-05 6:55
Colin Angus Mackay22-Sep-05 6:55 
GeneralRe: selecting data from one table and copy them into another Pin
achrafus22-Sep-05 7:38
achrafus22-Sep-05 7:38 
QuestionSQL Server Reporting Reset Page count or use distinctcount() for page number Pin
bubberz22-Sep-05 5:12
bubberz22-Sep-05 5:12 
AnswerRe: SQL Server Reporting Reset Page count or use distinctcount() for page number Pin
bubberz22-Sep-05 7:58
bubberz22-Sep-05 7:58 

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.