Showing posts with label computer. Show all posts
Showing posts with label computer. Show all posts

Friday, March 30, 2012

LINK WITH SQL SERVER

Hi, I'm doing a proyect with Visual Basic where I have to use a
database that I've already made on SQL SERVER. In my computer I had to
install WINDOWS 2000 family server, to be able to install SQL SERVER
as server not as a client, I can see perfectly and totally the
database from VB.

The problem is that now I have a laptop, and I want to continue
developing on it, I already installed everything like in the other
one, but I can't see SQL SERVER as a provider when I want to make the
connection. So I don't know if I have to do something special in order
to see it from Visual Basic.

I don't want to make a network, I just want to keep with the proyect
from the laptop.

Please somebody help me.Gloria (gloriarr2001@.yahoo.com.mx) writes:
> Hi, I'm doing a proyect with Visual Basic where I have to use a
> database that I've already made on SQL SERVER. In my computer I had to
> install WINDOWS 2000 family server, to be able to install SQL SERVER
> as server not as a client, I can see perfectly and totally the
> database from VB.
> The problem is that now I have a laptop, and I want to continue
> developing on it, I already installed everything like in the other
> one, but I can't see SQL SERVER as a provider when I want to make the
> connection. So I don't know if I have to do something special in order
> to see it from Visual Basic.

I'm not really sure what you mean with that you cannot see SQL Server as
provider. Do you run your program, and you fail to connect? Or is it
somehow missing in the developement environment? In the latter case,
you may be better off asking in a Visual Basic newsgroup.

--
Erland Sommarskog, SQL Server MVP, sommar@.algonet.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techin.../2000/books.asp|||The fact is that when I try to make a connection from Visual Basic, I
have to specified the provider of OLE DB, so I use Microsoft OLE DB
Provider for SQL Sever, and when I try to check the connection there's
an error, there is no problem with Visual Basic, so I think that I do
something wrong with the SQL SERVER installation.

Is there anything that you suggest I can do?|||Gloria (gloriarr2001@.yahoo.com.mx) writes:
> The fact is that when I try to make a connection from Visual Basic, I
> have to specified the provider of OLE DB, so I use Microsoft OLE DB
> Provider for SQL Sever, and when I try to check the connection there's
> an error, there is no problem with Visual Basic, so I think that I do
> something wrong with the SQL SERVER installation.
> Is there anything that you suggest I can do?

Could you post the relevant piece of code?

There are a numbe of possibilities, but not having to access to your
machine, I'm in the dark.

--
Erland Sommarskog, SQL Server MVP, sommar@.algonet.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techin.../2000/books.asp|||gloriarr2001@.yahoo.com.mx (Gloria) wrote in message news:<334b61a7.0404282149.1839acf1@.posting.google.com>...
> The fact is that when I try to make a connection from Visual Basic, I
> have to specified the provider of OLE DB, so I use Microsoft OLE DB
> Provider for SQL Sever, and when I try to check the connection there's
> an error, there is no problem with Visual Basic, so I think that I do
> something wrong with the SQL SERVER installation.
> Is there anything that you suggest I can do?

Have you installed the SQL Server client on your laptop?|||Not quite sure what you mean by "see SQL Server as a provider".

1. You need to have the SQL Server Client Tools installed on your
laptop.

2. Your laptop needs to be able to see the server in Network.

3. You need to "register" your database in the EnterpriseManager on
your laptop.

Alternatively, if you mean you can't create a UDL, the steps are:
A. In Windows Explorer, select File | New | text file.
B. Rename the resulting textfile to have .udl as its extension,
e.g. MyDatabase.udl. You will get a warning about changing the file
extension, ignore it.
C. Open the udl. Here's the stupid part -- when you open it, it
will be on the SECOND page of the wizard, which is only for ODBC
connections. You have to go to the FIRST page to find the SQL Server
OLE DB provider.
D. Now you can define your connection string like
Dim MyDB As Connection
Set MyDB = New Connection
MyDB.ConnectionString = "file name=c:\MyDatabase.udl"

HTH :)

On 28 Apr 2004 12:34:47 -0700, gloriarr2001@.yahoo.com.mx (Gloria)
wrote:

