473,700 Members | 2,671 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 158093
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
1874
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
5305
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
17402
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
1442
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
3082
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
2163
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
5327
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
2849
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
1292
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
8714
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
9203
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
9060
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
8958
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,...
0
7797
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6557
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
4396
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4650
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2379
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.