Showing posts with label machine. Show all posts
Showing posts with label machine. Show all posts

Wednesday, March 21, 2012

Database setup script

I have MSDE installed on my machine as was wondering what the NETSDK is in the following commands.

@.rem Uncomment the following line for MSDE
@.rem set DBNAME=(local)\NETSDK
set DBNAME=(local)\NETSDK

Thanks,
Bob HIt would appear that NETSDK is the "instance name" of the MSDE installation.

With SQL Server 2000 (and MSDE), multiple instances of SQL Server can be installed. The first uses the "default instance"; that is, to access it, simply reference the name of the server in a connection string. To reference a non-default instance, follow the server with \<instance name>sql

Sunday, March 11, 2012

Database running slow

To all,
I am running SQL Server 2000 SP3 and I have 6 database running on one
machine, in one instance, which has 4GB of ram. All the database are running
fine, except for one. The users are complaining of slowness and query
timeouts. The network traffic is fine and I am not sure what else it could
be. I have also noticed that one of the connections had a waittype called
'CXPACKET'
Does anyone know what could be causing the problem?
Thanks in advance,
BelindaCan you post the query this happens on? How many CPU does the server has and
speed? How are the disks set-up?
CXPACKET It means that one thread of the query is is waiting for a message
packet from another, and the one it is waiting on is either blocked by a
traditional cause or has hit some sort of parallelism bug.
Try Using MAXDOP(1) option on your queries, else make sure you have the
latest service packs applied.
Yovan Fernandez
"Belinda Rodriguez" <rodrigub@.symbol.com> wrote in message
news:e$971JxdDHA.3332@.TK2MSFTNGP09.phx.gbl...
> To all,
> I am running SQL Server 2000 SP3 and I have 6 database running on one
> machine, in one instance, which has 4GB of ram. All the database are
running
> fine, except for one. The users are complaining of slowness and query
> timeouts. The network traffic is fine and I am not sure what else it
could
> be. I have also noticed that one of the connections had a waittype called
> 'CXPACKET'
> Does anyone know what could be causing the problem?
> Thanks in advance,
> Belinda
>

Database Restore Woes

I attempt to back up a database on one server and restore it on my local machine.

This is what the query text looks like:

restore database model from
Disk='c:\JQJ\mydump\model.bak'
with replace

I get this error:

The backup of the system database on device c:\JQJ\mydump\model.bak cannot be restored because it was created by a
different version of the server
(134217922) than this server (134218488).

The other server product version is: 8.00.194(RTM)
The server on my machine is 8.00.760(SP3)

1.How can I make this restore work? Seems to me I have the later version, so I should be able to handle it. Mine is a
10-user, and the other is enterprise.

2.Also I need to be able to force a different path and even database name: The source server where I create the backup file
may have a different location than I have on my machine, so what parameters can I give the command so that it will use the
location I specifiy? The backup file will have the location information relative to the source server, which I can not
always use. This means I will need to programatically extract that location information on my machine. (I can't hard code
it, since other people with different installation setups will use my program on their machines).

3.The database name on the source server may be ABC, but I may want to restore over XYZ. How can I force that? Perhaps it
would be the same parameter I need for 2.

Thanks,

JonJon Jacobs (JonJacobsAtcomcast.net) writes:
> I attempt to back up a database on one server and restore it on my local
> machine.
> This is what the query text looks like:
> restore database model from
> Disk='c:\JQJ\mydump\model.bak'
> with replace
> I get this error:
> The backup of the system database on device c:\JQJ\mydump\model.bak
> cannot be restored because it was created by a different version of the
> server (134217922) than this server (134218488).
> The other server product version is: 8.00.194(RTM)
> The server on my machine is 8.00.760(SP3)
> 1.How can I make this restore work? Seems to me I have the later
> version, so I should be able to handle it. Mine is a 10-user, and the
> other is enterprise.

