Showing posts with label mode. Show all posts
Showing posts with label mode. Show all posts

Monday, March 26, 2012

how to fixed the size of the report and landscape view state?

Good day.

How to make or fixed the size of the templates? and how to make the report in landscape mode? i have make a layout in the landscape mode but the priblem in print preview it is not in the landscape mode.

thanks your help is greatly appreciated

Check the width and height property of the "Report" and "Page". Both should be proper, for your report to print (preview) in landscape.|||

thanks rajeeb

but there's a way to make it fixed landscape view. Coz when previewing in the Web form its ok coz the layout of the report is in the landscape but when you export it example in the PDF file it will not set in landscape mode.

thanks

|||

If your widht and height property have proper values and you can view the report in landscape mode, then the export to pdf will also not be a problem.

I have used it, no issues, though I export to PDF using Render method of the ReportViewer control, which is same as what you are trying to do.

Wednesday, March 21, 2012

How to find the IP of someone repeatedly trying to login as SA

I'm running a Windows 2003 Server, with MS SQL Server 2000 which is using
mixed mode security. The SQL server is being used for development and
testing purposes.
The server needs to be exposed to the internet as it is also accessed off
site
When checking the windows logs, the application log showed repeated failed
login attempts to the sa SQL account and new entries were being created at a
rate for a few a minuet.
How can I find out the IP address of where these login attempts were coming
from?
and also how can I get the SQL server to ignore requests for this address or
maybe ip range?
To temporarily stop this I just disabled the TCP/IP network protocol for the
SQL server.
Thanks for any help,
GrantGreat questions:
How can I find out the IP address of where these login attempts were coming
from?
Answer: Best ways are either running Microsoft Network Monitor on the
server & make a capture of the traffic.
Or, netstat -an to capture the sessions connected via IP. To send a login
the client first needs to make
a tcp session using the 3 way handshake.
and also how can I get the SQL server to ignore requests for this address or
maybe ip range?
Answer: By default there is no way to do this from SQL. You'd need to
configure a firewall in front of SQL to allow connection requests from only
one machine.
I've requested that we allow auding for failed login request & log the IP
address for the next release of SQL.
Thanks,
Kevin McDonnell
Microsoft Corporation
This posting is provided AS IS with no warranties, and confers no rights.|||Kevin McDonnell [MSFT] wrote:

> and also how can I get the SQL server to ignore requests for this address
or
> maybe ip range?
> Answer: By default there is no way to do this from SQL. You'd need to
> configure a firewall in front of SQL to allow connection requests from onl
y
> one machine.
If you are familiar with IPSec you could set up a custom IP Sec policy
to only allow connections from machines that you trust. You don't want
to specify who you deny, but instead specify who you trust.

> I've requested that we allow auding for failed login request & log the IP
> address for the next release of SQL.
>
It would be nice if the auditing was built to use windows auditing,
however I'm sure that this is only available if using windows
authentication, and in this case it was sql auth that was tried.
Aaron Weiker
http://blogs.sqladvice.com/aweiker
http://aaronweiker.com/sql

Monday, March 12, 2012

How to find out the current recovery mode for a given database

Never mind, I found it from an old post:
SELECT DATABASEPROPERTYEX('Mydb', 'Recovery')
"Zen" <zen@.nononospam.com> wrote in message
news:u%236G$sllGHA.3588@.TK2MSFTNGP02.phx.gbl...
> Hi,
> Would you know how I can find out if my database is set with full or
> simple recovery mode? Thanks!
>Hi,
Would you know how I can find out if my database is set with full or simple
recovery mode? Thanks!|||Never mind, I found it from an old post:
SELECT DATABASEPROPERTYEX('Mydb', 'Recovery')
"Zen" <zen@.nononospam.com> wrote in message
news:u%236G$sllGHA.3588@.TK2MSFTNGP02.phx.gbl...
> Hi,
> Would you know how I can find out if my database is set with full or
> simple recovery mode? Thanks!
>

How to find out the current recovery mode for a given database

Hi,
Would you know how I can find out if my database is set with full or simple
recovery mode? Thanks!Never mind, I found it from an old post:
SELECT DATABASEPROPERTYEX('Mydb', 'Recovery')
"Zen" <zen@.nononospam.com> wrote in message
news:u%236G$sllGHA.3588@.TK2MSFTNGP02.phx.gbl...
> Hi,
> Would you know how I can find out if my database is set with full or
> simple recovery mode? Thanks!
>