>Hi, I'm doing a proyect with Visual Basic where I have to use a
>database that I've already made on SQL SERVER. In my computer I had to
>install WINDOWS 2000 family server, to be able to install SQL SERVER
>as server not as a client, I can see perfectly and totally the
>database from VB.
>The problem is that now I have a laptop, and I want to continue
>developing on it, I already installed everything like in the other
>one, but I can't see SQL SERVER as a provider when I want to make the
>connection. So I don't know if I have to do something special in order
>to see it from Visual Basic.
>I don't want to make a network, I just want to keep with the proyect
>from the laptop.
>Please somebody help me.

LINK WITH SQL SERVER

Hi, I'm doing a proyect with Visual Basic where I have to use a
database that I've already made on SQL SERVER. In my computer I had to
install WINDOWS 2000 family server, to be able to install SQL SERVER
as server not as a client, I can see perfectly and totally the
database from VB.

The problem is that now I have a laptop, and I want to continue
developing on it, I already installed everything like in the other
one, but I can't see SQL SERVER as a provider when I want to make the
connection. So I don't know if I have to do something special in order
to see it from Visual Basic.

I don't want to make a network, I just want to keep with the proyect
from the laptop.

Please somebody help me.Gloria (gloriarr2001@.yahoo.com.mx) writes:
> Hi, I'm doing a proyect with Visual Basic where I have to use a
> database that I've already made on SQL SERVER. In my computer I had to
> install WINDOWS 2000 family server, to be able to install SQL SERVER
> as server not as a client, I can see perfectly and totally the
> database from VB.
> The problem is that now I have a laptop, and I want to continue
> developing on it, I already installed everything like in the other
> one, but I can't see SQL SERVER as a provider when I want to make the
> connection. So I don't know if I have to do something special in order
> to see it from Visual Basic.

I'm not really sure what you mean with that you cannot see SQL Server as
provider. Do you run your program, and you fail to connect? Or is it
somehow missing in the developement environment? In the latter case,
you may be better off asking in a Visual Basic newsgroup.

--
Erland Sommarskog, SQL Server MVP, sommar@.algonet.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techin.../2000/books.asp|||The fact is that when I try to make a connection from Visual Basic, I
have to specified the provider of OLE DB, so I use Microsoft OLE DB
Provider for SQL Sever, and when I try to check the connection there's
an error, there is no problem with Visual Basic, so I think that I do
something wrong with the SQL SERVER installation.

Is there anything that you suggest I can do?|||Gloria (gloriarr2001@.yahoo.com.mx) writes:
> The fact is that when I try to make a connection from Visual Basic, I
> have to specified the provider of OLE DB, so I use Microsoft OLE DB
> Provider for SQL Sever, and when I try to check the connection there's
> an error, there is no problem with Visual Basic, so I think that I do
> something wrong with the SQL SERVER installation.
> Is there anything that you suggest I can do?

Could you post the relevant piece of code?

There are a numbe of possibilities, but not having to access to your
machine, I'm in the dark.

--
Erland Sommarskog, SQL Server MVP, sommar@.algonet.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techin.../2000/books.asp|||gloriarr2001@.yahoo.com.mx (Gloria) wrote in message news:<334b61a7.0404282149.1839acf1@.posting.google.com>...
> The fact is that when I try to make a connection from Visual Basic, I
> have to specified the provider of OLE DB, so I use Microsoft OLE DB
> Provider for SQL Sever, and when I try to check the connection there's
> an error, there is no problem with Visual Basic, so I think that I do
> something wrong with the SQL SERVER installation.
> Is there anything that you suggest I can do?

Have you installed the SQL Server client on your laptop?|||Not quite sure what you mean by "see SQL Server as a provider".

1. You need to have the SQL Server Client Tools installed on your
laptop.

2. Your laptop needs to be able to see the server in Network.

3. You need to "register" your database in the EnterpriseManager on
your laptop.

Alternatively, if you mean you can't create a UDL, the steps are:
A. In Windows Explorer, select File | New | text file.
B. Rename the resulting textfile to have .udl as its extension,
e.g. MyDatabase.udl. You will get a warning about changing the file
extension, ignore it.
C. Open the udl. Here's the stupid part -- when you open it, it
will be on the SECOND page of the wizard, which is only for ODBC
connections. You have to go to the FIRST page to find the SQL Server
OLE DB provider.
D. Now you can define your connection string like
Dim MyDB As Connection
Set MyDB = New Connection
MyDB.ConnectionString = "file name=c:\MyDatabase.udl"

HTH :)