I would expect that it is possible to restore a backup from SQL 2000
RTM on SQL 2000 SP3, but it is very clear that it is not possible in
this case. But then again, you are not restoring any database - you
are restoring model. That's a system database, so I assume it is special.

Question: are you restoring model, because you really need a copy of model
from the other box on your machine? Or did you just pick model as a test
case? In the former case, the easiest may be to script any user objects
you have in model, and run the script. I would not really expect that
you have any data in model. If you are just testing, try Northwind or
pubs instead.

> 2.Also I need to be able to force a different path and even database
> name: The source server where I create the backup file may have a
> different location than I have on my machine, so what parameters can I
> give the command so that it will use the location I specifiy?

You use MOVE:

RESTORE DATABASE mydatase FROM disk = 'C:\temp\mydump.bak'
WITH MOVE 'mydatabase_data' TO 'e:\mylocation\mydatabase.mdf',
MOVE 'mydatabase_log' TO 'f:\myloglocation\mydatabase.ldf',
REPLACE

It does not seem that you can use variable in place of the device
and paths, but you could build the BACKUP command dynamically and
execute with EXEC(@.sql).

> 3.The database name on the source server may be ABC, but I may want to
> restore over XYZ. How can I force that? Perhaps it would be the same
> parameter I need for 2.

RESTORE DATABASE XYZ ...

There is no law that says that the database you restore to must have
the same name as the source database.
--
Erland Sommarskog, SQL Server MVP, esquel@.sommarskog.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techin.../2000/books.asp|||>Question: are you restoring model, because you really need a copy of model
>from the other box on your machine? Or did you just pick model as a test
>case? In the former case, the easiest may be to script any user objects
>you have in model, and run the script. I would not really expect that
>you have any data in model. If you are just testing, try Northwind or
>pubs instead.

Yes, Model was just for testing. I will try another database.

>You use MOVE:
> RESTORE DATABASE mydatase FROM disk = 'C:\temp\mydump.bak'
> WITH MOVE 'mydatabase_data' TO 'e:\mylocation\mydatabase.mdf',
> MOVE 'mydatabase_log' TO 'f:\myloglocation\mydatabase.ldf',
> REPLACE

Excellent. I will put that to use.

>It does not seem that you can use variable in place of the device
>and paths, but you could build the BACKUP command dynamically and
>execute with EXEC(@.sql).

I will need to build the command dynamically as you say. But first I need to extract the destination path. How?

>RESTORE DATABASE XYZ ...
>There is no law that says that the database you restore to must have
>the same name as the source database.

I've been trying that to no avail. Well, maybe it will work after I get the other issues resolved, but so far, the error
messages complain about the original database name.

Thank you very, very much.

Jon|||Jon Jacobs (JonJacobsAtcomcast.net) writes:
> I will need to build the command dynamically as you say. But first I
> need to extract the destination path. How?

Well, I silently passed over that question, since I can't really tell
from a distance where you want to have your databases.

But assuming that you want the database in the default location of the
server.

This information is stored in the registry of the server, and you can
retrieve it with xp_regread. However, this is a undocumented and
unsupported function. (Note also that with SQL 2000 SP4, the function
will be restricted to access to SQL Server own values.)

A somewhat more roundabout way of doing it, is this:

CREATE DATABASE temp
SELECT @.path = filename FROM sysdatabases WHERE name = 'temp'
SELECT @.path = replace(@.path, '//', '/')
SELECT @.path = substring(@.path, 1, len(@.path) - len('temp.mdf'))
DROP DATABASE temp

>>RESTORE DATABASE XYZ ...
>>
>>There is no law that says that the database you restore to must have
>>the same name as the source database.
> I've been trying that to no avail. Well, maybe it will work after I get
> the other issues resolved, but so far, the error messages complain about
> the original database name.

You to use WITH REPLACE in this case. Since you already had this in
your example, I did not mention this.

--
Erland Sommarskog, SQL Server MVP, esquel@.sommarskog.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techin.../2000/books.asp

Thursday, March 8, 2012

Database restore onto another machine

