Home All Groups Group Topic Archive Search About

Error logs enormous. Can I delete or save elsewhere?



Author
3 Dec 2008 11:10 AM
Roger Withnell
I am referring to the 6 error logs in:
C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\LOG.

The total size is over 6gb and growing because of invalid logins from
hackers.  This is filling up my small C drive.

Don't want to turn off "Failed Logins only" in Server Properties > Login
auditing because I want to keep track of the hackers.

Couple of questions:

1  Can I delete error log 5 and 6 without causing problems?

2  Can I change the settings so that the error log files are saved on my D:
drive?

3  If doing 2 means moving the whole of SQL server from my C: to my D:
drive, how do I do that?

Your help would be much appreciated.

Thanking you in anticipation.

Roger

Author
3 Dec 2008 1:20 PM
Dan Guzman
> Don't want to turn off "Failed Logins only" in Server Properties > Login
> auditing because I want to keep track of the hackers.

Do you have a need to expose your SQL Server port to the internet?  If not,
consider a firewall.

> 1  Can I delete error log 5 and 6 without causing problems?

The historical error log files are needed only for your analysis.  You can
delete the ones you don't need.

> 2  Can I change the settings so that the error log files are saved on my
> D:
> drive?

The error log location is specified via the '-e' startup parameter.
Assuming SQL 2005, one method to change this is with SQL Server
Configuration Manager in the Configuration Tools group.  Choose the Advanced
tab under the SQL Server properties.

>
> 3  If doing 2 means moving the whole of SQL server from my C: to my D:
> drive, how do I do that?

No need to move anything.

--
Hope this helps.

Dan Guzman
SQL Server MVP
http://weblogs.sqlteam.com/dang/

Show quoteHide quote
"Roger Withnell" <RogerWithn***@discussions.microsoft.com> wrote in message
news:55DD2580-0ABF-4EAF-8D31-6C3F9B6FF6C6@microsoft.com...
>I am referring to the 6 error logs in:
> C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\LOG.
>
> The total size is over 6gb and growing because of invalid logins from
> hackers.  This is filling up my small C drive.
>
> Don't want to turn off "Failed Logins only" in Server Properties > Login
> auditing because I want to keep track of the hackers.
>
> Couple of questions:
>
> 1  Can I delete error log 5 and 6 without causing problems?
>
> 2  Can I change the settings so that the error log files are saved on my
> D:
> drive?
>
> 3  If doing 2 means moving the whole of SQL server from my C: to my D:
> drive, how do I do that?
>
> Your help would be much appreciated.
>
> Thanking you in anticipation.
>
> Roger
>
>
>
>
Are all your drivers up to date? click for free checkup

Author
3 Dec 2008 4:10 PM
Roger Withnell
Thanks for your reply, Dan.

This SQL Server computer only needs to be accessed by the web server
computer that uses the databases.

How do I set up the Windows Firewall to allow only the web server to access
the SQL Server port?

Show quoteHide quote
"Dan Guzman" wrote:

> > Don't want to turn off "Failed Logins only" in Server Properties > Login
> > auditing because I want to keep track of the hackers.
>
> Do you have a need to expose your SQL Server port to the internet?  If not,
> consider a firewall.
>
> > 1  Can I delete error log 5 and 6 without causing problems?
>
> The historical error log files are needed only for your analysis.  You can
> delete the ones you don't need.
>
> > 2  Can I change the settings so that the error log files are saved on my
> > D:
> > drive?
>
> The error log location is specified via the '-e' startup parameter.
> Assuming SQL 2005, one method to change this is with SQL Server
> Configuration Manager in the Configuration Tools group.  Choose the Advanced
> tab under the SQL Server properties.
>
> >
> > 3  If doing 2 means moving the whole of SQL server from my C: to my D:
> > drive, how do I do that?
>
> No need to move anything.
>
> --
> Hope this helps.
>
> Dan Guzman
> SQL Server MVP
> http://weblogs.sqlteam.com/dang/
>
> "Roger Withnell" <RogerWithn***@discussions.microsoft.com> wrote in message
> news:55DD2580-0ABF-4EAF-8D31-6C3F9B6FF6C6@microsoft.com...
> >I am referring to the 6 error logs in:
> > C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\LOG.
> >
> > The total size is over 6gb and growing because of invalid logins from
> > hackers.  This is filling up my small C drive.
> >
> > Don't want to turn off "Failed Logins only" in Server Properties > Login
> > auditing because I want to keep track of the hackers.
> >
> > Couple of questions:
> >
> > 1  Can I delete error log 5 and 6 without causing problems?
> >
> > 2  Can I change the settings so that the error log files are saved on my
> > D:
> > drive?
> >
> > 3  If doing 2 means moving the whole of SQL server from my C: to my D:
> > drive, how do I do that?
> >
> > Your help would be much appreciated.
> >
> > Thanking you in anticipation.
> >
> > Roger
> >
> >
> >
> >
>
>
Author
4 Dec 2008 3:23 AM
Dan Guzman
> How do I set up the Windows Firewall to allow only the web server to
> access
> the SQL Server port?

