Click here to Skip to main content
15,891,951 members
Home / Discussions / Database
   

Database

 
QuestionHow to get 5 th record of the table using stored procedure... Pin
Sasmi9-Nov-07 21:01
Sasmi9-Nov-07 21:01 
AnswerRe: How to get 5 th record of the table using stored procedure... Pin
pmarfleet9-Nov-07 22:11
pmarfleet9-Nov-07 22:11 
AnswerRe: How to get 5 th record of the table using stored procedure... Pin
Vipin.d10-Nov-07 4:55
Vipin.d10-Nov-07 4:55 
QuestionHi bro i dont know how to do this query.. Pin
Sasmi9-Nov-07 20:57
Sasmi9-Nov-07 20:57 
AnswerRe: Hi bro i dont know how to do this query.. Pin
pmarfleet9-Nov-07 22:08
pmarfleet9-Nov-07 22:08 
AnswerRe: Hi bro i dont know how to do this query.. Pin
Xmen Real 11-Nov-07 20:39
professional Xmen Real 11-Nov-07 20:39 
AnswerRe: Hi bro i dont know how to do this query.. Pin
Marek Grzenkowicz11-Nov-07 21:17
Marek Grzenkowicz11-Nov-07 21:17 
QuestionSelect and update selected data Pin
Vipin.d9-Nov-07 20:18
Vipin.d9-Nov-07 20:18 
Hi,
I am using MSSQL 2000 and MS.NET 2.0

I have some doubt.My requirment is I need to select some data (ie status=3) from webserver's database and insert it into my local machine's Database.Table structure in both server are same.And at the same time i need to update the status of the selected rows to 4.

Now my idea is, a class contain two functions.One is for DownloadWeb and other is InsertLocal.
The DownloadWeb return a dataset(selected data) and InsertLocal insert the the table in dataset to local database.

My doubt is where i place "update status=4" query..
I write one sp in my webserver like

<br />
  BEGIN TRANSACTION<br />
      BEGIN<br />
         SELECT  data<br />
      END<br />
      BEGIN<br />
         UPDATE status=4<br />
      END<br />
     IF @@ERROR <> 0<br />
        BEGIN<br />
             -- Rollback the transaction<br />
         ROLLBACK  <br />
         RETURN -1<br />
       END<br />
COMMIT<br />


or any other idea????

Be very grateful for any advice.

Regards


They laugh at me; they think I’m different. I laugh at them, ‘coz they are all same
CrazySanker





AnswerRe: Select and update selected data Pin
John-ph9-Nov-07 22:06
John-ph9-Nov-07 22:06 
GeneralRe: Select and update selected data Pin
Vipin.d10-Nov-07 3:44
Vipin.d10-Nov-07 3:44 
QuestionHelp - "Could not find installable ISAM" Pin
oceanexplorer9-Nov-07 7:39
oceanexplorer9-Nov-07 7:39 
AnswerCross Post Pin
pmarfleet9-Nov-07 9:38
pmarfleet9-Nov-07 9:38 
GeneralRe: Cross Post Pin
oceanexplorer10-Nov-07 7:33
oceanexplorer10-Nov-07 7:33 
GeneralRe: Cross Post Pin
pmarfleet10-Nov-07 7:39
pmarfleet10-Nov-07 7:39 
QuestionGuaranteed stumper...truncating last 3 characters on a string... Pin
new_phoenix9-Nov-07 7:14
new_phoenix9-Nov-07 7:14 
AnswerRe: Guaranteed stumper...truncating last 3 characters on a string... Pin
andyharman9-Nov-07 8:40
professionalandyharman9-Nov-07 8:40 
GeneralRe: Guaranteed stumper...truncating last 3 characters on a string... Pin
Pete O'Hanlon9-Nov-07 10:52
mvePete O'Hanlon9-Nov-07 10:52 
QuestionDataSets Pin
#realJSOP9-Nov-07 5:19
mve#realJSOP9-Nov-07 5:19 
AnswerRe: DataSets Pin
pmarfleet9-Nov-07 6:23
pmarfleet9-Nov-07 6:23 
GeneralRe: DataSets Pin
#realJSOP9-Nov-07 6:24
mve#realJSOP9-Nov-07 6:24 
GeneralRe: DataSets Pin
Pete O'Hanlon9-Nov-07 10:49
mvePete O'Hanlon9-Nov-07 10:49 
QuestionSQL Database sharing Pin
Abbhie9-Nov-07 3:47
Abbhie9-Nov-07 3:47 
GeneralVista Issue [modified] Pin
Brady Kelly9-Nov-07 2:03
Brady Kelly9-Nov-07 2:03 
GeneralRe: Vista Issue Pin
_Zorro_9-Nov-07 2:40
professional_Zorro_9-Nov-07 2:40 
GeneralRe: Vista Issue Pin
Brady Kelly9-Nov-07 2:43
Brady Kelly9-Nov-07 2: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.