Hi,
I'm a Sybase DBA on UNIX and I don't know that much about MS SQL Server
2000, but I was just given responsibility for an MS SQL Server 2000 and my
first step was to install MSDE on my desktop and take a backup from the SQL
Server 2000 and try to restore it onto MSDE. so I can play with it.
1. Is it possible to take a backup from SQL Server and load it into MSDE
2. If yes, in Sybase all I have do is create the database on another machine
and load it from the backup file as follow:
Load database dbname from file
This same syntax does not work in MS SQL Server 2000.
I'm going over the online books, but so far I'm very confused. Can anyone
give me a simple summary of whatI need to do.
ThanksHi Germano
In SQL Server 2000, you don't even need to create the db before loading.
What error are you getting when you run the command?
In SQL Server, we use RESTORE instead of LOAD:
RESTORE DATABASE mydb
FROM DISK = 'c:\....
Also, the default is to not recover the database so that tlog backups can be
applied, so you must add WITH RECOVERY when you are done with the restore
operations, to make the db accessible.
Please feel free to ask more questions after thoroughly reading Books
Online. There are some important differences between Sybase backup/restore
and SQL Server backup/restore.
--
HTH
--
Kalen Delaney
SQL Server MVP
www.SolidQualityLearning.com
"Germano" <Germano_Silva@.Brown.edu> wrote in message
news:uwf6h1CjDHA.556@.TK2MSFTNGP11.phx.gbl...
> Hi,
> I'm a Sybase DBA on UNIX and I don't know that much about MS SQL Server
> 2000, but I was just given responsibility for an MS SQL Server 2000 and my
> first step was to install MSDE on my desktop and take a backup from the
SQL
> Server 2000 and try to restore it onto MSDE. so I can play with it.
> 1. Is it possible to take a backup from SQL Server and load it into MSDE
> 2. If yes, in Sybase all I have do is create the database on another
machine
> and load it from the backup file as follow:
> Load database dbname from file
> This same syntax does not work in MS SQL Server 2000.
> I'm going over the online books, but so far I'm very confused. Can anyone
> give me a simple summary of whatI need to do.
> Thanks
>
>|||This is a multi-part message in MIME format.
--=_NextPart_000_01F0_01C38C0D.8D14F410
Content-Type: text/plain;
charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable
Check out RESTORE DATABASE in the BOL. Also, beware of logins being out =of synch with users in the database. You can correct this with =sp_change_users_login.
-- Tom
---
Thomas A. Moreau, BSc, PhD, MCSE, MCDBA
SQL Server MVP
Columnist, SQL Server Professional
Toronto, ON Canada
www.pinnaclepublishing.com/sql
"Germano" <Germano_Silva@.Brown.edu> wrote in message =news:uwf6h1CjDHA.556@.TK2MSFTNGP11.phx.gbl...
Hi,
I'm a Sybase DBA on UNIX and I don't know that much about MS SQL Server
2000, but I was just given responsibility for an MS SQL Server 2000 and =my
first step was to install MSDE on my desktop and take a backup from the =SQL
Server 2000 and try to restore it onto MSDE. so I can play with it.
1. Is it possible to take a backup from SQL Server and load it into MSDE
2. If yes, in Sybase all I have do is create the database on another =machine
and load it from the backup file as follow:
Load database dbname from file
This same syntax does not work in MS SQL Server 2000.
I'm going over the online books, but so far I'm very confused. Can =anyone
give me a simple summary of whatI need to do.
Thanks
--=_NextPart_000_01F0_01C38C0D.8D14F410
Content-Type: text/html;
charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
&