On 28 Apr 2004 12:34:47 -0700, gloriarr2001@.yahoo.com.mx (Gloria)
wrote:

>Hi, I'm doing a proyect with Visual Basic where I have to use a
>database that I've already made on SQL SERVER. In my computer I had to
>install WINDOWS 2000 family server, to be able to install SQL SERVER
>as server not as a client, I can see perfectly and totally the
>database from VB.
>The problem is that now I have a laptop, and I want to continue
>developing on it, I already installed everything like in the other
>one, but I can't see SQL SERVER as a provider when I want to make the
>connection. So I don't know if I have to do something special in order
>to see it from Visual Basic.
>I don't want to make a network, I just want to keep with the proyect
>from the laptop.
>Please somebody help me.|||Well, I don't want to make a network, so there's no need to install
SQL as client on my laptop, I just want to develop on it, and the
problem appears when I creat the UDL, during I try to choose the
database, and an error about the provider appears (that it can be
use).

What do you think I can do?|||>Well, I don't want to make a network, so there's no need to install
>SQL as client on my laptop, I just want to develop on it, and the
>problem appears when I creat the UDL, during I try to choose the
>database, and an error about the provider appears (that it can be
>use).
>What do you think I can do?

Tell us what the error msg is.

Randy
http://members.aol.com/rsmeiner|||Gloria (gloriarr2001@.yahoo.com.mx) writes:
> Well, I don't want to make a network, so there's no need to install
> SQL as client on my laptop, I just want to develop on it, and the
> problem appears when I creat the UDL, during I try to choose the
> database, and an error about the provider appears (that it can be
> use).

I don't understand what you mean by "make a network", but since you
gooc have good use for having Query Analyzer and friends on the
machine while developing, I suggest that you install the client
part of SQL Server. You are not making a network that way anyway.

--
Erland Sommarskog, SQL Server MVP, sommar@.algonet.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techin.../2000/books.asp|||How do you expect to talk to the database on the other box if the
laptop isn't connected to it?

On 4 May 2004 11:37:22 -0700, gloriarr2001@.yahoo.com.mx (Gloria)
wrote:

>Well, I don't want to make a network, so there's no need to install
>SQL as client on my laptop, I just want to develop on it, and the
>problem appears when I creat the UDL, during I try to choose the
>database, and an error about the provider appears (that it can be
>use).
>What do you think I can do?|||Well, I don't want to make a network, so there's no need to install
SQL as client on my laptop, I just want to develop on it, and the
problem appears when I creat the UDL, during I try to choose the
database, and an error about the provider appears (that it can be
use).

What do you think I can do?|||>Well, I don't want to make a network, so there's no need to install
>SQL as client on my laptop, I just want to develop on it, and the
>problem appears when I creat the UDL, during I try to choose the
>database, and an error about the provider appears (that it can be
>use).
>What do you think I can do?

Tell us what the error msg is.

Randy
http://members.aol.com/rsmeiner|||Gloria (gloriarr2001@.yahoo.com.mx) writes:
> Well, I don't want to make a network, so there's no need to install
> SQL as client on my laptop, I just want to develop on it, and the
> problem appears when I creat the UDL, during I try to choose the
> database, and an error about the provider appears (that it can be
> use).

I don't understand what you mean by "make a network", but since you
gooc have good use for having Query Analyzer and friends on the
machine while developing, I suggest that you install the client
part of SQL Server. You are not making a network that way anyway.

--
Erland Sommarskog, SQL Server MVP, sommar@.algonet.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techin.../2000/books.asp|||How do you expect to talk to the database on the other box if the
laptop isn't connected to it?

On 4 May 2004 11:37:22 -0700, gloriarr2001@.yahoo.com.mx (Gloria)
wrote:

>Well, I don't want to make a network, so there's no need to install
>SQL as client on my laptop, I just want to develop on it, and the
>problem appears when I creat the UDL, during I try to choose the
>database, and an error about the provider appears (that it can be
>use).
>What do you think I can do?|||Ellen K. <72322.enno.esspeeayem.1016@.compuserve.com> wrote in message news:<nguh90duagqp6p85vqmg6664n8babe7r8d@.4ax.com>...
> How do you expect to talk to the database on the other box if the
> laptop isn't connected to it?
Well, wath I want to do is have the database in the laptop, I already
created there, I can use the query analyzer, but in the UDL
construction, there's an error after I dropdown on the databases box.sql

