Click here to Skip to main content
15,906,569 members
Home / Discussions / Database
   

Database

 
GeneralRe: select two fields that are same from one table Pin
Ashfield12-Jun-08 0:13
Ashfield12-Jun-08 0:13 
QuestionSQL Triggers [modified] Pin
sharifworldwide11-Jun-08 20:08
sharifworldwide11-Jun-08 20:08 
AnswerRe: SQL Triggers Pin
Ashfield11-Jun-08 21:22
Ashfield11-Jun-08 21:22 
GeneralRe: SQL Triggers Pin
sharifworldwide12-Jun-08 0:36
sharifworldwide12-Jun-08 0:36 
GeneralRe: SQL Triggers Pin
Ashfield12-Jun-08 1:20
Ashfield12-Jun-08 1:20 
QuestionHow can get Index of Current Save Record in Access Database? Pin
Le@rner11-Jun-08 19:22
Le@rner11-Jun-08 19:22 
AnswerCP IGNORE Pin
leckey12-Jun-08 17:43
leckey12-Jun-08 17:43 
QuestionGet row count and data set from sproc Pin
RCoate11-Jun-08 17:49
RCoate11-Jun-08 17:49 
I am currently using a sproc like the one below to get both a dataset and a count of the rows returned.

Is there a better way to do this?

	@Filter		int,
	@theRows	int output
AS
BEGIN
	SELECT
		Field1,
		Field2
	FROM
		MyTable
	WHERE
		FilterField=@Filter

	SET @theRows=(select count(*) from MyTable WHERE FilterField=@Filter)

END


Thanks.
AnswerRe: Get row count and data set from sproc Pin
Ashfield11-Jun-08 21:26
Ashfield11-Jun-08 21:26 
GeneralRe: Get row count and data set from sproc Pin
RCoate11-Jun-08 21:29
RCoate11-Jun-08 21:29 
GeneralRe: Get row count and data set from sproc Pin
Ashfield11-Jun-08 22:23
Ashfield11-Jun-08 22:23 
AnswerRe: Get row count and data set from sproc Pin
Niraj_Silver26-Jun-08 1:05
Niraj_Silver26-Jun-08 1:05 
QuestionSQL server 2005 Pin
safealloys11-Jun-08 12:15
safealloys11-Jun-08 12:15 
AnswerRe: SQL server 2005 Pin
Christian Graus11-Jun-08 12:53
protectorChristian Graus11-Jun-08 12:53 
GeneralRe: SQL server 2005 Pin
safealloys11-Jun-08 13:17
safealloys11-Jun-08 13:17 
GeneralRe: SQL server 2005 Pin
safealloys11-Jun-08 13:28
safealloys11-Jun-08 13:28 
GeneralRe: SQL server 2005 Pin
Alsvha11-Jun-08 17:46
Alsvha11-Jun-08 17:46 
JokeRe: SQL server 2005 Pin
Vasudevan Deepak Kumar11-Jun-08 20:58
Vasudevan Deepak Kumar11-Jun-08 20:58 
AnswerRe: SQL server 2005 Pin
Ashfield11-Jun-08 22:25
Ashfield11-Jun-08 22:25 
QuestionSQL vs VB.net Pin
safealloys11-Jun-08 12:01
safealloys11-Jun-08 12:01 
AnswerRe: SQL vs VB.net Pin
Christian Graus11-Jun-08 12:51
protectorChristian Graus11-Jun-08 12:51 
GeneralRe: SQL vs VB.net Pin
safealloys16-Jun-08 8:32
safealloys16-Jun-08 8:32 
QuestionRe: SQL vs VB.net Pin
safealloys16-Jun-08 8:36
safealloys16-Jun-08 8:36 
Questiontables Pin
jds120711-Jun-08 9:50
jds120711-Jun-08 9:50 
AnswerRe: tables Pin
Pete O'Hanlon11-Jun-08 10:49
mvePete O'Hanlon11-Jun-08 10:49 

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.