dbTalk Databases Forums  

where is sp_primarykey?

comp.databases.sybase comp.databases.sybase


Discuss where is sp_primarykey? in the comp.databases.sybase forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Baldy
 
Posts: n/a

Default where is sp_primarykey? - 07-27-2004 , 09:45 AM






I have a DB that creates a table the defines the primary key thus

EXEC sp_primarykey 'blah', blahuid

then does the foreigns

EXEC sp_foreignkey 'blah2', '.field', uid

I can't find the Procedures to transfer them. going from an ASE to a ASA

where are the procedures?

Thanks for help
A



Reply With Quote
  #2  
Old   
Brian Ceccarelli
 
Posts: n/a

Default Re: where is sp_primarykey? - 07-27-2004 , 01:43 PM






sp_primarykey, sp_foreignkey . . . are documentation features only in ASE.
Nothing actually happens inside Sybase to enforce them. So, the question
is, why does your product need them in ASA?

There are cases where one wants these: third party programs might read
them. If you want to generate code for this, the DBPowerSuite program
psCopyKeys generates a SQL script.

www.dbpowersuite.com




"Baldy" <John (AT) smith (DOT) com> wrote

Quote:
I have a DB that creates a table the defines the primary key thus

EXEC sp_primarykey 'blah', blahuid

then does the foreigns

EXEC sp_foreignkey 'blah2', '.field', uid

I can't find the Procedures to transfer them. going from an ASE to a ASA

where are the procedures?

Thanks for help
A





Reply With Quote
  #3  
Old   
Baldy
 
Posts: n/a

Default Re: where is sp_primarykey? - 07-28-2004 , 03:59 AM



Unfortunatly dbpowersuite is unix only app. I've gone to the dark side so
need a windows thing.

Are you sure they are documentation only? As the tables are generated with
no PK's or FK's and the stored procs seem to be trying to produce them else
there are no links at all.

Thanks for your time
A


"Brian Ceccarelli" <spam (AT) accipiter (DOT) com> wrote

Quote:
sp_primarykey, sp_foreignkey . . . are documentation features only in ASE.
Nothing actually happens inside Sybase to enforce them. So, the question
is, why does your product need them in ASA?

There are cases where one wants these: third party programs might read
them. If you want to generate code for this, the DBPowerSuite program
psCopyKeys generates a SQL script.

www.dbpowersuite.com




"Baldy" <John (AT) smith (DOT) com> wrote in message
news:41066a71_1 (AT) news (DOT) adelaide.pipenetworks.com...
I have a DB that creates a table the defines the primary key thus

EXEC sp_primarykey 'blah', blahuid

then does the foreigns

EXEC sp_foreignkey 'blah2', '.field', uid

I can't find the Procedures to transfer them. going from an ASE to a ASA

where are the procedures?

Thanks for help
A







Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.