| |

VerySource

 Forgot password?
 Register
Search
View: 1214|Reply: 6

Why does openrowset prompt that sqlserver does not exist?

[Copy link]

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-2-1 17:00:01
| Show all posts |Read mode
select a. * from openrowset ('SQLOLEDB'
 , '192.168.0.121'; 'sa'; '12345'
 , master.dbo.sysobjects) as a

Message 17, Level 16, State 1, Line 1
[DBNETLIB] [ConnectionOpen (Connect ()).] SQL Server does not exist or access is denied.

opensource also makes this error?
What is the problem?
Reply

Use magic Report

0

Threads

88

Posts

55.00

Credits

Newbie

Rank: 1

Credits
55.00

 China

Post time: 2020-3-14 19:00:01
| Show all posts
Is the database server service you want to open started?
Reply

Use magic Report

0

Threads

211

Posts

108.00

Credits

Newbie

Rank: 1

Credits
108.00

 China

Post time: 2020-3-14 20:15:01
| Show all posts
--Example

USE pubs
GO
SELECT a. *
FROM OPENROWSET ('SQLOLEDB', 'seattle1'; 'sa'; 'MyPass',
   'SELECT * FROM pubs.dbo.authors ORDER BY au_lname, au_fname') AS a
GO
Reply

Use magic Report

0

Threads

211

Posts

108.00

Credits

Newbie

Rank: 1

Credits
108.00

 China

Post time: 2020-3-14 23:00:01
| Show all posts
--try

select a. * from openrowset ('SQLOLEDB'
 , '192.168.0.121'; 'sa'; '12345'
 , 'select * from master.dbo.sysobjects') as a
Reply

Use magic Report

0

Threads

114

Posts

69.00

Credits

Newbie

Rank: 1

Credits
69.00

 China

Post time: 2020-3-15 01:45:01
| Show all posts
select a. * from openrowset ('SQLOLEDB'
 , '192.168.0.121'; 'sa'; '12345'
 , 'select * from master.dbo.sysobjects') as a
Reply

Use magic Report

0

Threads

23

Posts

15.00

Credits

Newbie

Rank: 1

Credits
15.00

 China

Post time: 2020-3-16 13:45:01
| Show all posts
select a. * from openrowset ('SQLOLEDB'
 , '192.168.0.121'; 'sa'; '12345'
 , master.dbo.sysobjects) as a

->

select a. * from openrowset ('SQLOLEDB'
 , '192.168.0.121'; 'sa'; '12345'
 , 'select * from master.dbo.sysobjects') as a
Reply

Use magic Report

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

 Author| Post time: 2020-3-17 14:30:01
| Show all posts
The reason is clear, there is a problem with the database server settings. Thank you all!
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list