SHARE
TWEET

Untitled

a guest Jul 18th, 2019 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2.  INSERT INTO [WFServices].[dbo].[kh_Kontrahent] ([ID_kh_Baza]
  3.       ,[id]
  4.       ,[skrot]
  5.       ,[nazwa]
  6.       ,[kodKraju]
  7.       ,[statusUE]
  8.       ,[Miejscowosc]
  9.       ,[ulica]
  10.       ,[numerDomu]
  11.       ,[numerMieszk]
  12.       ,[kod]
  13.       ,[Poczta]
  14.       ,[Telefon1]
  15.       ,[Telefon2]
  16.       ,[Telefax]
  17.       ,[Telex]
  18.       ,[email]
  19.       ,[PlatnikVAT]
  20.       ,[nazwisko]
  21.       ,[imie]
  22.       ,[nip]
  23.       ,[pesel]
  24.       ,[Regon]
  25.       ,[www]
  26.       ,[pozycja]
  27.       ,[aktywny]
  28.       ,[Uwagi]
  29.       ,[StatusPrzetworzenia]
  30.       ,[DataPrzetworzenia]
  31.       ,[Blad])
  32.       select 2 as [ID_kh_Baza],null as [id],isnull(c.ShortName,'') as [skrot], isnull(c.Name,'') as [nazwa],'' as [kodKraju], 0 as [statusUE], isnull(AddressCity,''), isnull(AddressStreet,'')
  33.       , isnull(cast(AddressNb1 as nvarchar),''), isnull(cast(AddressNb2 as nvarchar),'')
  34.       ,isnull( AddressPostCode,''), '', isnull(AddressTelephone,''), '','','',isnull(AddressEmail,''),1,null,null
  35.       ,isnull(cast(c.TaxNumber as nvarchar),''),'','',isnull(AddressWebPage,''), null, 1 , '', null,null,null
  36.       from WF_HEG.dbo.Contractor c inner join WF_HEG.dbo.ContractorExt cx on c.oid=cx.oid
  37. where c.oid = @oid
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top