Import data from postgreSQL into SQL server 2005

I am trying to import one table from postgreSQL to SQL Server 2005 using sql server import and export wizard. When i test the connection after providing data source, location, username, password in the Data Link Properties section I get the message "Test Connection Succeeded". As soon as i press next to go onto next step i get the following error.
TITLE: SQL Server Import and Export Wizard
Cannot get string literals from the database connection "Provider=PostgreSQL.1;User ID=sa;Data Source=localhost;Location=TestMasterMap;Extended Properties=".
ADDITIONAL INFORMATION:
Object reference not set to an instance of an object. (DTSWizard)
BUTTONS:
OK
I have tried all sorts of different combinations for these properties but it always fails on this step. Can anybody help me with this?
 

The settings above worked for a small table with 3 rows. Now when I try to import the bigger table which I wanted to import in the first instance I get following out of memory error. Anybody knows how to work around this. I have checked my task manager and more than half of my memory was still not used when I get this error.
TITLE: SQL Server Import and Export Wizard
Column information for the source and destination data could not be retrieved.
"Query" -> [temporary].[dbo].[exporttable]:
                  - ERROR [HY000] Out of memory while reading tuples.;
No query has been executed with that handle
ADDITIONAL INFORMATION:
ERROR [HY000] Out of memory while reading tuples.;
No query has been executed with that handle (PSQLODBC.DLL)
BUTTONS:
OK

