473,750 Members | 2,668 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to write stored procedure in plpgsql to connect to the sql server 2005?

6 New Member
Hi,

I just want to create a stored procedure/Function which should address the following features

1. Able to connect to the SQL Server 2005
2. fetch the data from tables
3. inserting into the postgresql database

Kindly suggest me the way forward or sample procedure
Feb 2 '11 #1
1 158098
rski
700 Recognized Expert Contributor
Create foreign data wrapper and create foreign server

see here
http://wiki.postgresql.org/wiki/Foreign_data_wrappers
http://www.postgresql.org/docs/curre...tawrapper.html
http://www.postgresql.org/docs/curre...ateserver.html
Apr 21 '12 #2

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

Similar topics

4
1879
by: Mullin Yu | last post by:
i have a stored procedure at sql server 2k. which will update records and select result from temp table. if i use SqlConnection class, and i do both. but, if i use OleDbConnection class, i can have only records updated, but no result come out. how can i debug, and what's the error? thanks!
0
5307
by: stant | last post by:
I am trying to call a mainframe cobol DB2 Stored Procedure from an SSIS 2005 SQL Task in BIDS. I believe that privileges and the number of parameters (6) are fine. I've tried casting and still have no luck. The error is SQL0440N. I am running with DB2 Client 8.2.4. The sql call in BIDS looks like... call ODW.ODWCY002 ('TN',cast '43','04/20/2006',0,' ',' ') the linkage section in the cobol sp looks like... 01 LK01-ODW-ST-CD...
4
17404
by: eighthman11 | last post by:
I'm calling a stored procedure on a sql server from an access application. I just need the stored procedure to run I do not need any data returned from the stored procedure to my Access application but I do pass parameters from my Access application. What I have works fine and is attached below. But I have one question. Why do I need this line of code to execute the stored procedure. Set rst = qdf.OpenRecordset(dbOpenSnapshot) Here...
0
1443
by: dwivedialok13 | last post by:
I am trying to debug a SQL server 2005 SP in VS 2005. I understand that there are two types of debugging (actully 3 but I am ignoring SQL/ CLR SPs written in C# etc). 1. Direct database debugging where in we select SP and use 'Step Into Stored procedure' otion to debug. I tried that and it seems to start debugging session ( I can debug output 'Running . ...' in output window) but nothing seems to happen. It prompts me for parameters etc...
2
3083
by: Borf | last post by:
Hi, I'm new at this so I could use some advice. I need to call 1 or possible 2 DB2 z/os stored procedures from SQL Server 2005. What is the best way to accomplish this? This also needs to run at least once a day automatically. Any advice is appreciated, Borf
1
2165
by: eighthman11 | last post by:
Hey everyone, Using Access 2003 and SQL Server 8.0 I have a stored procdure on SQL Server that is launched from my access database where I send the parms. The stored procedure on the server has several updating steps and delete steps. I do rollbacks on these steps so if one step fails all data returns to it status prior to the stored procedure being launched.
4
5330
by: Garima12 | last post by:
There r some stored procedures in the database I m working with. When I create new stored procedure and save it, it does not appear in the list of existing procedures. Why so? Where should I store it? Where r stored procedures physically stored? thks
2
2851
by: Erland Sommarskog | last post by:
Karl Rhodes (googlegroups@cortexa.co.uk) writes: The exact reason for the error is that you pass parameters to the command batch where you create the procedure. That does not fly. Nor would there be any point to so so. But I completely agree with Stephany Young's analysis. That stored procedure is completely meaningless, so it's a good thing that you are not able to create it.
1
1294
by: Sebrina | last post by:
I wrote a stored procedure which do a bulk insert into a table getting data from a text file. The data is inserted into a temp table and the I do an inserto to the original table. eg of figures " 30125.56 " " 237.18-" My question is that the minus sign is at the end of the figure. I can't ignore the minus and I have to use money Data Type.
0
9000
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8838
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9577
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9396
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9339
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6804
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6081
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4887
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2225
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.