Check out RESTORE DATABASE in the =BOL. Also, beware of logins being out of synch with users in the database. =You can correct this with sp_change_users_login.
-- Tom
---T=homas A. Moreau, BSc, PhD, MCSE, MCDBASQL Server MVPColumnist, SQL =Server ProfessionalToronto, ON Canadahttp://www.pinnaclepublishing.com/sql">www.pinnaclepublishing.com=/sql
"Germano" =wrote in message news:uwf6h1CjDHA.556@.T=K2MSFTNGP11.phx.gbl...Hi,I'm a Sybase DBA on UNIX and I don't know that much about MS SQL =Server2000, but I was just given responsibility for an MS SQL Server 2000 and =myfirst step was to install MSDE on my desktop and take a backup from the =SQLServer 2000 and try to restore it onto MSDE. so I can play with it.1. Is it =possible to take a backup from SQL Server and load it into MSDE2. If yes, in =Sybase all I have do is create the database on another machineand load it =from the backup file as follow: Load =database dbname from fileThis same syntax does not work in MS SQL Server 2000.I'm going over the online books, but so far I'm very =confused. Can anyonegive me a simple summary of whatI need to do.Thanks

--=_NextPart_000_01F0_01C38C0D.8D14F410--|||Check out this link ->
http://support.microsoft.com/default.aspx?scid=kb;en-
us;307775
You can move the backup file to the destination machine
and use Enterprise Manager to restore it to the new
location. Just highlight the Databases node and select All
Tasks and select Restore Database. Follow the wizard after
that.
Edgardo Valdez
MCSD, MCDBA, MCSE, MCP+I
http://www.edgardovaldez.us/
>--Original Message--
>Hi,
>I'm a Sybase DBA on UNIX and I don't know that much about
MS SQL Server
>2000, but I was just given responsibility for an MS SQL
Server 2000 and my
>first step was to install MSDE on my desktop and take a
backup from the SQL
>Server 2000 and try to restore it onto MSDE. so I can
play with it.
>1. Is it possible to take a backup from SQL Server and
load it into MSDE
>2. If yes, in Sybase all I have do is create the database
on another machine
>and load it from the backup file as follow:
> Load database dbname from file
>This same syntax does not work in MS SQL Server 2000.
>I'm going over the online books, but so far I'm very
confused. Can anyone
>give me a simple summary of whatI need to do.
>Thanks
>
>.
>|||That did not work. Here's the error
D:\DV Backup>osql -Sdev340\NetSDK -E
1> use master
2> go
1> restore database DialVision from disk = 'd:\Dv
Backup\Dialvision_db_200309260300.bak'
2> go
Msg 5105, Level 16, State 2, Server DEV340\NETSDK, Line 1
Device activation error. The physical file name 'e:\Program Files\Microsoft
SQL
Server\mssql\Data\dialvision_data.mdf' may be incorrect.
Msg 3156, Level 16, State 1, Server DEV340\NETSDK, Line 1
File 'DVision_Data' cannot be restored to 'e:\Program Files\Microsoft SQL
Server\mssql\Data\dialvision_data.mdf'. Use WITH MOVE to identify a valid
location for the file.
Msg 5105, Level 16, State 2, Server DEV340\NETSDK, Line 1
Device activation error. The physical file name 'e:\Program Files\Microsoft
SQL
Server\mssql\Data\dialvision_log.ldf' may be incorrect.
Msg 3156, Level 16, State 1, Server DEV340\NETSDK, Line 1
File 'DVision_Log' cannot be restored to 'e:\Program Files\Microsoft SQL
Server\mssql\Data\dialvision_log.ldf'.
Use WITH MOVE to identify a valid location for the file.
Msg 3013, Level 16, State 1, Server DEV340\NETSDK, Line 1
RESTORE DATABASE is terminating abnormally.
1>
"Kalen Delaney" <replies@.public_newsgroups.com> wrote in message
news:OovDu6CjDHA.2492@.TK2MSFTNGP12.phx.gbl...
> Hi Germano
> In SQL Server 2000, you don't even need to create the db before loading.
> What error are you getting when you run the command?
> In SQL Server, we use RESTORE instead of LOAD:
> RESTORE DATABASE mydb
> FROM DISK = 'c:\....
> Also, the default is to not recover the database so that tlog backups can
be
> applied, so you must add WITH RECOVERY when you are done with the restore
> operations, to make the db accessible.
> Please feel free to ask more questions after thoroughly reading Books
> Online. There are some important differences between Sybase backup/restore
> and SQL Server backup/restore.
> --
> HTH
> --
> Kalen Delaney
> SQL Server MVP
> www.SolidQualityLearning.com
>
> "Germano" <Germano_Silva@.Brown.edu> wrote in message
> news:uwf6h1CjDHA.556@.TK2MSFTNGP11.phx.gbl...
> > Hi,
> >
> > I'm a Sybase DBA on UNIX and I don't know that much about MS SQL Server
> > 2000, but I was just given responsibility for an MS SQL Server 2000 and
my
> > first step was to install MSDE on my desktop and take a backup from the
> SQL
> > Server 2000 and try to restore it onto MSDE. so I can play with it.
> >
> > 1. Is it possible to take a backup from SQL Server and load it into MSDE
> > 2. If yes, in Sybase all I have do is create the database on another
> machine
> > and load it from the backup file as follow:
> >
> > Load database dbname from file
> >
> > This same syntax does not work in MS SQL Server 2000.
> >
> > I'm going over the online books, but so far I'm very confused. Can
anyone
> > give me a simple summary of whatI need to do.
> >
> > Thanks
> >
> >
> >
>|||Here's thesyntax that worked:
restore filelistonly
from disk = 'd:\Dv Backup\Dialvision_db_200309260300.bak'
restore database myDV
from disk = 'd:\Dv Backup\Dialvision_db_200309260300.bak'
with move 'DVision_data' to 'd:\DV Backup\myDV.mdf',
move 'DVision_log' to 'd:\DV Backup\myDV.ldf'
"Kalen Delaney" <replies@.public_newsgroups.com> wrote in message
news:OovDu6CjDHA.2492@.TK2MSFTNGP12.phx.gbl...
> Hi Germano
> In SQL Server 2000, you don't even need to create the db before loading.
> What error are you getting when you run the command?
> In SQL Server, we use RESTORE instead of LOAD:
> RESTORE DATABASE mydb
> FROM DISK = 'c:\....
> Also, the default is to not recover the database so that tlog backups can
be
> applied, so you must add WITH RECOVERY when you are done with the restore
> operations, to make the db accessible.
> Please feel free to ask more questions after thoroughly reading Books
> Online. There are some important differences between Sybase backup/restore
> and SQL Server backup/restore.
> --
> HTH
> --
> Kalen Delaney
> SQL Server MVP
> www.SolidQualityLearning.com
>
> "Germano" <Germano_Silva@.Brown.edu> wrote in message
> news:uwf6h1CjDHA.556@.TK2MSFTNGP11.phx.gbl...
> > Hi,
> >
> > I'm a Sybase DBA on UNIX and I don't know that much about MS SQL Server
> > 2000, but I was just given responsibility for an MS SQL Server 2000 and
my
> > first step was to install MSDE on my desktop and take a backup from the
> SQL
> > Server 2000 and try to restore it onto MSDE. so I can play with it.
> >
> > 1. Is it possible to take a backup from SQL Server and load it into MSDE
> > 2. If yes, in Sybase all I have do is create the database on another
> machine
> > and load it from the backup file as follow:
> >
> > Load database dbname from file
> >
> > This same syntax does not work in MS SQL Server 2000.
> >
> > I'm going over the online books, but so far I'm very confused. Can
anyone
> > give me a simple summary of whatI need to do.
> >
> > Thanks
> >
> >
> >
>

