Click here to Skip to main content
15,887,288 members
Home / Discussions / Database
   

Database

 
GeneralRe: Best method for keeping website visitor count in database Pin
N a v a n e e t h20-Feb-08 23:27
N a v a n e e t h20-Feb-08 23:27 
GeneralRe: Best method for keeping website visitor count in database Pin
Sandeep Kumar21-Feb-08 3:56
Sandeep Kumar21-Feb-08 3:56 
GeneralRe: Best method for keeping website visitor count in database Pin
Hesham Amin21-Feb-08 9:32
Hesham Amin21-Feb-08 9:32 
GeneralProblem with top clause Pin
kimo code19-Feb-08 22:43
kimo code19-Feb-08 22:43 
GeneralRe: Problem with top clause Pin
Giorgi Dalakishvili19-Feb-08 23:30
mentorGiorgi Dalakishvili19-Feb-08 23:30 
GeneralRe: Problem with top clause Pin
N a v a n e e t h19-Feb-08 23:32
N a v a n e e t h19-Feb-08 23:32 
GeneralRe: Problem with top clause Pin
kimo code20-Feb-08 0:15
kimo code20-Feb-08 0:15 
GeneralRe: Problem with top clause Pin
Ashfield20-Feb-08 1:52
Ashfield20-Feb-08 1:52 
As you have been told, you cannot use a variable with TOP in SQL2000. It DOES work in SQL 2005.

See this MS help

Ypur only option for SQL2000 is, as you have already been advised, to create dynamic sql. If this is not performant enough then you will need to look at alternative methods.

Bob
Ashfield Consultants Ltd

GeneralRe: Problem with top clause Pin
WoutL21-Feb-08 1:54
WoutL21-Feb-08 1:54 
GeneralRe: Problem with top clause Pin
kimo code21-Feb-08 2:19
kimo code21-Feb-08 2:19 
Generalbetter way for moving data from one to three table Pin
mohd imran abdul aziz19-Feb-08 21:45
mohd imran abdul aziz19-Feb-08 21:45 
GeneralAutoincrement character type data in sql server Pin
techie.priyanka19-Feb-08 20:17
techie.priyanka19-Feb-08 20:17 
GeneralRe: Autoincrement character type data in sql server Pin
Hesham Amin19-Feb-08 20:53
Hesham Amin19-Feb-08 20:53 
GeneralRe: Autoincrement character type data in sql server Pin
techie.priyanka21-Feb-08 22:18
techie.priyanka21-Feb-08 22:18 
GeneralRe: Autoincrement character type data in sql server Pin
Hesham Amin21-Feb-08 22:29
Hesham Amin21-Feb-08 22:29 
Generalhelp in inserting into a table Pin
mrcsn19-Feb-08 20:12
mrcsn19-Feb-08 20:12 
GeneralRe: help in inserting into a table Pin
Krish - KP19-Feb-08 20:16
Krish - KP19-Feb-08 20:16 
GeneralRe: help in inserting into a table Pin
mrcsn19-Feb-08 21:24
mrcsn19-Feb-08 21:24 
GeneralAutomatic email sending function Pin
Jamman19-Feb-08 19:50
Jamman19-Feb-08 19:50 
GeneralRe: Automatic email sending function Pin
Steven J Jowett20-Feb-08 4:52
Steven J Jowett20-Feb-08 4:52 
Generalsql inserting Pin
mrcsn19-Feb-08 18:12
mrcsn19-Feb-08 18:12 
GeneralRe: sql inserting Pin
Krish - KP19-Feb-08 20:12
Krish - KP19-Feb-08 20:12 
GeneralCopy data In table [modified] Pin
kibromg19-Feb-08 6:08
kibromg19-Feb-08 6:08 
GeneralRe: Copy data In table Pin
Mark J. Miller19-Feb-08 7:50
Mark J. Miller19-Feb-08 7:50 
GeneralRe: Copy data In table Pin
kibromg19-Feb-08 9:19
kibromg19-Feb-08 9:19 

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.