Click here to Skip to main content
15,902,817 members
Home / Discussions / Database
   

Database

 
AnswerRe: How to Transfer SQl Database to a Cd and be Opened with SQl on the other side Pin
Colin Angus Mackay31-May-07 1:40
Colin Angus Mackay31-May-07 1:40 
GeneralRe: How to Transfer SQl Database to a Cd and be Opened with SQl on the other side Pin
Vimalsoft(Pty) Ltd31-May-07 2:38
professionalVimalsoft(Pty) Ltd31-May-07 2:38 
GeneralRe: How to Transfer SQl Database to a Cd and be Opened with SQl on the other side Pin
Colin Angus Mackay31-May-07 4:15
Colin Angus Mackay31-May-07 4:15 
GeneralRe: How to Transfer SQl Database to a Cd and be Opened with SQl on the other side Pin
Vimalsoft(Pty) Ltd31-May-07 4:25
professionalVimalsoft(Pty) Ltd31-May-07 4:25 
QuestionSplit it Pin
The_Server31-May-07 0:10
The_Server31-May-07 0:10 
AnswerRe: Split it Pin
Tirthadip31-May-07 1:28
Tirthadip31-May-07 1:28 
AnswerRe: Split it Pin
Kirtan Gor31-May-07 1:40
Kirtan Gor31-May-07 1:40 
QuestionRe: Split it [modified] Pin
The_Server31-May-07 2:25
The_Server31-May-07 2:25 
Thank you for your answer

I think SqlDataAdapter is in use by C# or VB

but I'm using Visual Studio to create reports,
so I need a query to do that.

I thought about somthing like that

DECLARE @page_num int<br />
DECLARE @rows_in_page int<br />
DECLARE @temp1 TABLE ( aaa nVarchar(100), bbb nVarchar(200), ccc float, ddd int)<br />
DECLARE @SQL nvarchar(4000)<br />
<br />
SET @page_num = 3<br />
SET @rows_in_page = 15<br />
INSERT INTO Temp1 = SELECT * FROM myTable<br />
[[[ now @temp has all records ]]]<br />
<br />
[--> some code to delete the first 30 records ((page_num-1)*rows_in_page) <--]<br />
[[[ now @temp1 has pages 3,4,5,6,.... ]]]<br />
<br />
SET @SQL = 'SELECT TOP ' + @rows_in_page + ' * from @temp1'<br />
[[[ now the variable @SQL = "SELECT TOP 15 * from @temp1" ]]]<br />
<br />
<br />
EXECUTE (@SQL)<br />
[[[ the EXECUTE will give me the first 15. That means only page 3 ]]]


Can anyone post the missing code ?
AnswerRe: Split it Pin
Harini N K4-Jun-07 0:56
Harini N K4-Jun-07 0:56 
AnswerRe: Split it Pin
The_Server6-Jun-07 20:07
The_Server6-Jun-07 20:07 
QuestionDataSet Fill Problem Pin
Kirtan Gor30-May-07 22:52
Kirtan Gor30-May-07 22:52 
QuestionSQL statement returning duplicates with DISTINCT [modified] Pin
ScottM130-May-07 22:01
ScottM130-May-07 22:01 
AnswerRe: SQL statement returning duplicates with DISTINCT Pin
kubben31-May-07 3:11
kubben31-May-07 3:11 
GeneralRe: SQL statement returning duplicates with DISTINCT Pin
ScottM131-May-07 3:24
ScottM131-May-07 3:24 
Questionnormailzation? Pin
saravanan0530-May-07 20:48
saravanan0530-May-07 20:48 
AnswerRe: normailzation? Pin
ScottM130-May-07 21:44
ScottM130-May-07 21:44 
QuestionDate format in T-SQL Pin
Werries30-May-07 12:02
Werries30-May-07 12:02 
AnswerRe: Date format in T-SQL Pin
Werries30-May-07 12:19
Werries30-May-07 12:19 
AnswerRe: Date format in T-SQL Pin
Mike Dimmick30-May-07 23:05
Mike Dimmick30-May-07 23:05 
QuestionConnect to a database Pin
Aptiva Dave30-May-07 5:54
Aptiva Dave30-May-07 5:54 
AnswerRe: Connect to a database Pin
Nouman Bhatti31-May-07 2:55
Nouman Bhatti31-May-07 2:55 
GeneralRe: Connect to a database Pin
Aptiva Dave31-May-07 5:09
Aptiva Dave31-May-07 5:09 
GeneralRe: Connect to a database Pin
Paul Conrad1-Jun-07 7:22
professionalPaul Conrad1-Jun-07 7:22 
AnswerRe: Connect to a database Pin
ganti.r7-Jun-07 1:50
ganti.r7-Jun-07 1:50 
QuestionSetFieldValue() Pin
hero199529-May-07 22:43
hero199529-May-07 22:43 

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.