Check out
http://blogs.msdn.com/sqlsecurity/archive/2008/07/01/sql-server-and-the-windows-server-2008-firewall.aspx
for a discussion an links to related articles.

--
Hope this helps.

Dan Guzman
SQL Server MVP
http://weblogs.sqlteam.com/dang/

Show quoteHide quote
"Roger Withnell" <RogerWithn***@discussions.microsoft.com> wrote in message
news:803FD55D-5506-43D8-9C53-BC7FA998928E@microsoft.com...
> Thanks for your reply, Dan.
>
> This SQL Server computer only needs to be accessed by the web server
> computer that uses the databases.
>
> How do I set up the Windows Firewall to allow only the web server to
> access
> the SQL Server port?
>
> "Dan Guzman" wrote:
>
>> > Don't want to turn off "Failed Logins only" in Server Properties >
>> > Login
>> > auditing because I want to keep track of the hackers.
>>
>> Do you have a need to expose your SQL Server port to the internet?  If
>> not,
>> consider a firewall.
>>
>> > 1  Can I delete error log 5 and 6 without causing problems?
>>
>> The historical error log files are needed only for your analysis.  You
>> can
>> delete the ones you don't need.
>>
>> > 2  Can I change the settings so that the error log files are saved on
>> > my
>> > D:
>> > drive?
>>
>> The error log location is specified via the '-e' startup parameter.
>> Assuming SQL 2005, one method to change this is with SQL Server
>> Configuration Manager in the Configuration Tools group.  Choose the
>> Advanced
>> tab under the SQL Server properties.
>>
>> >
>> > 3  If doing 2 means moving the whole of SQL server from my C: to my D:
>> > drive, how do I do that?
>>
>> No need to move anything.
>>
>> --
>> Hope this helps.
>>
>> Dan Guzman
>> SQL Server MVP
>> http://weblogs.sqlteam.com/dang/
>>
>> "Roger Withnell" <RogerWithn***@discussions.microsoft.com> wrote in
>> message
>> news:55DD2580-0ABF-4EAF-8D31-6C3F9B6FF6C6@microsoft.com...
>> >I am referring to the 6 error logs in:
>> > C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\LOG.
>> >
>> > The total size is over 6gb and growing because of invalid logins from
>> > hackers.  This is filling up my small C drive.
>> >
>> > Don't want to turn off "Failed Logins only" in Server Properties >
>> > Login
>> > auditing because I want to keep track of the hackers.
>> >
>> > Couple of questions:
>> >
>> > 1  Can I delete error log 5 and 6 without causing problems?
>> >
>> > 2  Can I change the settings so that the error log files are saved on
>> > my
>> > D:
>> > drive?
>> >
>> > 3  If doing 2 means moving the whole of SQL server from my C: to my D:
>> > drive, how do I do that?
>> >
>> > Your help would be much appreciated.
>> >
>> > Thanking you in anticipation.
>> >
>> > Roger
>> >
>> >
>> >
>> >
>>
>>
Author
5 Dec 2008 9:04 AM
Roger Withnell
I've looked at the link you recommmend and would like some help in setting up
the Windows Firewall, please.

The database server is only running one instance of SQL Server 2005 Express
Edition with six databases configured.

In Configuration Manager > Protocols for SQLEXPRESS > TCP/IP Properties >
IPAll > TCP Port = 1433.

This server is only accessed by one web server which has "IPaddress(of the
database server)\SQLEXPRESS" set up in its ODBC Data Source Amdinistrator >
DSN configuration, one for each of the six databases on the database server.

How to I set up the Windows Firewall on the database server to only make my
web server the one exception?

Thanking you in anticipation.

Roger

Show quoteHide quote
"Dan Guzman" wrote:

> > How do I set up the Windows Firewall to allow only the web server to
> > access
> > the SQL Server port?
>
> Check out
> http://blogs.msdn.com/sqlsecurity/archive/2008/07/01/sql-server-and-the-windows-server-2008-firewall.aspx
> for a discussion an links to related articles.
>
> --
> Hope this helps.
>
> Dan Guzman
> SQL Server MVP
> http://weblogs.sqlteam.com/dang/
>
> "Roger Withnell" <RogerWithn***@discussions.microsoft.com> wrote in message
> news:803FD55D-5506-43D8-9C53-BC7FA998928E@microsoft.com...
> > Thanks for your reply, Dan.
> >
> > This SQL Server computer only needs to be accessed by the web server
> > computer that uses the databases.
> >
> > How do I set up the Windows Firewall to allow only the web server to
> > access
> > the SQL Server port?
> >
> > "Dan Guzman" wrote:
> >
> >> > Don't want to turn off "Failed Logins only" in Server Properties >
> >> > Login
> >> > auditing because I want to keep track of the hackers.
> >>
> >> Do you have a need to expose your SQL Server port to the internet?  If
> >> not,
> >> consider a firewall.
> >>
> >> > 1  Can I delete error log 5 and 6 without causing problems?
> >>
> >> The historical error log files are needed only for your analysis.  You
> >> can
> >> delete the ones you don't need.
> >>
> >> > 2  Can I change the settings so that the error log files are saved on
> >> > my
> >> > D:
> >> > drive?
> >>
> >> The error log location is specified via the '-e' startup parameter.
> >> Assuming SQL 2005, one method to change this is with SQL Server
> >> Configuration Manager in the Configuration Tools group.  Choose the
> >> Advanced
> >> tab under the SQL Server properties.
> >>
> >> >
> >> > 3  If doing 2 means moving the whole of SQL server from my C: to my D:
> >> > drive, how do I do that?
> >>
> >> No need to move anything.
> >>
> >> --
> >> Hope this helps.
> >>
> >> Dan Guzman
> >> SQL Server MVP
> >> http://weblogs.sqlteam.com/dang/
> >>
> >> "Roger Withnell" <RogerWithn***@discussions.microsoft.com> wrote in
> >> message
> >> news:55DD2580-0ABF-4EAF-8D31-6C3F9B6FF6C6@microsoft.com...
> >> >I am referring to the 6 error logs in:
> >> > C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\LOG.
> >> >
> >> > The total size is over 6gb and growing because of invalid logins from
> >> > hackers.  This is filling up my small C drive.
> >> >
> >> > Don't want to turn off "Failed Logins only" in Server Properties >
> >> > Login
> >> > auditing because I want to keep track of the hackers.
> >> >
> >> > Couple of questions:
> >> >
> >> > 1  Can I delete error log 5 and 6 without causing problems?
> >> >
> >> > 2  Can I change the settings so that the error log files are saved on
> >> > my
> >> > D:
> >> > drive?
> >> >
> >> > 3  If doing 2 means moving the whole of SQL server from my C: to my D:
> >> > drive, how do I do that?
> >> >
> >> > Your help would be much appreciated.
> >> >
> >> > Thanking you in anticipation.
> >> >
> >> > Roger
> >> >
> >> >
> >> >
> >> >
> >>
> >>
>
>
Author
6 Dec 2008 2:37 AM
Dan Guzman
> How to I set up the Windows Firewall on the database server to only make
> my
> web server the one exception?

What OS are you running?

--
Hope this helps.

Dan Guzman
SQL Server MVP
http://weblogs.sqlteam.com/dang/