Monday, March 26, 2012

Link servers through proxy

My main development computer, XP Pro, (call it DEV) has 2 Ethernet
adapters. Adapter A goes out to a router, and can see the world, and
can see a remote SQL server (SQLREMOTE) that I have access to.
I can use SQL 2000 Enterprise Manager, Query Analyzer, and SQL 2005
Management Studio to access several database on the SQLREMOTE server
(default instance) using TCP/IP and an alias that I have set up, with a
specific port number.
Adapter B on my DEV computer is cabled directly to my SQL test computer
(SQLTEST) which only has one network adapter. On my DEV computer, using
the same three tools, I can see the databases on the SQLTEST computer
just fine.
This has worked for years. The DEV computer runs ProxyPlus to give the
SQLTEST computer some access to the Internet... for Windows Update and
such.
After all that was set up and working fine, I recently got a VPN
connection to the same network that the SQLREMOTE server lives on.
(Actually there are three SQL servers on that remote system.) This
might be an irrelevant detail.
Now I would like to link the two SQL servers together. I need to
occasionally get data from SQLREMOTE into SQLTEST. Since my DEV
computer can see both, it seems like this is doable.
I have read BOL and searched Google and haven't figured out how to do
this yet.
Q1: Are "Linked Servers" replacing "Remote Servers"? Do I have to worry
about "Remote Servers" at all?
Q2: Do I need a "route" statement on SQLTEST so that it can at least
ping the remote IP address that the SQLREMOTE server lives on?
Q3: Knowing "where" things actually run is a little confusing. When I
have a query window open on SQLREMOTE, it seems as if I am "at" the
remote location: I can't do a Bulk Insert using local drive letters,
for example. This is never made quite clear in the documentation that I
have read.
(If I use the tool SQLDelta on my DEV computer, I can link to both
SQLTEST and SQLREMOTE and synchronize data or schemas. This apparently
makes two separate connections and acts as the middleman.)
Do I actually need for SQLTEST to link to (or "see") SQLREMOTE in order
to perform distributed queries that use data from both servers?
Thanks for any advice or pointers.
David WalkerHi David,
I understand that you would like to fetch data from SQLREMOTE into SQLTEST
via your DEV computer since it can see both SQLREMOTE and SQLTEST. You
would like to know how to do that.
If I have misunderstood, please let me know.
You can use DTS to export the data from SQLREMOTE to SQLTEST. Open your SQL
Server Enterprise Manager, expand your server and Data Transfermation
Services, create a new package,
drag two Microsoft OLE DB Provider for SQL Server, one for SQLREMOTE as
data source, the other for SQLTEST as data destination, and use Transform
Data Task to link them. After you define the Transform Data Task to
transfer which tables, you can save the package execute it.
Also, if the business logic is complex, you may write a T-SQL statement to
transfer the data. First run sp_addlinkedserver and sp_addlinkedsrvlogin to
add SQLREMOTE and SQLTEST as linked servers in your SQL Server on the DEV
computer. After that, you can query the remote tables on SQLREMOTE and
SQLTEST from DEV like this:
INSERT INTO SQLTEST.testdb.dbo.tableA SELECT column1, column2, column3 FROM
SQLREMOTE.testdb.dbo.tableA
Ofcourse, you can also use OPENQUERY for distributed queries. For more
information, please refer to SQL Server BOL.
For your three questions,
Q1: Are "Linked Servers" replacing "Remote Servers"? Do I have to worry
about "Remote Servers" at all?
You just need register a linked server via sp_addlinkedserver and
sp_addlinkedsrvlogin in your SQL Server on DEV. Is this your meanning of
replacing "remote servers"?
Q2: Do I need a "route" statement on SQLTEST so that it can at least ping
the remote IP address that the SQLREMOTE server lives on?
No need. SQLTest has no need to know the existance of SQLREMOTE since DEV
knows.
Q3: Do I actually need for SQLTEST to link to (or "see") SQLREMOTE in order
to perform distributed queries that use data from both servers?
No.
Hope this helps. If you have any other questions or concerns, please feel
free to let me know.
Best regards,
Charles Wang
Microsoft Online Community Support
========================================
=============
Get notification to my posts through email? Please refer to:
http://msdn.microsoft.com/subscript...ault.aspx#notif
ications
If you are using Outlook Express, please make sure you clear the check box
"Tools/Options/Read: Get 300 headers at a time" to see your reply promptly.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscript...t/default.aspx.
========================================
==============
When responding to posts, please "Reply to Group" via
your newsreader so that others may learn and benefit
from this issue.
========================================
==============
This posting is provided "AS IS" with no warranties, and confers no rights.
========================================
==============|||changliw@.online.microsoft.com (Charles Wang[MSFT]) wrote in
news:zmDIGfjsHHA.2528@.TK2MSFTNGHUB02.phx.gbl:

> Hi David,
> I understand that you would like to fetch data from SQLREMOTE into
> SQLTEST via your DEV computer since it can see both SQLREMOTE and
> SQLTEST. You would like to know how to do that.
> If I have misunderstood, please let me know.
>
[...]

> Also, if the business logic is complex, you may write a T-SQL
> statement to transfer the data. First run sp_addlinkedserver and
> sp_addlinkedsrvlogin to add SQLREMOTE and SQLTEST as linked servers in
> your SQL Server on the DEV computer. After that, you can query the
> remote tables on SQLREMOTE and SQLTEST from DEV like this:
> INSERT INTO SQLTEST.testdb.dbo.tableA SELECT column1, column2, column3
> FROM SQLREMOTE.testdb.dbo.tableA
>
This is the approach I want to take.
BUT, I don't have a SQL server on the DEV computer -- I'm just running
the SQL client tools on the DEV server.

> Hope this helps. If you have any other questions or concerns, please
> feel free to let me know.
>
> Best regards,
> Charles Wang
> Microsoft Online Community Support
> ========================================
=============
I would like to know how to get the SQLTEST SQL server to see the
SQLREMOTE SQL server.
If you could help me with that, it would be great.
Thanks.
David Walker|||Hi David,
Sorry for the misunderstanding.
I had noticed that you said:
"I can use SQL 2000 Enterprise Manager, Query Analyzer, and SQL 2005
Management Studio to access several database on the SQLREMOTE server
(default instance) using TCP/IP and an alias that I have set up, with a
specific port number."
I had thought that there was a SQL Server on your DEV computer.
If you do not want to install a SQL Server on your DEV computer, you need
to at least allow one direction of the network communications accessible
from SQLTest to SQLREMOTE or SQLREMOTE to SQLTest. Assume that you can
access SQLREMOTE from SQLTest, you can run the T-SQL statement from SQLTest
to fetch data from SQLREMOTE.
Of course you can also develop an application for extracting data from
SQLREMOTE to SQLTest. In this case, SQLREMOTE and SQLTest need not to know
each other.
Appreciate your understanding that our SQL Server newsgroup is focused on
break/fix issue of SQL Server. It seemed that this is a network
configuration issue, if my suggestions here are not your appropriate for
your situation, I recommend that you contact your network administrator or
have a new post at the community microsoft.public.windows.server.networking
for the most appropriate assistance.
If you have any other questions or concerns, please feel free to let us
know.
Best regards,
Charles Wang
Microsoft Online Community Support
========================================
=============
Get notification to my posts through email? Please refer to:
http://msdn.microsoft.com/subscript...ault.aspx#notif
ications
If you are using Outlook Express, please make sure you clear the check box
"Tools/Options/Read: Get 300 headers at a time" to see your reply promptly.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscript...t/default.aspx.
========================================
==============
When responding to posts, please "Reply to Group" via
your newsreader so that others may learn and benefit
from this issue.
========================================
==============
This posting is provided "AS IS" with no warranties, and confers no rights.
========================================
==============|||changliw@.online.microsoft.com (Charles Wang[MSFT]) wrote in
news:MbNRiawsHHA.3896@.TK2MSFTNGHUB02.phx.gbl:

> Hi David,
> Sorry for the misunderstanding.
> I had noticed that you said:
> "I can use SQL 2000 Enterprise Manager, Query Analyzer, and SQL 2005
> Management Studio to access several database on the SQLREMOTE server
> (default instance) using TCP/IP and an alias that I have set up, with
> a specific port number."
> I had thought that there was a SQL Server on your DEV computer.
> If you do not want to install a SQL Server on your DEV computer, you
> need to at least allow one direction of the network communications
> accessible from SQLTest to SQLREMOTE or SQLREMOTE to SQLTest. Assume
> that you can access SQLREMOTE from SQLTest, you can run the T-SQL
> statement from SQLTest to fetch data from SQLREMOTE.
> Of course you can also develop an application for extracting data from
> SQLREMOTE to SQLTest. In this case, SQLREMOTE and SQLTest need not to
> know each other.
> Appreciate your understanding that our SQL Server newsgroup is focused
> on break/fix issue of SQL Server. It seemed that this is a network
> configuration issue, if my suggestions here are not your appropriate
> for your situation, I recommend that you contact your network
> administrator or have a new post at the community
> microsoft.public.windows.server.networking for the most appropriate
> assistance.
> If you have any other questions or concerns, please feel free to let
> us know.
> Best regards,
> Charles Wang
> Microsoft Online Community Support
> ========================================
=============
Thanks, I got the connection to work by the correct setup of the port
forwarding through the proxy server on my DEV machine.
I have a somewhat-related problem which I will put in a new post...
since I don't think it's a proxy issue.
Thanks for your help.
David Walker

Link servers through proxy

My main development computer, XP Pro, (call it DEV) has 2 Ethernet
adapters. Adapter A goes out to a router, and can see the world, and
can see a remote SQL server (SQLREMOTE) that I have access to.
I can use SQL 2000 Enterprise Manager, Query Analyzer, and SQL 2005
Management Studio to access several database on the SQLREMOTE server
(default instance) using TCP/IP and an alias that I have set up, with a
specific port number.
Adapter B on my DEV computer is cabled directly to my SQL test computer
(SQLTEST) which only has one network adapter. On my DEV computer, using
the same three tools, I can see the databases on the SQLTEST computer
just fine.
This has worked for years. The DEV computer runs ProxyPlus to give the
SQLTEST computer some access to the Internet... for Windows Update and
such.
After all that was set up and working fine, I recently got a VPN
connection to the same network that the SQLREMOTE server lives on.
(Actually there are three SQL servers on that remote system.) This
might be an irrelevant detail.
Now I would like to link the two SQL servers together. I need to
occasionally get data from SQLREMOTE into SQLTEST. Since my DEV
computer can see both, it seems like this is doable.
I have read BOL and searched Google and haven't figured out how to do
this yet.
Q1: Are "Linked Servers" replacing "Remote Servers"? Do I have to worry
about "Remote Servers" at all?
Q2: Do I need a "route" statement on SQLTEST so that it can at least
ping the remote IP address that the SQLREMOTE server lives on?
Q3: Knowing "where" things actually run is a little confusing. When I
have a query window open on SQLREMOTE, it seems as if I am "at" the
remote location: I can't do a Bulk Insert using local drive letters,
for example. This is never made quite clear in the documentation that I
have read.
(If I use the tool SQLDelta on my DEV computer, I can link to both
SQLTEST and SQLREMOTE and synchronize data or schemas. This apparently
makes two separate connections and acts as the middleman.)
Do I actually need for SQLTEST to link to (or "see") SQLREMOTE in order
to perform distributed queries that use data from both servers?
Thanks for any advice or pointers.
David Walker
Hi David,
I understand that you would like to fetch data from SQLREMOTE into SQLTEST
via your DEV computer since it can see both SQLREMOTE and SQLTEST. You
would like to know how to do that.
If I have misunderstood, please let me know.
You can use DTS to export the data from SQLREMOTE to SQLTEST. Open your SQL
Server Enterprise Manager, expand your server and Data Transfermation
Services, create a new package,
drag two Microsoft OLE DB Provider for SQL Server, one for SQLREMOTE as
data source, the other for SQLTEST as data destination, and use Transform
Data Task to link them. After you define the Transform Data Task to
transfer which tables, you can save the package execute it.
Also, if the business logic is complex, you may write a T-SQL statement to
transfer the data. First run sp_addlinkedserver and sp_addlinkedsrvlogin to
add SQLREMOTE and SQLTEST as linked servers in your SQL Server on the DEV
computer. After that, you can query the remote tables on SQLREMOTE and
SQLTEST from DEV like this:
INSERT INTO SQLTEST.testdb.dbo.tableA SELECT column1, column2, column3 FROM
SQLREMOTE.testdb.dbo.tableA
Ofcourse, you can also use OPENQUERY for distributed queries. For more
information, please refer to SQL Server BOL.
For your three questions,
Q1: Are "Linked Servers" replacing "Remote Servers"? Do I have to worry
about "Remote Servers" at all?
You just need register a linked server via sp_addlinkedserver and
sp_addlinkedsrvlogin in your SQL Server on DEV. Is this your meanning of
replacing "remote servers"?
Q2: Do I need a "route" statement on SQLTEST so that it can at least ping
the remote IP address that the SQLREMOTE server lives on?
No need. SQLTest has no need to know the existance of SQLREMOTE since DEV
knows.
Q3: Do I actually need for SQLTEST to link to (or "see") SQLREMOTE in order
to perform distributed queries that use data from both servers?
No.
Hope this helps. If you have any other questions or concerns, please feel
free to let me know.
Best regards,
Charles Wang
Microsoft Online Community Support
================================================== ===
Get notification to my posts through email? Please refer to:
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications
If you are using Outlook Express, please make sure you clear the check box
"Tools/Options/Read: Get 300 headers at a time" to see your reply promptly.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
================================================== ====
When responding to posts, please "Reply to Group" via
your newsreader so that others may learn and benefit
from this issue.
================================================== ====
This posting is provided "AS IS" with no warranties, and confers no rights.
================================================== ====
|||changliw@.online.microsoft.com (Charles Wang[MSFT]) wrote in
news:zmDIGfjsHHA.2528@.TK2MSFTNGHUB02.phx.gbl:

> Hi David,
> I understand that you would like to fetch data from SQLREMOTE into
> SQLTEST via your DEV computer since it can see both SQLREMOTE and
> SQLTEST. You would like to know how to do that.
> If I have misunderstood, please let me know.
>
[...]

> Also, if the business logic is complex, you may write a T-SQL
> statement to transfer the data. First run sp_addlinkedserver and
> sp_addlinkedsrvlogin to add SQLREMOTE and SQLTEST as linked servers in
> your SQL Server on the DEV computer. After that, you can query the
> remote tables on SQLREMOTE and SQLTEST from DEV like this:
> INSERT INTO SQLTEST.testdb.dbo.tableA SELECT column1, column2, column3
> FROM SQLREMOTE.testdb.dbo.tableA
>
This is the approach I want to take.
BUT, I don't have a SQL server on the DEV computer -- I'm just running
the SQL client tools on the DEV server.

> Hope this helps. If you have any other questions or concerns, please
> feel free to let me know.
>
> Best regards,
> Charles Wang
> Microsoft Online Community Support
> ================================================== ===
I would like to know how to get the SQLTEST SQL server to see the
SQLREMOTE SQL server.
If you could help me with that, it would be great.
Thanks.
David Walker
|||Hi David,
Sorry for the misunderstanding.
I had noticed that you said:
"I can use SQL 2000 Enterprise Manager, Query Analyzer, and SQL 2005
Management Studio to access several database on the SQLREMOTE server
(default instance) using TCP/IP and an alias that I have set up, with a
specific port number."
I had thought that there was a SQL Server on your DEV computer.
If you do not want to install a SQL Server on your DEV computer, you need
to at least allow one direction of the network communications accessible
from SQLTest to SQLREMOTE or SQLREMOTE to SQLTest. Assume that you can
access SQLREMOTE from SQLTest, you can run the T-SQL statement from SQLTest
to fetch data from SQLREMOTE.
Of course you can also develop an application for extracting data from
SQLREMOTE to SQLTest. In this case, SQLREMOTE and SQLTest need not to know
each other.
Appreciate your understanding that our SQL Server newsgroup is focused on
break/fix issue of SQL Server. It seemed that this is a network
configuration issue, if my suggestions here are not your appropriate for
your situation, I recommend that you contact your network administrator or
have a new post at the community microsoft.public.windows.server.networking
for the most appropriate assistance.
If you have any other questions or concerns, please feel free to let us
know.
Best regards,
Charles Wang
Microsoft Online Community Support
================================================== ===
Get notification to my posts through email? Please refer to:
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications
If you are using Outlook Express, please make sure you clear the check box
"Tools/Options/Read: Get 300 headers at a time" to see your reply promptly.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
================================================== ====
When responding to posts, please "Reply to Group" via
your newsreader so that others may learn and benefit
from this issue.
================================================== ====
This posting is provided "AS IS" with no warranties, and confers no rights.
================================================== ====
|||changliw@.online.microsoft.com (Charles Wang[MSFT]) wrote in
news:MbNRiawsHHA.3896@.TK2MSFTNGHUB02.phx.gbl:

> Hi David,
> Sorry for the misunderstanding.
> I had noticed that you said:
> "I can use SQL 2000 Enterprise Manager, Query Analyzer, and SQL 2005
> Management Studio to access several database on the SQLREMOTE server
> (default instance) using TCP/IP and an alias that I have set up, with
> a specific port number."
> I had thought that there was a SQL Server on your DEV computer.
> If you do not want to install a SQL Server on your DEV computer, you
> need to at least allow one direction of the network communications
> accessible from SQLTest to SQLREMOTE or SQLREMOTE to SQLTest. Assume
> that you can access SQLREMOTE from SQLTest, you can run the T-SQL
> statement from SQLTest to fetch data from SQLREMOTE.
> Of course you can also develop an application for extracting data from
> SQLREMOTE to SQLTest. In this case, SQLREMOTE and SQLTest need not to
> know each other.
> Appreciate your understanding that our SQL Server newsgroup is focused
> on break/fix issue of SQL Server. It seemed that this is a network
> configuration issue, if my suggestions here are not your appropriate
> for your situation, I recommend that you contact your network
> administrator or have a new post at the community
> microsoft.public.windows.server.networking for the most appropriate
> assistance.
> If you have any other questions or concerns, please feel free to let
> us know.
> Best regards,
> Charles Wang
> Microsoft Online Community Support
> ================================================== ===
Thanks, I got the connection to work by the correct setup of the port
forwarding through the proxy server on my DEV machine.
I have a somewhat-related problem which I will put in a new post...
since I don't think it's a proxy issue.
Thanks for your help.
David Walker

Friday, March 9, 2012

Limited Remote Login db access

I have connected my desktop and laptop computer at home, on my desktop I have a series of db's under my default named instance <computername>/sqlexpress and I have created access logins using windows auth. When I connect to the desktop from the laptop using tcp:<computername>\sqlexpress\userid I can only see the system db's...I am trying to view adventure works, which I can see on the desktop fine using the same login...any ideas?

Thanks,

Rob

Do you have a domain controller and home network?

If not, then you must create use SQL logins -you cannot use Windows authentication without an Active Directory (domain controller).

|||

I don't even know what those things mean.

How would I go about doing this with SQL logins?

Rob

|||

I suggest you follow the steps under "To configure AdventureWorks to work with Web server controls" on the following page from the Books Online.

http://msdn2.microsoft.com/en-us/library/ms310325(vs.80).aspx

Hopefully this helps,

John

|||

So I read over the link provided...

I have completed the first part and added it to the server. I can access the database on my desktop machine, when I login from the laptop however (using the same windows login) I can't access to database...do I need to also add something to make it accessible remotely? I don't really understand what "configure AdventureWorks to work with Web server controls
" means..

Rob

|||

These resources might help.

Configuration -Configure SQL Server 2005 to allow remote connections
http://support.microsoft.com/default.aspx?scid=kb;EN-US;914277

Configuration -Connect to SQL Express from "downlevel clients"
http://blogs.msdn.com/sqlexpress/archive/2004/07/23/192044.aspx

|||

I have done this...as I stated before I can connect fine its just that I can't see anything other than system db's...I imagine I'm missing something stupid, like perhaps I didn't configure the login correctly?

Rob

|||

The login needs to be provided permission to access the databases.

Add the login to the appropriate database role.

|||

Ok first...I am running XP home on both the desktop and laptop...and the logins are windows auth.

if I want full access from the remote connection, where do I change the role of the login? is it in the login menu or the databases menu?

Rob

|||

Look back at the first response given to your problem.

Windows authentication will not work in your situation -you do not have a domain controller.

You will need to establish SQL Logins in each server, and assign permissions accordingly.

Look in Books Online about creating SQL Logins.

Wednesday, March 7, 2012

Limited Remote Login access

Hello all,

I'm very new to this so excuse my naiveity...I have connected my desktop and laptop computer at home, on my desktop I have a series of db's under my default named instance <computername>/sqlexpress and I have created access logins using windows auth. When I connect to the desktop from the laptop using tcp:<computername>\sqlexpress\userid I can only see the systemdb's...I am trying to view adventure works, just to see how this remote connection stuff works...any ideas?

Thanks,

Rob

See my response to your post in the 'Data Access' forum.