Wednesday, March 7, 2012

database replication

Hi, newbie here.
I have an sql express database on my local machine (xp sp2) with many tables populated with plenty of data.
How can i duplicate/replicate this database?
Seems like it should be a straight forward thing, but i guess not.

Thanks!
-GarySQL Express can only subscribe to a replication, it can't publish I'm afraid.

Saturday, February 25, 2012

Database Replication

Hi everybody

Can I replicate a database onto a seperate instance of SQL? I need to
replicate a database to a stand-alone machine with no connectivety to
anything. Does anyone know where I can find info on this?

Thanks for any help.

--
Message posted via SQLMonster.com
http://www.sqlmonster.com/Uwe/Forum...eneral/200509/1Perhaps in Books Online, under "Replication"? :-) And I guess you
don't really mean "no connectivity to anything", otherwise it would be
somewhat difficult to implement. Depending on what your goal is
(availability, disaster recovery, offline reporting etc.) you could
also look at log shipping, clustering, and of course backup/restore.

Replication is quite a specialized area, so if you have specific
questions about it, you'll probably get a better response in
microsoft.public.sqlserver.replication.

Simon|||Thanks Simon. I did check the Books Online ;-). All I need is our online
database on another stand-alone computer
that is not connected to any network (due to stupid security). I need this
for a whole bunch of testing on one of our apps. I think that the
backup/restore option would be better?