Show quoteHide quote
"Roger Withnell" <RogerWithn***@discussions.microsoft.com> wrote in message
news:CE0E0CC2-C5DA-405A-8728-5948F505B00D@microsoft.com...
> I've looked at the link you recommmend and would like some help in setting
> up
> the Windows Firewall, please.
>
> The database server is only running one instance of SQL Server 2005
> Express
> Edition with six databases configured.
>
> In Configuration Manager > Protocols for SQLEXPRESS > TCP/IP Properties >
> IPAll > TCP Port = 1433.
>
> This server is only accessed by one web server which has "IPaddress(of the
> database server)\SQLEXPRESS" set up in its ODBC Data Source Amdinistrator
>  >
> DSN configuration, one for each of the six databases on the database
> server.
>
> How to I set up the Windows Firewall on the database server to only make
> my
> web server the one exception?
>
> Thanking you in anticipation.
>
> Roger
>
> "Dan Guzman" wrote:
>
>> > How do I set up the Windows Firewall to allow only the web server to
>> > access
>> > the SQL Server port?
>>
>> Check out
>> http://blogs.msdn.com/sqlsecurity/archive/2008/07/01/sql-server-and-the-windows-server-2008-firewall.aspx
>> for a discussion an links to related articles.
>>
>> --
>> Hope this helps.
>>
>> Dan Guzman
>> SQL Server MVP
>> http://weblogs.sqlteam.com/dang/
>>
>> "Roger Withnell" <RogerWithn***@discussions.microsoft.com> wrote in
>> message
>> news:803FD55D-5506-43D8-9C53-BC7FA998928E@microsoft.com...
>> > Thanks for your reply, Dan.
>> >
>> > This SQL Server computer only needs to be accessed by the web server
>> > computer that uses the databases.
>> >
>> > How do I set up the Windows Firewall to allow only the web server to
>> > access
>> > the SQL Server port?
>> >
>> > "Dan Guzman" wrote:
>> >
>> >> > Don't want to turn off "Failed Logins only" in Server Properties >
>> >> > Login
>> >> > auditing because I want to keep track of the hackers.
>> >>
>> >> Do you have a need to expose your SQL Server port to the internet?  If
>> >> not,
>> >> consider a firewall.
>> >>
>> >> > 1  Can I delete error log 5 and 6 without causing problems?
>> >>
>> >> The historical error log files are needed only for your analysis.  You
>> >> can
>> >> delete the ones you don't need.
>> >>
>> >> > 2  Can I change the settings so that the error log files are saved
>> >> > on
>> >> > my
>> >> > D:
>> >> > drive?
>> >>
>> >> The error log location is specified via the '-e' startup parameter.
>> >> Assuming SQL 2005, one method to change this is with SQL Server
>> >> Configuration Manager in the Configuration Tools group.  Choose the
>> >> Advanced
>> >> tab under the SQL Server properties.
>> >>
>> >> >
>> >> > 3  If doing 2 means moving the whole of SQL server from my C: to my
>> >> > D:
>> >> > drive, how do I do that?
>> >>
>> >> No need to move anything.
>> >>
>> >> --
>> >> Hope this helps.
>> >>
>> >> Dan Guzman
>> >> SQL Server MVP
>> >> http://weblogs.sqlteam.com/dang/
>> >>
>> >> "Roger Withnell" <RogerWithn***@discussions.microsoft.com> wrote in
>> >> message
>> >> news:55DD2580-0ABF-4EAF-8D31-6C3F9B6FF6C6@microsoft.com...
>> >> >I am referring to the 6 error logs in:
>> >> > C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\LOG.
>> >> >
>> >> > The total size is over 6gb and growing because of invalid logins
>> >> > from
>> >> > hackers.  This is filling up my small C drive.
>> >> >
>> >> > Don't want to turn off "Failed Logins only" in Server Properties >
>> >> > Login
>> >> > auditing because I want to keep track of the hackers.
>> >> >
>> >> > Couple of questions:
>> >> >
>> >> > 1  Can I delete error log 5 and 6 without causing problems?
>> >> >
>> >> > 2  Can I change the settings so that the error log files are saved
>> >> > on
>> >> > my
>> >> > D:
>> >> > drive?
>> >> >
>> >> > 3  If doing 2 means moving the whole of SQL server from my C: to my
>> >> > D:
>> >> > drive, how do I do that?
>> >> >
>> >> > Your help would be much appreciated.
>> >> >
>> >> > Thanking you in anticipation.
>> >> >
>> >> > Roger
>> >> >
>> >> >
>> >> >
>> >> >
>> >>
>> >>
>>
>>
Author
6 Dec 2008 7:22 AM
Roger Withnell
Windows 2003 SP2.

Show quoteHide quote
"Dan Guzman" wrote:

> > How to I set up the Windows Firewall on the database server to only make
> > my
> > web server the one exception?
>
> What OS are you running?
>
> --
> Hope this helps.
>
> Dan Guzman
> SQL Server MVP
> http://weblogs.sqlteam.com/dang/
>
> "Roger Withnell" <RogerWithn***@discussions.microsoft.com> wrote in message
> news:CE0E0CC2-C5DA-405A-8728-5948F505B00D@microsoft.com...
> > I've looked at the link you recommmend and would like some help in setting
> > up
> > the Windows Firewall, please.
> >
> > The database server is only running one instance of SQL Server 2005
> > Express
> > Edition with six databases configured.
> >
> > In Configuration Manager > Protocols for SQLEXPRESS > TCP/IP Properties >
> > IPAll > TCP Port = 1433.
> >
> > This server is only accessed by one web server which has "IPaddress(of the
> > database server)\SQLEXPRESS" set up in its ODBC Data Source Amdinistrator
> >  >
> > DSN configuration, one for each of the six databases on the database
> > server.
> >
> > How to I set up the Windows Firewall on the database server to only make
> > my
> > web server the one exception?
> >
> > Thanking you in anticipation.
> >
> > Roger
> >
> > "Dan Guzman" wrote:
> >
> >> > How do I set up the Windows Firewall to allow only the web server to
> >> > access
> >> > the SQL Server port?
> >>
> >> Check out
> >> http://blogs.msdn.com/sqlsecurity/archive/2008/07/01/sql-server-and-the-windows-server-2008-firewall.aspx
> >> for a discussion an links to related articles.
> >>
> >> --
> >> Hope this helps.
> >>
> >> Dan Guzman
> >> SQL Server MVP
> >> http://weblogs.sqlteam.com/dang/
> >>
> >> "Roger Withnell" <RogerWithn***@discussions.microsoft.com> wrote in
> >> message
> >> news:803FD55D-5506-43D8-9C53-BC7FA998928E@microsoft.com...
> >> > Thanks for your reply, Dan.
> >> >
> >> > This SQL Server computer only needs to be accessed by the web server
> >> > computer that uses the databases.
> >> >
> >> > How do I set up the Windows Firewall to allow only the web server to
> >> > access
> >> > the SQL Server port?
> >> >
> >> > "Dan Guzman" wrote:
> >> >
> >> >> > Don't want to turn off "Failed Logins only" in Server Properties >
> >> >> > Login
> >> >> > auditing because I want to keep track of the hackers.
> >> >>
> >> >> Do you have a need to expose your SQL Server port to the internet?  If
> >> >> not,
> >> >> consider a firewall.
> >> >>
> >> >> > 1  Can I delete error log 5 and 6 without causing problems?
> >> >>
> >> >> The historical error log files are needed only for your analysis.  You
> >> >> can
> >> >> delete the ones you don't need.
> >> >>
> >> >> > 2  Can I change the settings so that the error log files are saved
> >> >> > on
> >> >> > my
> >> >> > D:
> >> >> > drive?
> >> >>
> >> >> The error log location is specified via the '-e' startup parameter.
> >> >> Assuming SQL 2005, one method to change this is with SQL Server
> >> >> Configuration Manager in the Configuration Tools group.  Choose the
> >> >> Advanced
> >> >> tab under the SQL Server properties.
> >> >>
> >> >> >
> >> >> > 3  If doing 2 means moving the whole of SQL server from my C: to my
> >> >> > D:
> >> >> > drive, how do I do that?
> >> >>
> >> >> No need to move anything.
> >> >>
> >> >> --
> >> >> Hope this helps.
> >> >>
> >> >> Dan Guzman
> >> >> SQL Server MVP
> >> >> http://weblogs.sqlteam.com/dang/
> >> >>
> >> >> "Roger Withnell" <RogerWithn***@discussions.microsoft.com> wrote in
> >> >> message
> >> >> news:55DD2580-0ABF-4EAF-8D31-6C3F9B6FF6C6@microsoft.com...
> >> >> >I am referring to the 6 error logs in:
> >> >> > C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\LOG.
> >> >> >
> >> >> > The total size is over 6gb and growing because of invalid logins
> >> >> > from
> >> >> > hackers.  This is filling up my small C drive.
> >> >> >
> >> >> > Don't want to turn off "Failed Logins only" in Server Properties >
> >> >> > Login
> >> >> > auditing because I want to keep track of the hackers.
> >> >> >
> >> >> > Couple of questions:
> >> >> >
> >> >> > 1  Can I delete error log 5 and 6 without causing problems?
> >> >> >
> >> >> > 2  Can I change the settings so that the error log files are saved
> >> >> > on
> >> >> > my
> >> >> > D:
> >> >> > drive?
> >> >> >
> >> >> > 3  If doing 2 means moving the whole of SQL server from my C: to my
> >> >> > D:
> >> >> > drive, how do I do that?
> >> >> >
> >> >> > Your help would be much appreciated.
> >> >> >
> >> >> > Thanking you in anticipation.
> >> >> >
> >> >> > Roger
> >> >> >
> >> >> >
> >> >> >
> >> >> >
> >> >>
> >> >>
> >>
> >>
>
>
Author
6 Dec 2008 1:27 PM
Dan Guzman
> Windows 2003 SP2.

After adding port 1433 as an firewall exception, click the scope button and
specify the web server interface ip address in the custom list text box.
This will ensure only the web server can access the SQL port.

>> > This server is only accessed by one web server which has "IPaddress(of
>> > the
>> > database server)\SQLEXPRESS" set up in its ODBC Data Source
>> > Amdinistrator

Since your named instance is listening on port 1433, I think you should be
able to remove "\SQLEXPRESS" from the web server connection string.  This
way, the web server won't need to access the SQL Browser service via UDP
1434 to determine the port of the named instance.  If you don't remove the
connection string instance name, you'll need to open UDP 1434 as a port
exception and also make the same scope exception for the web server as you
did for TCP 1433.

--
Hope this helps.

Dan Guzman
SQL Server MVP
http://weblogs.sqlteam.com/dang/