Similar Messages

  • Pulling data from oracle into sql server 2005

    hi,
    these days i am working on sql server 2005 on windows server 2008 64 bit.
    and oracle 10g on 32 bit unix.
    my problem is that when i am pulling data from oracle into sql server it shows me about *500-700 entries less*.
    why this is happening? is it because 32 bit to 64bit? or is it because of different os?

    Akki,
    are you using snapshot or replication from MSSQL? I am doing the same thing, hope to share your experience.
    I am using import/export from MGT studio and pull some data from Oracle database, I am working on how to update the changes on these tables pulled from Oracle.
    Thanks,
    -hank

  • Move data from Citadel to SQL Server 2005

    I wish to move data from a Citadel database. I have tried to use an ODBC connection to a Citadel database with little success. I can connect and write queries using Microsoft's Excel, but what I want to do cannot be done in Excel (due to Excel's row and column limitations and because I need a "heavier" lifter than Excel) . The data-tag names are longer than MS Access will accept and Visual Studio Professional 2005 connects but no queries are successful. MS Access can open the ALIAS table.
    What I want.
    I wish the UTC date and time, Data-Tag Name, and data values between start and end times (logical run) for data contained in the RAWDATA table of the ODBC connection. I need to repeat this for the 400+ data-tags in the Citadel database.
    An ODBC connection is inherently slow and inefficient and thus isn't the connection of choice. However, I don't know of any other means to connect. I have years of data from which to extract runs on multiple DAS Citadel databases.
    Is the Citadel database the best source for this data extraction or is there a "native" LabView database that this extraction process might use for more efficient data extraction?'
    Is there a product marketed by NI that will extract this data to SQL Server or a delimited text file?

    Thanks Amanda:
    Today, I was able to connect from within MS Access via an ADODB connection to the ODBC Citadel database. That is working well so far and seems to be reasonably fast--returned 3 recordsets from the RawData table having about 370; 1,400; and 460,000 records in a little over 16 seconds from a PC with medium power (cpu configuration and RAM availability). The recordsets were ordered but no "WHERE" clauses were involved.
    I'll use these recordsets to vet the algorithm I am developing to identify "runs"--there are 19 complete runs and 1 incomplete run at the end of the Citadel database. The next Citadel database repeats runs 18 and 19 and then has run 20 through whatever. The algorithm currently successfully finds the UTC run start date/time. Tomorrow, I'll work on the run end date/time portion of the algorithm and if all goes well Monday will be the big test of picking the data between the start and end times for each run for each of about 370 data tag names.
    Thanks, again.

  • Import Excel 2007 into SQL Server 2005

    Hi
    When importing Excel 2007 data into sql via Import wizard:
    choose "Microsoft Office 12.0 Access Database Engine OLE DB
    Provider" as the data source in SQL Server Import and Export Wizard, then click Properties, switch to the All tab, input your excel file path to the Data source field and input "Excel 12.0" to the Extended Properties field and then click OK to follow the wizard.
    I get the following error:
    Error 0xc0202009: Source An OLE DB error has occurred. Error code: 0x80004005
    Error 0xc02020e8: Source Opening a rowset for failed
    Exception from HRRESULT: 0xc02020e8 (Microsoft.sqlserver.dtspipelinewrap)
    I have recently upgraded to Vista and did not have this problem in XP, does anybody know how to fix this, as I really need to get the data into SQL server 2005 (without using SSIS)
    Thanks!

    Hi Jin
    This is not a problem in SSIS, this is a problem occuring when I try to import data via the Import/Export wizard in Management studio.
    This is the exact error I get:
    Error 0xc0202009: Source 
    - <table_name>[1]: An OLE DB error has occurred. 
    Error code:
    0x80004005
    Error 0xc02020e8: Source 
    - <table_name>[1]: Opening a rowset for “<table_name” failed.
    Check that the object exists in the database.
    Additional information:
    Exception from HRRESULT: 0xc02020e8 (Microsoft.sqlserver.dtspipelinewrap)
    Many thanks!!

  • How to Select from Oracle 8i database and insert into Sql Server 2005 datab

    Hi how to Select from Oracle 8i and insert into Sql Server 2005.
    Source db as Oracle 8i
    Target db as Sql Server 2005.
    I need to select one table data from Oracle 8i & insert into Sql Server 2005
    Thanks

    Thanks Khan..
    Is there is any query (OPENQUERY) available for that?
    Regards..

  • Import data from csv to SQL database

    How to  Import data from csv to SQL database through BLS-xMII?

    Hi,
    if you using Oracle, you may also use the bulk insert with MII. You can use the String List to XML parser to convert your CSV to XML, and then use a query that calls a stored procedure which does the bulk insert.
    Also have a look at thread [read XML file into stored procedure|http://forums.sdn.sap.com/click.jspa?searchID=63850236&messageID=7455643].
    Michael

  • How to insert data from access to sql server ?

    How to insert data from access to sql server ?
    Please help me
    thanks

    phamtrungkien wrote:
    How to insert data from access to sql server by JAVA?The first four words of my last post:
    masijade wrote:
    JDBC with two connectionsGet a resultset from the jdbc-odbc bridge access connection, cycle through it and add batch insert commands to the jdbc connection to sql server. Give it a try and if the code has an error, then post your code ans ask a question.
    The real question, though, is why you think it absolutely necessary to use Java for this.

  • Fetch data from another mirosoft sql server to sap

    Dear all,
                   I want to fetch data from another mirosoft sql server
                    to SAP(my sap server IN unix, oracle 10g).
    Thanks
    Shashi
    Moderator Message: Try to do you own research before posting your question. Get back to the forums in case you are stuck with any issue
    Edited by: Suhas Saha on Jul 26, 2011 3:21 PM

    hi,
    u should see following documentation:
    Oracle9i Heterogeneous Connectivity Administrator's Guide
    Release 1 (9.0.1)
    Part Number A88789_01
    in it u just go to chapter no. 4 (using the gateway),,u'll find ur answer there.
    regards
    umar

  • Inserting Data from Oracle to SQL Server on the Real Time Basis.

    Hi Everyone,
    I need to insert data from Oracle to SQL Server on the Real Time basis, we have to fetch data from oracle approx 20 tables, and each table has more than 30 Fields. I need to fetch data in every 15 mins.
    I have created a job using SQL SERVER Agent by writing insert queries for all the tables with conditions that no rows will be inserted which is already in SQL. note that this job is taking only 1 min to execute.
    But in this way our SQL Server getting hanged and it giving problems to other application running in the SQL SERVER.
    So i m requesting all of you that what is the best way to insert huge amount of data on the real time basis.
    Thanx in Advance.

    1) Create Linked server 
    2) insert data using openquery  and set job in sql agent
    3) run job after 15 minutes

  • Sql is not working after changing from MsAccess into sql server

    Following Sql  is not working after changing from MsAccess into sql server. 
    sum(trn.sales) as sales,
    sum(trn.cost) as cost,
    sales - cost as profit // Here is not working . can we not use sales a column. Please advise
    from trn
    Kind Regards
    pol
    polachan

    It will not work if use two different column from the table or column  from two  different table
    Example
    sum(trn.sales * trn.rate) as salesAmount,
    sum(trn.cost) as cost,
    sum(trn.salesAmount)-sum(trn.cost) as profit ----- Here is not working . can we not use sales a column. Please advise
    from trn
    Regards
    polachan

  • Inserting date from a jsp into sql server 2005 database

    Dear Friends.,
    i have a jsp page, in that there is a form with various user input fields. in that one field is date field. i tried to insert the date field into the sql server 2005 database. but it is not getting inserted into the database.
    when i tried by inserting one field to database, it is getting inserted. for all the fields its works fine, except the date field.
    i need hint or code to insert the date get from the jsp page to database.
    i am using a servlet to do all database related things. i.e making connections, executing prepared statement queries
    thanks
    sekar.

    The variable needs to be outside of the string to be recognized as a variable. You need to remove the variable from the string, then concatinate it onto the string (and concatinate any remaining string parts - the closing paren). For example:
    stmt.executeUpdate("INSERT INTO table VALUES ('test', " + companyID + ")");
    Hope that's clear enough and helps. Good luck on your thesis!
    jim

  • Import Access Table into SQL Server 2005

    I am using BIDS and have created a OLEDB connection to my mdb file, and a DataFlowTask for the Control Flow, but lost on what to set-up on the Data Flow tab.  What do I do to set-up the data flow to import the mdb table to sql server?

    Why Execute SQL Task is needed?
    Typically the SQL is embedded into the OLEDB Source.
    I guess when you were working on the destination you chose to create the table. Then you mapped to it. Why you cannot find it in
    options I am not sure. Can you post a picture? The table would be now in the drop down list of tables available, but you supposed not to repeat this step.
    Arthur My Blog
    Maybe I am just not fully understanding the link posted - but am trying.  Attached are my screenshots 1 of Control Flow Tab and 2 of Data Flow Tab.  My process is to take an access table and link it into SQL Server

  • Migrating Data from MySQL to SQL Server 2012

    Hi all,
    I'm Migrating a database from MySQL to SQL Server 2012, using SSMA for MySQL v5.2.1258.  I've got the schema migrated over and have resolved any migration issues (stored procedures / views), but when it comes to migrating over the data I'm just hitting
    a wall.
    None of the data is migrating and when the migration report is displayed every table has a red x against it's Status.  The Output box has the following:
    Data migration operation has finished.
    0 table(s) successfully migrated. 
    0 table(s) partially migrated. 
    64 table(s) failed to migrate.
    I've seen on the forum that someone else was having the same problem
    (http://social.msdn.microsoft.com/Forums/en-US/sqlservermigration/thread/b835f4b3-3d93-42a4-9b6b-d21d3dfd8dab/)
    I've set the project settings mode to default, still getting the same error and tried using both Client Side Data Migration and Server Side migration, with both giving the same result.  I've tried going through the step-by-step blog as well.
    I am doing something really stupid?  There are 64 tables, so don't really want to try doing exports from each table and importing it into the new database.
    Hope someone can help.
    Cheers
    Alex

    Hello,
    I don’t have suggestions for you, but you can try contacting the SQL Server Migration Assistant (SSMA) Team via e-mail ([email protected])
    to see if they can provide a solution on this scenario.
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • Load flat files from S3 into SQL Server 2008 R2

    Hi, We have a few customers dropping files in Amazon S3. Could you please let me know how to load this data into SQL Server 2008 R2 database using SSIS? We are 2008 R2 BIDS environment.
    Thanks in advance..............
    Ione

    Hi ione721,
    You can install the PostgreSQL ODBC driver so that you can use the .Net Providers\Odbc Data Provider for ADO.NET Source component to connect to the Amazon cloud storage. After that, you can use a OLE DB Destination to load the data to SQL Server database.
    Reference:
    http://docs.aws.amazon.com/redshift/latest/mgmt/configure-odbc-connection.html 
    Regards,
    Mike Yin
    TechNet Community Support

  • Inserting data from Oracle to SQL Server 2008

    Hi All,
    I am using oracle 9.2.0.7 and SQL server 2008 in windows server 2003 operating system.
    My requirment is like below.
    1) I would liek to insert data from the Oracle database to SQL Server.
    For the above requirement we have created the ODBC, then configure the listener file, tns file, and created the db link. This part is working fine as I am able to select the data from the SQL Server.
    But when I am inserting the record from the oracle database to the SQL Server I am getting the error, (ORA-00904) Here oracle can not identified the column name.
    My insert statement is like below.
    insert into test@SQLTEST (name, fullname)
    values ('Oracle', 'Oracle server data');
    Test is the SQL server table name and sqltest is the db link name.
    If I am select the data
    select * from test@SQLTEST from Oralce I am getting the data properly.
    Thanks,
    SUN
    Edited by: User SUN@ on Jun 9, 2010 5:49 PM

    Hi,
    I modify the column name as "f_name" and "l_name";
    Still I am getting the same error;
    Thanks,
    SUN

Maybe you are looking for

  • SQL Query

    Hi, I am creating a report using Oracle reports, I am just stuck in middle of nowhere. I think you can help me. I have two problem. (1) I want to select data P_ID from a table with the last time he/she got the concession like Max(effective_start_date

  • Photos in a lesser quality after publishing

    I have a small logo in my site, and it lookes good in iweb, but its a little bit blurry in safari or firefox after publishing. Is there no way to control the jpg compression in iweb? or is the problem somthing else? I can not find anything about this

  • GRC 10 hyperlink notification setup

    Hi, We want to setup notification email and it should have hyperlink by saying Click Here once we have clicked on that,it has to open respective NWBC approval page. Instead of maintaining complete link in SE61 notification,we want to create hyperlink

  • Phantom, Final Cut Pro X workflow

    Hi friends, Please suggest the best workflow for phantom camera footages with final cut pro X. Thanks in Advance Sreekumar Nair

  • Lock screen issues when deleting notifications

    I am having a recurring problem where the phone gets stuck when I try to delete a notification from the lock screen. When I swipe and hit Trash, the screen sends me to the password entry screen but every time I hit a button, the screen only bounces t