Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Development - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 3145

Update column data from Linked Server

$
0
0
Hello everyone,It seems that I get stuck with updating column data from Linked Server.It would be great if someone could assist. :)So, this is the updated script from Linked Server:[quote]UPDATE [DATA STORE LINKED]...['ET NEW$'] SET [Data] = <Data, VarChar,> ,[Ot] = <Ot, VarChar,> ,[Year] = <Year, Double,> ,[Region] = <Region, VarChar,> ,[Country] = <Country, VarChar,> ,[Div] = <Div, VarChar,> ,[Type] = <Type, VarChar,> ,[Parts Used] = <Parts Used, VarChar,> ,[Jan] = <Jan, Double,> ,[Feb] = <Feb, Double,> ,[Mar] = <Mar, Double,> ,[Apr] = <Apr, Double,> ,[May] = <May, Double,> ,[Jun] = <Jun, Double,> ,[Jul] = <Jul, Double,> ,[Aug] = <Aug, Double,> ,[Sep] = <Sep, Double,> ,[Oct] = <Oct, Double,> ,[Nov] = <Nov, Double,> ,[Dec] = <Dec, Double,> WHERE <Search Conditions,,>GO[/quote]and now I want to update column "Parts" in this table (used Script table as ---> Create to):[quote]CREATE TABLE [dbo].[Server_FINAL]( [Ot] [nvarchar](50) NULL, [Region] [nvarchar](50) NULL, [Country] [nvarchar](50) NULL, [Div] [nvarchar](50) NULL, [Type] [nvarchar](50) NULL, [Year] [int] NULL, [Month] [nvarchar](50) NULL, [ET] [float] NULL, [ET NEW] [float] NULL, [Hr] [float] NULL, [Pred] [float] NULL, [Red] [float] NULL, [Rev] [float] NULL, [SR] [float] NULL, [TP] [float] NULL, [Parts] [float] NULL) ON [PRIMARY][/quote]To conclude, table Server_FINAL.Parts need to update with [Parts Used] data from [DATA STORE LINKED]...['ET NEW$'].Txh!

Viewing all articles
Browse latest Browse all 3145

Trending Articles