Show quoteHide quote
"Roger Withnell" <RogerWithn***@discussions.microsoft.com> wrote in message
news:4202B7AB-B87C-438A-BE08-E2302A75D670@microsoft.com...
> Windows 2003 SP2.
>
> "Dan Guzman" wrote:
>
>> > How to I set up the Windows Firewall on the database server to only
>> > make
>> > my
>> > web server the one exception?
>>
>> What OS are you running?
>>
>> --
>> Hope this helps.
>>
>> Dan Guzman
>> SQL Server MVP
>> http://weblogs.sqlteam.com/dang/
>>
>> "Roger Withnell" <RogerWithn***@discussions.microsoft.com> wrote in
>> message
>> news:CE0E0CC2-C5DA-405A-8728-5948F505B00D@microsoft.com...
>> > I've looked at the link you recommmend and would like some help in
>> > setting
>> > up
>> > the Windows Firewall, please.
>> >
>> > The database server is only running one instance of SQL Server 2005
>> > Express
>> > Edition with six databases configured.
>> >
>> > In Configuration Manager > Protocols for SQLEXPRESS > TCP/IP Properties
>> >  >
>> > IPAll > TCP Port = 1433.
>> >
>> > This server is only accessed by one web server which has "IPaddress(of
>> > the
>> > database server)\SQLEXPRESS" set up in its ODBC Data Source
>> > Amdinistrator
>> >  >
>> > DSN configuration, one for each of the six databases on the database
>> > server.
>> >
>> > How to I set up the Windows Firewall on the database server to only
>> > make
>> > my
>> > web server the one exception?
>> >
>> > Thanking you in anticipation.
>> >
>> > Roger
>> >
>> > "Dan Guzman" wrote:
>> >
>> >> > How do I set up the Windows Firewall to allow only the web server to
>> >> > access
>> >> > the SQL Server port?
>> >>
>> >> Check out
>> >> http://blogs.msdn.com/sqlsecurity/archive/2008/07/01/sql-server-and-the-windows-server-2008-firewall.aspx
>> >> for a discussion an links to related articles.
>> >>
>> >> --
>> >> Hope this helps.
>> >>
>> >> Dan Guzman
>> >> SQL Server MVP
>> >> http://weblogs.sqlteam.com/dang/
>> >>
>> >> "Roger Withnell" <RogerWithn***@discussions.microsoft.com> wrote in
>> >> message
>> >> news:803FD55D-5506-43D8-9C53-BC7FA998928E@microsoft.com...
>> >> > Thanks for your reply, Dan.
>> >> >
>> >> > This SQL Server computer only needs to be accessed by the web server
>> >> > computer that uses the databases.
>> >> >
>> >> > How do I set up the Windows Firewall to allow only the web server to
>> >> > access
>> >> > the SQL Server port?
>> >> >
>> >> > "Dan Guzman" wrote:
>> >> >
>> >> >> > Don't want to turn off "Failed Logins only" in Server Properties
>> >> >> >  >
>> >> >> > Login
>> >> >> > auditing because I want to keep track of the hackers.
>> >> >>
>> >> >> Do you have a need to expose your SQL Server port to the internet?
>> >> >> If
>> >> >> not,
>> >> >> consider a firewall.
>> >> >>
>> >> >> > 1  Can I delete error log 5 and 6 without causing problems?
>> >> >>
>> >> >> The historical error log files are needed only for your analysis.
>> >> >> You
>> >> >> can
>> >> >> delete the ones you don't need.
>> >> >>
>> >> >> > 2  Can I change the settings so that the error log files are
>> >> >> > saved
>> >> >> > on
>> >> >> > my
>> >> >> > D:
>> >> >> > drive?
>> >> >>
>> >> >> The error log location is specified via the '-e' startup parameter.
>> >> >> Assuming SQL 2005, one method to change this is with SQL Server
>> >> >> Configuration Manager in the Configuration Tools group.  Choose the
>> >> >> Advanced
>> >> >> tab under the SQL Server properties.
>> >> >>
>> >> >> >
>> >> >> > 3  If doing 2 means moving the whole of SQL server from my C: to
>> >> >> > my
>> >> >> > D:
>> >> >> > drive, how do I do that?
>> >> >>
>> >> >> No need to move anything.
>> >> >>
>> >> >> --
>> >> >> Hope this helps.
>> >> >>
>> >> >> Dan Guzman
>> >> >> SQL Server MVP
>> >> >> http://weblogs.sqlteam.com/dang/
>> >> >>
>> >> >> "Roger Withnell" <RogerWithn***@discussions.microsoft.com> wrote in
>> >> >> message
>> >> >> news:55DD2580-0ABF-4EAF-8D31-6C3F9B6FF6C6@microsoft.com...
>> >> >> >I am referring to the 6 error logs in:
>> >> >> > C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\LOG.
>> >> >> >
>> >> >> > The total size is over 6gb and growing because of invalid logins
>> >> >> > from
>> >> >> > hackers.  This is filling up my small C drive.
>> >> >> >
>> >> >> > Don't want to turn off "Failed Logins only" in Server Properties
>> >> >> >  >
>> >> >> > Login
>> >> >> > auditing because I want to keep track of the hackers.
>> >> >> >
>> >> >> > Couple of questions:
>> >> >> >
>> >> >> > 1  Can I delete error log 5 and 6 without causing problems?
>> >> >> >
>> >> >> > 2  Can I change the settings so that the error log files are
>> >> >> > saved
>> >> >> > on
>> >> >> > my
>> >> >> > D:
>> >> >> > drive?
>> >> >> >
>> >> >> > 3  If doing 2 means moving the whole of SQL server from my C: to
>> >> >> > my
>> >> >> > D:
>> >> >> > drive, how do I do that?
>> >> >> >
>> >> >> > Your help would be much appreciated.
>> >> >> >
>> >> >> > Thanking you in anticipation.
>> >> >> >
>> >> >> > Roger
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >>
>> >> >>
>> >>
>> >>
>>
>>
Author
9 Dec 2008 9:13 AM
Roger Withnell
Fixed.

Many thanks, Dan.

Roger

Show quoteHide quote
"Dan Guzman" wrote:

> > Windows 2003 SP2.
>
> After adding port 1433 as an firewall exception, click the scope button and
> specify the web server interface ip address in the custom list text box.
> This will ensure only the web server can access the SQL port.
>
> >> > This server is only accessed by one web server which has "IPaddress(of
> >> > the
> >> > database server)\SQLEXPRESS" set up in its ODBC Data Source
> >> > Amdinistrator
>
> Since your named instance is listening on port 1433, I think you should be
> able to remove "\SQLEXPRESS" from the web server connection string.  This
> way, the web server won't need to access the SQL Browser service via UDP
> 1434 to determine the port of the named instance.  If you don't remove the
> connection string instance name, you'll need to open UDP 1434 as a port
> exception and also make the same scope exception for the web server as you
> did for TCP 1433.
>
> --
> Hope this helps.
>
> Dan Guzman
> SQL Server MVP
> http://weblogs.sqlteam.com/dang/
>
> "Roger Withnell" <RogerWithn***@discussions.microsoft.com> wrote in message
> news:4202B7AB-B87C-438A-BE08-E2302A75D670@microsoft.com...
> > Windows 2003 SP2.
> >
> > "Dan Guzman" wrote:
> >
> >> > How to I set up the Windows Firewall on the database server to only
> >> > make
> >> > my
> >> > web server the one exception?
> >>
> >> What OS are you running?
> >>
> >> --
> >> Hope this helps.
> >>
> >> Dan Guzman
> >> SQL Server MVP
> >> http://weblogs.sqlteam.com/dang/
> >>
> >> "Roger Withnell" <RogerWithn***@discussions.microsoft.com> wrote in
> >> message
> >> news:CE0E0CC2-C5DA-405A-8728-5948F505B00D@microsoft.com...
> >> > I've looked at the link you recommmend and would like some help in
> >> > setting
> >> > up
> >> > the Windows Firewall, please.
> >> >
> >> > The database server is only running one instance of SQL Server 2005
> >> > Express
> >> > Edition with six databases configured.
> >> >
> >> > In Configuration Manager > Protocols for SQLEXPRESS > TCP/IP Properties
> >> >  >
> >> > IPAll > TCP Port = 1433.
> >> >
> >> > This server is only accessed by one web server which has "IPaddress(of
> >> > the
> >> > database server)\SQLEXPRESS" set up in its ODBC Data Source
> >> > Amdinistrator
> >> >  >
> >> > DSN configuration, one for each of the six databases on the database
> >> > server.
> >> >
> >> > How to I set up the Windows Firewall on the database server to only
> >> > make
> >> > my
> >> > web server the one exception?
> >> >
> >> > Thanking you in anticipation.
> >> >
> >> > Roger
> >> >
> >> > "Dan Guzman" wrote:
> >> >
> >> >> > How do I set up the Windows Firewall to allow only the web server to
> >> >> > access
> >> >> > the SQL Server port?
> >> >>
> >> >> Check out
> >> >> http://blogs.msdn.com/sqlsecurity/archive/2008/07/01/sql-server-and-the-windows-server-2008-firewall.aspx
> >> >> for a discussion an links to related articles.
> >> >>
> >> >> --
> >> >> Hope this helps.
> >> >>
> >> >> Dan Guzman
> >> >> SQL Server MVP
> >> >> http://weblogs.sqlteam.com/dang/
> >> >>
> >> >> "Roger Withnell" <RogerWithn***@discussions.microsoft.com> wrote in
> >> >> message
> >> >> news:803FD55D-5506-43D8-9C53-BC7FA998928E@microsoft.com...
> >> >> > Thanks for your reply, Dan.
> >> >> >
> >> >> > This SQL Server computer only needs to be accessed by the web server
> >> >> > computer that uses the databases.
> >> >> >
> >> >> > How do I set up the Windows Firewall to allow only the web server to
> >> >> > access
> >> >> > the SQL Server port?
> >> >> >
> >> >> > "Dan Guzman" wrote:
> >> >> >
> >> >> >> > Don't want to turn off "Failed Logins only" in Server Properties
> >> >> >> >  >
> >> >> >> > Login
> >> >> >> > auditing because I want to keep track of the hackers.
> >> >> >>
> >> >> >> Do you have a need to expose your SQL Server port to the internet?
> >> >> >> If
> >> >> >> not,
> >> >> >> consider a firewall.
> >> >> >>
> >> >> >> > 1  Can I delete error log 5 and 6 without causing problems?
> >> >> >>
> >> >> >> The historical error log files are needed only for your analysis.
> >> >> >> You
> >> >> >> can
> >> >> >> delete the ones you don't need.
> >> >> >>
> >> >> >> > 2  Can I change the settings so that the error log files are
> >> >> >> > saved
> >> >> >> > on
> >> >> >> > my
> >> >> >> > D:
> >> >> >> > drive?
> >> >> >>
> >> >> >> The error log location is specified via the '-e' startup parameter.
> >> >> >> Assuming SQL 2005, one method to change this is with SQL Server
> >> >> >> Configuration Manager in the Configuration Tools group.  Choose the
> >> >> >> Advanced
> >> >> >> tab under the SQL Server properties.
> >> >> >>
> >> >> >> >
> >> >> >> > 3  If doing 2 means moving the whole of SQL server from my C: to
> >> >> >> > my
> >> >> >> > D:
> >> >> >> > drive, how do I do that?
> >> >> >>
> >> >> >> No need to move anything.
> >> >> >>
> >> >> >> --
> >> >> >> Hope this helps.
> >> >> >>
> >> >> >> Dan Guzman
> >> >> >> SQL Server MVP
> >> >> >> http://weblogs.sqlteam.com/dang/
> >> >> >>
> >> >> >> "Roger Withnell" <RogerWithn***@discussions.microsoft.com> wrote in
> >> >> >> message
> >> >> >> news:55DD2580-0ABF-4EAF-8D31-6C3F9B6FF6C6@microsoft.com...
> >> >> >> >I am referring to the 6 error logs in:
> >> >> >> > C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\LOG.
> >> >> >> >
> >> >> >> > The total size is over 6gb and growing because of invalid logins
> >> >> >> > from
> >> >> >> > hackers.  This is filling up my small C drive.
> >> >> >> >
> >> >> >> > Don't want to turn off "Failed Logins only" in Server Properties
> >> >> >> >  >
> >> >> >> > Login
> >> >> >> > auditing because I want to keep track of the hackers.
> >> >> >> >
> >> >> >> > Couple of questions:
> >> >> >> >
> >> >> >> > 1  Can I delete error log 5 and 6 without causing problems?
> >> >> >> >
> >> >> >> > 2  Can I change the settings so that the error log files are
> >> >> >> > saved
> >> >> >> > on
> >> >> >> > my
> >> >> >> > D:
> >> >> >> > drive?
> >> >> >> >
> >> >> >> > 3  If doing 2 means moving the whole of SQL server from my C: to
> >> >> >> > my
> >> >> >> > D:
> >> >> >> > drive, how do I do that?
> >> >> >> >
> >> >> >> > Your help would be much appreciated.
> >> >> >> >
> >> >> >> > Thanking you in anticipation.
> >> >> >> >
> >> >> >> > Roger
> >> >> >> >
> >> >> >> >
> >> >> >> >
> >> >> >> >
> >> >> >>
> >> >> >>
> >> >>
> >> >>
> >>
> >>
>
>
Author
3 Dec 2008 7:45 PM
Tibor Karaszi
.... and also check out sp_cycle_errorlog, which you can schedule if
you wish...

