|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
simple question: ON PRIMARY?
Hi,
Im really new to MS SQL - actually I just have a schema that I need to convert to Postgresql format. The MS SQL database already exists - I need to use a Postgresql web database to hold part of the master database's information. So, I've converted most of the "CREATE TABLE" schema, but right at the end it says: Code:
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY] GO I have NO idea what the ON [PRIMARY] TEXTIMAGE_ON [PRIMARY] bit means. Can someone please explain to me? And what part this would play in my Postgresql conversion? Ive been reading up a lot and find that the ON [PRIMARY] bit is pretty much standard with all tables, and TEXTIMAGE_ON [PRIMARY] is used a lot as well. But I'd just like to find out the meaning. So far I'm presuming I'd just have to delete that line since it doesn't apply to Postgresql. Am I right? Also, there was no primary key in the schema.. how does MS SQL identify the primary key for a table? I thought that every table needs at least one primary key ? Thanks a lot in advance! |
|
#2
|
||||
|
||||
|
You should Google a bit ... see http://doc.ddart.net/mssql/sql2000/...reate2_8g9x.htm as an example.
Quote:
Those are storage options, because you can store table data, indexes and blob content on different filegroups (and disks) to speed things up.
__________________
My blog about OpenSource Databases PDF tutorials about OSS databases, DBMonster ... Please contribute to Open Source Development, fill bug reports!!! Developer Shed eSupport Commented my.ini/my.cnf (PLEASE ADD YOUR OWN CONFIG TRICK) An introduction to database normalization Natural or Surrogate key Custom ordering for your results Correlated and uncorrelated subqueries Don't turn your outer joins into inner joins |
![]() |
| Viewing: Dev Shed Forums > Databases > MS SQL Development > simple question: ON PRIMARY? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|