Re: Creating local view on linked server database/table

Tech-Archive recommends: Speed Up your PC by fixing your registry



Taggart (Taggart@xxxxxxxxxxxxxxxxxxxxxxxxx) writes:
Writing raw SQL via the OPENQUERY command works with no problems.

However when trying to create a view using the OPENQUERY sql, I get the
error message:
"ODBC error:[Microsoft][ODBC SQL Server Driver][SQL Server] The operation
could not be performed becasue the OLE DB provider 'MSDAORA' was unable to
begin a distributed transaction."

So I try adding BEGIN DISTRIBUTED TRANSACTION statement (although it's
just a select statement in the SQL) and then I get the message that the
query designer does not support this clause.

Jump out the query designer and run from a query window:

BEGIN DISTRIBUTED TRANSACTION
go
CREATE VIEW ...
go
COMMIT TRANSACTION

CREATE VIEW must be in a batch of its own, so you cannot use the designer.

I don't promise that you will be successful to create the view in this
way, though.


--
Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
.



Relevant Pages

  • Re: SQL Adaptor - Timeout
    ... Anyway there is not many methods to throttling: ... SQL send port trying to repeat the SP several times then suspend the ... Server stored procedures using SQL Server Adaptor. ... The adapter "SQL" raised an error message. ...
    (microsoft.public.biztalk.general)
  • Re: strange query error
    ... When I threw the SQL into Access' query designer, I got the error message on ... CurrCredit DECIMALNULL, ...
    (microsoft.public.access.queries)
  • Re: update query ODBC--call failed
    ... Google results from searching for your error message, ... on the local server SQL database. ... reporting the error rather than the "ODbc Driver For SQL Server" ...
    (microsoft.public.access.queries)
  • Re: Problem upgrading Microsoft Office Accounting Professional from 2008 to 2009 using SQL Express 2
    ... The file that is attached to the "Open a Company" command is a text document that appears to just contain the connection string for the selected company. ... Server Express Edition locally, but cannot connect remotely, and if the SQL Server Express Edition is listening on Named Pipes, then I suspect a firewall issue on the computer that is running SQL Server Express Edition. ... Since the problem appears to involve some sort of interaction between Microsoft Office Accounting Professionaland SQL Express 2008 hopefully someone in this forum will understand the error message I'm receiving and can suggest some possible solutions for me to try. ...
    (microsoft.public.sqlserver.connect)
  • RE: SQL Server 2000 desktop MSDE + Internet Explorer 7 = Cant con
    ... cannot open SQL Enterprise Manager. ... From the error message, it seems to be related to SSL and certifcate. ... Edit the registry on the SQL Server machine and make the following ...
    (microsoft.public.sqlserver.connect)