Show quoteHide quote
"Dan Guzman" <guzmanda@nospam-online.sbcglobal.net> wrote in message
news:eHkbjnUVJHA.4812@TK2MSFTNGP05.phx.gbl...
>> Don't want to turn off "Failed Logins only" in Server Properties >
>> Login
>> auditing because I want to keep track of the hackers.
>
> Do you have a need to expose your SQL Server port to the internet?
> If not, consider a firewall.
>
>> 1  Can I delete error log 5 and 6 without causing problems?
>
> The historical error log files are needed only for your analysis.
> You can delete the ones you don't need.
>
>> 2  Can I change the settings so that the error log files are saved
>> on my D:
>> drive?
>
> The error log location is specified via the '-e' startup parameter.
> Assuming SQL 2005, one method to change this is with SQL Server
> Configuration Manager in the Configuration Tools group.  Choose the
> Advanced tab under the SQL Server properties.
>
>>
>> 3  If doing 2 means moving the whole of SQL server from my C: to my
>> D:
>> drive, how do I do that?
>
> No need to move anything.
>
> --
> Hope this helps.
>
> Dan Guzman
> SQL Server MVP
> http://weblogs.sqlteam.com/dang/
>
> "Roger Withnell" <RogerWithn***@discussions.microsoft.com> wrote in
> message news:55DD2580-0ABF-4EAF-8D31-6C3F9B6FF6C6@microsoft.com...
>>I am referring to the 6 error logs in:
>> C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\LOG.
>>
>> The total size is over 6gb and growing because of invalid logins
>> from
>> hackers.  This is filling up my small C drive.
>>
>> Don't want to turn off "Failed Logins only" in Server Properties >
>> Login
>> auditing because I want to keep track of the hackers.
>>
>> Couple of questions:
>>
>> 1  Can I delete error log 5 and 6 without causing problems?
>>
>> 2  Can I change the settings so that the error log files are saved
>> on my D:
>> drive?
>>
>> 3  If doing 2 means moving the whole of SQL server from my C: to my
>> D:
>> drive, how do I do that?
>>
>> Your help would be much appreciated.
>>
>> Thanking you in anticipation.
>>
>> Roger
>>
>>
>>
>>
>

Bookmark and Share