linked server from sql mgmt studio express v9 to sql 2005

Discussion in 'Databases' started by pap0007, Nov 25, 2008.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. Hello- I am trying to create a linked server from my studio express instance to our discountasp sql '05 db.

    I have followed the instructions here to create the linked server:



    You can also define linked servers by using SQL Server Management Studio. In the Object Explorer, right-click Server Objects, select New, and select Linked Server. You can delete a linked server definition by right-clicking the linked server name and selecting Delete.


    on site: http://msdn.microsoft.com/en-us/library/ms188279.aspx


    This creation seemed to be a success.


    however, when i try to copy table data from discountasp dbto my local server using this query:
    INSERT INTO DriverReportsDHLPkgs
    SELECT * FROM [sql2k503.discountasp.net].SQL2005_245451_KIM.dbo.DriverReportsDHLPkgs
    WHERE StationCode = ?ABE?


    Iget these errors:


    OLE DB provider "SQLNCLI" for linked server "sql2k503.discountasp.net" returned message "Invalid authorization specification".


    Msg 7399, Level 16, State 1, Line 1


    The OLE DB provider "SQLNCLI" for linked server "sql2k503.discountasp.net" reported an error. Authentication failed.


    Msg 7303, Level 16, State 1, Line 1


    Cannot initialize the data source object of OLE DB provider "SQLNCLI" for linked server "sql2k503.discountasp.net".





    Does anyone have any advice on how to fix this? I did connect to the discountasp server and my own server before attempting this.





    Thanks much for any help.





    Kevin
     
  2. Bruce

    Bruce DiscountASP.NET Staff

  3. Thanks for your response Bruce. Is there another way you know of to move data from the remote server to my local server?

    Thanks again.

    KP
     
  4. Bruce

    Bruce DiscountASP.NET Staff

    1) create a backup using the SQL backup tool in the control panel
    2) Download and restore the backup.

    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     
  5. Thanks Bruce.

    but how do i delete the records on the discountasp side to free up space?

    thanks for your help
     
  6. Bruce

    Bruce DiscountASP.NET Staff

  7. Bruce- i want to move specific records off the discountasp database onto my local. i believe the backup will prob backup full dbs, not giving me the choice to select which records.


    isnt there an easier way to move these records in mgmt studio express? i selected the records and tried edit/copy, but i couldnt paste in the local db, the option was greyed out.





    thanks for your help Bruce.
     
  8. Bruce

    Bruce DiscountASP.NET Staff

    SQL Import / Export wizard may be a better choice then.


    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     
  9. Bruce- thanks for the response.

    I am running sql 2005 express, am I able to use the import/export wizard with that?

    if so, how? (the option was not present in the database right click menu)


    Thanks
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page