Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2000 > SQL Server 2000
|
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 24th, 2004, 05:51 AM
Authorized User
 
Join Date: Jun 2004
Posts: 60
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Vijay,

Quote:
quote:Select @newid = Max(col) From tbl where FK = 1
           /*code that Generates new id according to key spacifications of table
             i mean every table is bounded with spacific numeric values....
             i.e tbl_1 id allowed between 20 and 30 etc
             so here i check table and then check max existing id value
             and then generate new key ....
           */



  I need to generate new id after checking number of range which is spacified for given table in string variable ...

   hope it will help you more ... to help me ... :)

Stay Beautiful,

Abdul Salam

There is no moving creature on Earth whose sustenance is not provided by Allah. He knows its living and its resting place,
and all that is recorded in a glorious Book. (Al-Quran)
 
Old June 24th, 2004, 06:16 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

I would like to see the code that you used to do that(if you can post here), so as to get a better picture than suggesting you on what I understand and not getting there still:)

Cheers!

_________________________
-Vijay G
Strive for Perfection
 
Old June 24th, 2004, 07:49 AM
Authorized User
 
Join Date: Jun 2004
Posts: 60
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have mentioned already that code is different for each table according to id .... okay

 Here is example of table and key cols

   tbls col_key_bound_between
----------------------------------------------------
   tbl1 1 to 30 'mean there are 30 types of orders
   tbl2 31 to 50 '
   ....
   ....
   ....

   actually i am not in office thats why have not code ... so if you got then okay otherwise i will send code 2maro ...

    Stay BeautiFul,
  Abdul Salam





Similar Threads
Thread Thread Starter Forum Replies Last Post
Output to text bonekrusher XSLT 4 November 25th, 2007 01:06 PM
tell me the output abdul_owiusa C# 3 May 10th, 2007 04:25 AM
Output should appear in Mozila instead of IE anujrathi ASP.NET 1.0 and 1.1 Professional 2 August 30th, 2006 09:47 AM
Output Difference wolftrap1 BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 3 January 4th, 2004 05:44 PM
how to get this output? Haroldd SQL Language 2 July 16th, 2003 07:24 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.