--
Message posted via SQLMonster.com
http://www.sqlmonster.com/Uwe/Forum...eneral/200509/1|||If you have no network connection, you'll need to copy the database to
a physical medium (DVD, tape, USB drive) anyway, so backup/restore
would be the only real option (you could detach/attach, but that would
mean taking the source offline).

Also see this article:

http://support.microsoft.com/defaul...kb;en-us;314546

Simon

Sunday, February 19, 2012

database protection

Does anyone know a good web site which tells me how to protect database
data? e.g. hot stand-by machine. I am looking at the low cost. Thanks.If your looking to keep costs down then Log shipping may be your best bet.
You can find details in BooksOnLine or at www.microsoft.com/sql
Andrew J. Kelly
SQL Server MVP
"Beyonce K." <bk@.bk.com> wrote in message
news:OO563PP9DHA.3404@.TK2MSFTNGP09.phx.gbl...
> Does anyone know a good web site which tells me how to protect database
> data? e.g. hot stand-by machine. I am looking at the low cost. Thanks.
>

database protection

Does anyone know a good web site which tells me how to protect database
data? e.g. hot stand-by machine. I am looking at the low cost. Thanks.If your looking to keep costs down then Log shipping may be your best bet.
You can find details in BooksOnLine or at www.microsoft.com/sql
Andrew J. Kelly
SQL Server MVP
"Beyonce K." <bk@.bk.com> wrote in message
news:OO563PP9DHA.3404@.TK2MSFTNGP09.phx.gbl...
> Does anyone know a good web site which tells me how to protect database
> data? e.g. hot stand-by machine. I am looking at the low cost. Thanks.
>

Database Problem

hello all

i am develope a travel website, in this site there is an 14 database tables

in my local machine all the work is done properly like (insert, update, delete, adminlogin , client login, etc...)

but in the internet or main server it not work properly

what is this prob.

plz help me

ashwani

what happens when you run it on the internet?

Does it give you an error Message or just not save changes to the database?

|||

it could be a connection string problem, the application cannot connect to the database, or ASP.NET account doesn't have the proper rights.

Friday, February 17, 2012

Database port

