×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Open Query in MS SQL from MY SQL

Open Query in MS SQL from MY SQL

Open Query in MS SQL from MY SQL

(OP)
I am creating a view in SQL Server 2014 and using open query to link back to a query in MYSQL the dataset is over 100k lines and I keep getting time out issues from the MS SQL server. The view runs fine in MY SQL. Is there another way to do this?

Code sample:
Select *
FROM OPENQUERY (server, 'SELECT * FROM database.viewname AS New Name

RE: Open Query in MS SQL from MY SQL

It sounds like it's timing out packing up the mysql query and shipping it over to SQL.

I guess it depends on what you're trying to do. You could:
a) turn up the timeout value
b) Request a smaller dataset (i.e. "... FROM OPENQUERY (Server, 'SELECT * FROM database.viewname LIMIT 1000)" sort of thing... (trying to remember my mysql syntax...)

Just a couple of thoughts.

Just my $.02

"What the captain doesn't realize is that we've secretly replaced his Dilithium Crystals with new Folger's Crystals."

--Greg

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close