469,076 Members | 1,437 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,076 developers. It's quick & easy.

Creating table in linked server

I have created a linked server in sql 2005. I want to create a table from an existing database in the newly created linked server.

Any suggestion pls.
Jun 20 '07 #1
1 4141
I think you must use the exact qualified name of table.

Like this :

CREATE TABLE [LINKED-SERVER].[LINKED-DATABASE].[dbo].[AnagCategorie](
[Id] [int] IDENTITY(1,1) NOT FOR REPLICATION NOT NULL,
[CodCategoria] [dbo].[CodCat] NOT NULL,
[CodDitta] [dbo].[CodDitta] NOT NULL,
[Descr] [nvarchar](50) COLLATE Latin1_General_CI_AS NOT NULL,
CONSTRAINT [PK_AnagCategorie] PRIMARY KEY CLUSTERED
(
[CodCategoria] ASC,
[CodDitta] ASC
)WITH (PAD_INDEX = OFF, IGNORE_DUP_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
Jun 20 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by RJMAL | last post: by
31 posts views Thread by Neil | last post: by
4 posts views Thread by Eric E | last post: by
3 posts views Thread by Zlatko Matić | last post: by
4 posts views Thread by Wayne Wengert | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.