What port does SQL Server 2000 is using for connection ?
What I want to do is I want to connect my application from my home machine
to my office server, so I need to open the port in my office server.
Do I need to have VPN in order to connect over the internet ?Alan,
On the Microsoft SQL Server group select Server Network Utility, select
TCP/IP and click Properties. You will see the default port (usually 1433).
Ben Nevarez, MCDBA, OCP
Database Administrator
"Alan" wrote:
> What port does SQL Server 2000 is using for connection ?
> What I want to do is I want to connect my application from my home machine
> to my office server, so I need to open the port in my office server.
> Do I need to have VPN in order to connect over the internet ?
>
>|||Sorry, I can't find the Server Network Utility.
"Ben Nevarez" <bnevarez@.sjm.com> wrote in message
news:C2A4874D-96D8-4ABD-BAFD-C0B657C7F437@.microsoft.com...
> Alan,
> On the Microsoft SQL Server group select Server Network Utility, select
> TCP/IP and click Properties. You will see the default port (usually 1433).
> Ben Nevarez, MCDBA, OCP
> Database Administrator
>
> "Alan" wrote:
> > What port does SQL Server 2000 is using for connection ?
> > What I want to do is I want to connect my application from my home
machine
> > to my office server, so I need to open the port in my office server.
> > Do I need to have VPN in order to connect over the internet ?
> >
> >
> >|||Alan wrote:
> What port does SQL Server 2000 is using for connection ?
> What I want to do is I want to connect my application from my home machine
> to my office server, so I need to open the port in my office server.
> Do I need to have VPN in order to connect over the internet ?
>
By default SQL server is using port 1433 so you'll have to have that
open. I'd strongly recommend that you use a VPN connection. Otherwise
you'll open your server to everyone and I doubt that's what you want...:-).
Regards
Steen Schlüter Persson
Databaseadministrator / Systemadministrator|||It is in the SQL Server Program group on the server machine.
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"Alan" <alanpltseNOSPAM@.yahoo.com.au> wrote in message
news:%235HFdHRkGHA.836@.TK2MSFTNGP02.phx.gbl...
> Sorry, I can't find the Server Network Utility.
> "Ben Nevarez" <bnevarez@.sjm.com> wrote in message
> news:C2A4874D-96D8-4ABD-BAFD-C0B657C7F437@.microsoft.com...
>> Alan,
>> On the Microsoft SQL Server group select Server Network Utility, select
>> TCP/IP and click Properties. You will see the default port (usually 1433).
>> Ben Nevarez, MCDBA, OCP
>> Database Administrator
>>
>> "Alan" wrote:
>> > What port does SQL Server 2000 is using for connection ?
>> > What I want to do is I want to connect my application from my home
> machine
>> > to my office server, so I need to open the port in my office server.
>> > Do I need to have VPN in order to connect over the internet ?
>> >
>> >
>> >
>|||Steen Persson (DK) wrote:
> Alan wrote:
>> What port does SQL Server 2000 is using for connection ?
>> What I want to do is I want to connect my application from my home
>> machine
>> to my office server, so I need to open the port in my office server.
>> Do I need to have VPN in order to connect over the internet ?
>>
> By default SQL server is using port 1433 so you'll have to have that
> open. I'd strongly recommend that you use a VPN connection. Otherwise
> you'll open your server to everyone and I doubt that's what you want...:-).
>
Hopefully the server is behind an existing firewall. If VPN isn't an
option, use the firewall rules to open port 1433, but only allow
connections from the IP address of your home machine. Either way, some
basic network security needs to be observed here.|||I used netstat -a to list
but what should I looking at ?
Local Address or Foreign Address ?
"Tracy McKibben" <tracy@.realsqlguy.com> wrote in message
news:OTgxdVUkGHA.976@.TK2MSFTNGP02.phx.gbl...
> Steen Persson (DK) wrote:
>> Alan wrote:
>> What port does SQL Server 2000 is using for connection ?
>> What I want to do is I want to connect my application from my home
>> machine
>> to my office server, so I need to open the port in my office server.
>> Do I need to have VPN in order to connect over the internet ?
>>
>> By default SQL server is using port 1433 so you'll have to have that
>> open. I'd strongly recommend that you use a VPN connection. Otherwise
>> you'll open your server to everyone and I doubt that's what you
>> want...:-).
>>
> Hopefully the server is behind an existing firewall. If VPN isn't an
> option, use the firewall rules to open port 1433, but only allow
> connections from the IP address of your home machine. Either way, some
> basic network security needs to be observed here.|||Alan T wrote:
> I used netstat -a to list
> but what should I looking at ?
> Local Address or Foreign Address ?
>
"Local" would imply the local machine, so assuming you're running
NETSTAT on the SQL server machine, i.e. the "local" machine, you would
want the Local Address.
--
Tracy McKibben
MCDBA
http://www.realsqlguy.com