Showing posts with label running. Show all posts
Showing posts with label running. Show all posts

Friday, March 30, 2012

Newbie Question on DB Maintenance Plan

New to SQL Server. Running SQL Server 2000.

If a database is set to full recovery mode, and in setting up a
database maintenance plan you specify a database backup, why in the
wizard is the question asked if you want to back up the transaction
log?

In a db designated full recovery mode wouldn't that be automatic when
taking a backup?

Thanks in advance.

GerryDataPro wrote:

Quote:

Originally Posted by

New to SQL Server. Running SQL Server 2000.
>
If a database is set to full recovery mode, and in setting up a
database maintenance plan you specify a database backup, why in the
wizard is the question asked if you want to back up the transaction
log?
>
In a db designated full recovery mode wouldn't that be automatic when
taking a backup?


I guess the wizard doesn't force you to use the options sensibly. :)|||

Quote:

Originally Posted by

>
I guess the wizard doesn't force you to use the options sensibly. :)


So I'm to assume that its doing a transaction log backup?|||DataPro (datapro01@.yahoo.com) writes:

Quote:

Originally Posted by

If a database is set to full recovery mode, and in setting up a
database maintenance plan you specify a database backup, why in the
wizard is the question asked if you want to back up the transaction
log?
>
In a db designated full recovery mode wouldn't that be automatic when
taking a backup?


No, you back up the transaction log independetly from the database.
It's a common mistake to run in full recovery but fail to take
transaction log backup. This leads to that the log keeps growing.

On the other hand, if you run simple recovery, you get forget all
about the transaction log.

--
Erland Sommarskog, SQL Server MVP, esquel@.sommarskog.se
Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pr...oads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodin...ions/books.mspx|||Yes I was able to finally glean that from looking through a number of
manuals. Makes sense.....I guess it also makes sense not to assume
anything about SQL Server :)

Thanks much for the help.

Gerry

Erland Sommarskog wrote:

Quote:

Originally Posted by

DataPro (datapro01@.yahoo.com) writes:

Quote:

Originally Posted by

If a database is set to full recovery mode, and in setting up a
database maintenance plan you specify a database backup, why in the
wizard is the question asked if you want to back up the transaction
log?

In a db designated full recovery mode wouldn't that be automatic when
taking a backup?


>
No, you back up the transaction log independetly from the database.
It's a common mistake to run in full recovery but fail to take
transaction log backup. This leads to that the log keeps growing.
>
On the other hand, if you run simple recovery, you get forget all
about the transaction log.
>
>
--
Erland Sommarskog, SQL Server MVP, esquel@.sommarskog.se
>
Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pr...oads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodin...ions/books.mspx

|||"DataPro" <datapro01@.yahoo.comwrote in message
news:1158252255.146201.93870@.h48g2000cwc.googlegro ups.com...

Quote:

Originally Posted by

New to SQL Server. Running SQL Server 2000.
>
If a database is set to full recovery mode, and in setting up a
database maintenance plan you specify a database backup, why in the
wizard is the question asked if you want to back up the transaction
log?
>


Because you may want to run that at separate times.

For example, I do a full backup 3 nights a week and transaction log backups
every 20 minutes.

Quote:

Originally Posted by

In a db designated full recovery mode wouldn't that be automatic when
taking a backup?


No.

Quote:

Originally Posted by

>
Thanks in advance.
>
Gerry
>

|||"DataPro" <datapro01@.yahoo.comwrote in message
news:1158255303.861188.53230@.d34g2000cwd.googlegro ups.com...

Quote:

Originally Posted by

>

Quote:

Originally Posted by

>>
>I guess the wizard doesn't force you to use the options sensibly. :)


>
So I'm to assume that its doing a transaction log backup?
>


Not unless you checked the box.

Wednesday, March 28, 2012

Newbie question about SQL 2000 backup

I have my SQL 2000 server running on W2003 Server
Logged in as domain admin
I want to do a manual backup of my database
So I follow the Microsoft document
Open Enterprise Manager, right click the database, all tasks, backeup
database, select full backup, add destination (I choose the default file
location C:\ ProgramdFiles\SQL Servere etc. - as I don't have a backup
device)
I get a warning 'the filename specified is recognised as a directory name.
The file won't be able to be rewritten. Do you wish to continue?'
I select OK
I then get an error '(ODBC SQLState 42000) Cannot open the backup device
C:\Program Files\etc.' Device error or device offline. See the SQL server log
for more details'
The eventlog error is '17055' Source' MSSQLServer' '3041 :
BACKUP failed to complete the command BACKUP DATABASE [DATASTORE] TO DISK =
N'C:\Program Files\Microsoft SQL Server\MSSQL\BACKUP\' WITH NOINIT ,
NOUNLOAD , NAME = N'DATASTORE backup', NOSKIP , STATS = 10, NOFORMAT '
Any ideas anyone please !?!
why wouldn't you specify full file name (for example : C:\Program
Files\Microsoft SQL Server\MSSQL\BACKUP\DATASTORE.BAK ) ?
"goundhog" <goundhog@.discussions.microsoft.com> wrote in message
news:2B0D39F7-0324-4C8C-B22B-0F70BDD8E530@.microsoft.com...
>I have my SQL 2000 server running on W2003 Server
> Logged in as domain admin
> I want to do a manual backup of my database
> So I follow the Microsoft document
> Open Enterprise Manager, right click the database, all tasks, backeup
> database, select full backup, add destination (I choose the default file
> location C:\ ProgramdFiles\SQL Servere etc. - as I don't have a backup
> device)
> I get a warning 'the filename specified is recognised as a directory name.
> The file won't be able to be rewritten. Do you wish to continue?'
> I select OK
> I then get an error '(ODBC SQLState 42000) Cannot open the backup device
> C:\Program Files\etc.' Device error or device offline. See the SQL server
> log
> for more details'
> The eventlog error is '17055' Source' MSSQLServer' '3041 :
> BACKUP failed to complete the command BACKUP DATABASE [DATASTORE] TO DISK
> =
> N'C:\Program Files\Microsoft SQL Server\MSSQL\BACKUP\' WITH NOINIT ,
> NOUNLOAD , NAME = N'DATASTORE backup', NOSKIP , STATS = 10, NOFORMAT '
>
> Any ideas anyone please !?!
>

Newbie question about SQL 2000 backup

I have my SQL 2000 server running on W2003 Server
Logged in as domain admin
I want to do a manual backup of my database
So I follow the Microsoft document
Open Enterprise Manager, right click the database, all tasks, backeup
database, select full backup, add destination (I choose the default file
location C:\ ProgramdFiles\SQL Servere etc. - as I don't have a backup
device)
I get a warning 'the filename specified is recognised as a directory name.
The file won't be able to be rewritten. Do you wish to continue?'
I select OK
I then get an error '(ODBC SQLState 42000) Cannot open the backup device
C:\Program Files\etc.' Device error or device offline. See the SQL server lo
g
for more details'
The eventlog error is '17055' Source' MSSQLServer' '3041 :
BACKUP failed to complete the command BACKUP DATABASE [DATASTORE] TO DI
SK =
N'C:\Program Files\Microsoft SQL Server\MSSQL\BACKUP' WITH NOINIT ,
NOUNLOAD , NAME = N'DATASTORE backup', NOSKIP , STATS = 10, NOFORMAT '
Any ideas anyone please !?!why wouldn't you specify full file name (for example : C:\Program
Files\Microsoft SQL Server\MSSQL\BACKUP\DATASTORE.BAK ) ?
"goundhog" <goundhog@.discussions.microsoft.com> wrote in message
news:2B0D39F7-0324-4C8C-B22B-0F70BDD8E530@.microsoft.com...
>I have my SQL 2000 server running on W2003 Server
> Logged in as domain admin
> I want to do a manual backup of my database
> So I follow the Microsoft document
> Open Enterprise Manager, right click the database, all tasks, backeup
> database, select full backup, add destination (I choose the default file
> location C:\ ProgramdFiles\SQL Servere etc. - as I don't have a backup
> device)
> I get a warning 'the filename specified is recognised as a directory name.
> The file won't be able to be rewritten. Do you wish to continue?'
> I select OK
> I then get an error '(ODBC SQLState 42000) Cannot open the backup device
> C:\Program Files\etc.' Device error or device offline. See the SQL server
> log
> for more details'
> The eventlog error is '17055' Source' MSSQLServer' '3041 :
> BACKUP failed to complete the command BACKUP DATABASE [DATASTORE] TO
DISK
> =
> N'C:\Program Files\Microsoft SQL Server\MSSQL\BACKUP' WITH NOINIT ,
> NOUNLOAD , NAME = N'DATASTORE backup', NOSKIP , STATS = 10, NOFORMAT '
>
> Any ideas anyone please !?!
>

Newbie question about SQL 2000 backup

I have my SQL 2000 server running on W2003 Server
Logged in as domain admin
I want to do a manual backup of my database
So I follow the Microsoft document
Open Enterprise Manager, right click the database, all tasks, backeup
database, select full backup, add destination (I choose the default file
location C:\ ProgramdFiles\SQL Servere etc. - as I don't have a backup
device)
I get a warning 'the filename specified is recognised as a directory name.
The file won't be able to be rewritten. Do you wish to continue?'
I select OK
I then get an error '(ODBC SQLState 42000) Cannot open the backup device
C:\Program Files\etc.' Device error or device offline. See the SQL server log
for more details'
The eventlog error is '17055' Source' MSSQLServer' '3041 :
BACKUP failed to complete the command BACKUP DATABASE [DATASTORE] TO DISK = N'C:\Program Files\Microsoft SQL Server\MSSQL\BACKUP\' WITH NOINIT ,
NOUNLOAD , NAME = N'DATASTORE backup', NOSKIP , STATS = 10, NOFORMAT '
Any ideas anyone please !?!why wouldn't you specify full file name (for example : C:\Program
Files\Microsoft SQL Server\MSSQL\BACKUP\DATASTORE.BAK ) ?
"goundhog" <goundhog@.discussions.microsoft.com> wrote in message
news:2B0D39F7-0324-4C8C-B22B-0F70BDD8E530@.microsoft.com...
>I have my SQL 2000 server running on W2003 Server
> Logged in as domain admin
> I want to do a manual backup of my database
> So I follow the Microsoft document
> Open Enterprise Manager, right click the database, all tasks, backeup
> database, select full backup, add destination (I choose the default file
> location C:\ ProgramdFiles\SQL Servere etc. - as I don't have a backup
> device)
> I get a warning 'the filename specified is recognised as a directory name.
> The file won't be able to be rewritten. Do you wish to continue?'
> I select OK
> I then get an error '(ODBC SQLState 42000) Cannot open the backup device
> C:\Program Files\etc.' Device error or device offline. See the SQL server
> log
> for more details'
> The eventlog error is '17055' Source' MSSQLServer' '3041 :
> BACKUP failed to complete the command BACKUP DATABASE [DATASTORE] TO DISK
> => N'C:\Program Files\Microsoft SQL Server\MSSQL\BACKUP\' WITH NOINIT ,
> NOUNLOAD , NAME = N'DATASTORE backup', NOSKIP , STATS = 10, NOFORMAT '
>
> Any ideas anyone please !?!
>sql

Newbie Question - Service Manager / Win 2003

Hi,

I'm running a Microsoft Windows 2003 Server computer, which is using a MS SQL server to feed our office application, OfficeTalk.

Due to the extreme size of the database, we have decided to install an external 1TB drive, and move the database to it.

The difficult bit we're finding is how to make it so that the service loads the new data source.

In other words, how do you use Service Manager to parse an argument to dbsvr.exe in order to change the database location?

Regards,
Matthew.Hi Mathew and welcome to TSDN MSSQL forum,

If you have an agreed maintenance slot where you can take the MSSQL server down, I would suggest do the following:

Back everything up
using enterprise manager detach on the database you want to move
copy the database to the new location
using enterprise manager attach the database by browsing to the new location.

If you get problems, backout by detaching the database in the new location and attach the old one.

Suggest you also try it out on a test DB, northwinds etc before you go for it for real..

Regards Purple

Wednesday, March 21, 2012

Newbie Q: System DSN from DMZ?

Hello,
I have a webserver running in a DMZ off my network. It needs access to a
SQL2000 server running inside my network. How can I create a system DSN
that points to my SQL2000 server when there is no direct path?
When I create the DSN, it asks, "which SQL Server to you want to connect
to?" But, the drop down box is empty. What should I be typing in here, and
what holes do I need to create in my firewall to make it work?
-Trevori'm not a firewall expert here, but as far as i'm aware you need to open up the port for SQL server on the firewall - you ca fid this port number from the SQL Cliet manager tool|||simply type in the name of your db server when creating the dsn.
assuming your sqlserver is listening on tcp port 1433, you'll need to open up
port 1433 in the firewall, but only open the hole for your web server. check
your sql server log to see what port it's listening on.
Trevor Clark wrote:
> Hello,
> I have a webserver running in a DMZ off my network. It needs access to a
> SQL2000 server running inside my network. How can I create a system DSN
> that points to my SQL2000 server when there is no direct path?
> When I create the DSN, it asks, "which SQL Server to you want to connect
> to?" But, the drop down box is empty. What should I be typing in here, and
> what holes do I need to create in my firewall to make it work?
> -Trevor

Newbie Q: System DSN from DMZ?

Hello,
I have a webserver running in a DMZ off my network. It needs access to a
SQL2000 server running inside my network. How can I create a system DSN
that points to my SQL2000 server when there is no direct path?
When I create the DSN, it asks, "which SQL Server to you want to connect
to?" But, the drop down box is empty. What should I be typing in here, and
what holes do I need to create in my firewall to make it work?
-Trevori'm not a firewall expert here, but as far as i'm aware you need to open up
the port for SQL server on the firewall - you ca fid this port number from t
he SQL Cliet manager tool|||simply type in the name of your db server when creating the dsn.
assuming your sqlserver is listening on tcp port 1433, you'll need to open u
p
port 1433 in the firewall, but only open the hole for your web server. chec
k
your sql server log to see what port it's listening on.
Trevor Clark wrote:
quote:

> Hello,
> I have a webserver running in a DMZ off my network. It needs access to a
> SQL2000 server running inside my network. How can I create a system DSN
> that points to my SQL2000 server when there is no direct path?
> When I create the DSN, it asks, "which SQL Server to you want to connect
> to?" But, the drop down box is empty. What should I be typing in here, a
nd
> what holes do I need to create in my firewall to make it work?
> -Trevor

Newbie Q setting up MSDE

Hello. I've installed MSDE (Win2k machine, running asp.net on localhost),
and it says 'Not Connected' when I mouseover the icon in the system tray. I
opened the SQL Server service manager, and there are two empty fields-
Server and Services. Please, what do I put in these fields? Also, what
connection string would I use with MSDE. Thanks a lot
Justin Dutoit
hi Justin,
"Justin Dutoit" <anon@.anon.com> ha scritto nel messaggio
news:%23Gr48BqqEHA.3988@.tk2msftngp13.phx.gbl
> Hello. I've installed MSDE (Win2k machine, running asp.net on
> localhost), and it says 'Not Connected' when I mouseover the icon in
> the system tray. I opened the SQL Server service manager, and there
> are two empty fields- Server and Services. Please, what do I put in
> these fields? Also, what connection string would I use with MSDE.
> Thanks a lot
> Justin Dutoit
please verify, using the services applet (control panel->performance and
maintenance->administrative tools->services [on XP] , control
panel->administrative tools->services [on Win2k]) that your MSDE instance is
currently up and running...
you can then try typing in the service name of your MSDE instance to manage
it...
MSDE installs by default disabling network protocols and this can be an
issue for some ODBC related functions and, sometime, the SQL Server
instances are not enlisted by the Service Manager, as reported in
http://support.microsoft.com/default...b;EN-US;814132
Andrea Montanari (Microsoft MVP - SQL Server)
http://www.asql.biz/DbaMgr.shtmhttp://italy.mvps.org
DbaMgr2k ver 0.9.1 - DbaMgr ver 0.55.1
(my vb6+sql-dmo little try to provide MS MSDE 1.0 and MSDE 2000 a visual
interface)
-- remove DMO to reply

Monday, March 19, 2012

Newbie needs help

Hi,
I am using SQLEXPRESS running locally on my machine and am trying to create
a database (AdventureWorks) for an example that I am using. What complicates
this a bit is that this example is using NAnt. The local.properties.xml file
contains the following:
<?xml version="1.0"?>
<properties>
<property name="sqlToolsFolder" value="C:\Program Files\Microsoft SQL
Server\90\Tools\Binn"/>
<property name="osql.ConnectionString" value="-E"/>
<property name="initial.catalog" value="AdventureWorks"/>
<property name="config.ConnectionString" value="data
source=SQLEXPRESS;Integrated Security=SSPI;Initial
Catalog=${initial.catalog}"/> <property name="database.path"
value="C:\root\development\databases" />
<property name="osql.exe" value="${sqlToolsFolder}\osql.exe" />
</properties>
When I open the Enterprise Manager and run the script for attach.sql the
database is created fine.
when I run the "build builddb" I get the following error:
NAnt 0.85 (Build 0.85.2139.0; nightly; 11/9/2005)
Copyright (C) 2001-2005 Gerry Shaw
http://nant.sourceforge.net
Buildfile: file:///C:/root/development/playground/adventureworks/avworks.bui
ld
Target framework: Microsoft .NET Framework 2.0
Target(s) specified: builddb
[echo] Loading local.properties.xml
builddb:
exec.sql.template:
convert.template:
[copy] Copying 1 file to
'C:\root\development\playground\adventur
eworks\sql
\attach.sql'.
[exec] Msg 1813, Level 16, State 2, Server OHBOCXX99RMRVK, Line 1
[exec] Could not open new database 'AdventureWorks'. CREATE DATABASE is
aborted.
[exec] Msg 602, Level 21, State 50, Server OHBOCXX99RMRVK, Line 1
[exec] Could not find row in sysindexes for database ID 13, object ID
1, in
dex ID 1.
[exec] Run DBCC CHECKTABLE on sysindexes.
BUILD FAILED
C:\root\development\playground\adventure
works\avworks.build(60,10):
External Program Failed: C:\Program Files\Microsoft SQL
Server\90\Tools\Binn\osq
l.exe (return code was 1)
Total time: 1.8 seconds.
When I installed SQLEXPRESS, I installed it using Windows Authentication and
I would think that Integrated Security would work. I'll bet I'm doing
something silly, but I've tried to figure it out with no luck.
thanks in advance!
BillChances are they are using the AdventureWorks sample database which come
populated with a bunch of sample data. You can download it here:
http://www.microsoft.com/downloads/...&displaylang=en
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
"Bill44077" <Bill44077@.discussions.microsoft.com> wrote in message
news:A1B3826A-0D0F-4B1F-804A-DB222842D778@.microsoft.com...
> Hi,
> I am using SQLEXPRESS running locally on my machine and am trying to
> create
> a database (AdventureWorks) for an example that I am using. What
> complicates
> this a bit is that this example is using NAnt. The local.properties.xml
> file
> contains the following:
> <?xml version="1.0"?>
> <properties>
> <property name="sqlToolsFolder" value="C:\Program Files\Microsoft SQL
> Server\90\Tools\Binn"/>
> <property name="osql.ConnectionString" value="-E"/>
> <property name="initial.catalog" value="AdventureWorks"/>
> <property name="config.ConnectionString" value="data
> source=SQLEXPRESS;Integrated Security=SSPI;Initial
> Catalog=${initial.catalog}"/> <property name="database.path"
> value="C:\root\development\databases" />
> <property name="osql.exe" value="${sqlToolsFolder}\osql.exe" />
> </properties>
> When I open the Enterprise Manager and run the script for attach.sql the
> database is created fine.
> when I run the "build builddb" I get the following error:
> NAnt 0.85 (Build 0.85.2139.0; nightly; 11/9/2005)
> Copyright (C) 2001-2005 Gerry Shaw
> http://nant.sourceforge.net
> Buildfile:
> file:///C:/root/development/playground/adventureworks/avworks.build
> Target framework: Microsoft .NET Framework 2.0
> Target(s) specified: builddb
> [echo] Loading local.properties.xml
> builddb:
>
> exec.sql.template:
>
> convert.template:
> [copy] Copying 1 file to
> 'C:\root\development\playground\adventur
eworks\sql
> \attach.sql'.
> [exec] Msg 1813, Level 16, State 2, Server OHBOCXX99RMRVK, Line 1
> [exec] Could not open new database 'AdventureWorks'. CREATE DATABA
SE
> is
> aborted.
> [exec] Msg 602, Level 21, State 50, Server OHBOCXX99RMRVK, Line 1
> [exec] Could not find row in sysindexes for database ID 13, object
ID
> 1, in
> dex ID 1.
> [exec] Run DBCC CHECKTABLE on sysindexes.
> BUILD FAILED
> C:\root\development\playground\adventure
works\avworks.build(60,10):
> External Program Failed: C:\Program Files\Microsoft SQL
> Server\90\Tools\Binn\osq
> l.exe (return code was 1)
> Total time: 1.8 seconds.
> When I installed SQLEXPRESS, I installed it using Windows Authentication
> and
> I would think that Integrated Security would work. I'll bet I'm doing
> something silly, but I've tried to figure it out with no luck.
> thanks in advance!
> Bill

Newbie needing help with joining 2 fields

I have a sql 2005 dev ed running an application developed in vs.net 2005 C# I have several gridviews which have a field call first name and a field called lastname I need to put both the firstname and lastname in the same cell or colum row. I do not now how to join these. Can some one help me with a SQL query string that will do this for me.You could do SELECT FirstName + ' ' + LastName FROM YourTable|||SELECT FirstName + ' ' + LastName AS FullName
FROM Employees

Newbie mystery

Try running the code below in QA

USE Northwind
--The quesy below produces the correct numbers.
SELECT CategoryID,(100*((COUNT(*)+.0)/(SELECT COUNT(*) AS TotalCount FROM Products))) AS PERCENT_CAT FROM Products GROUP BY CategoryID

--The query below produces 0 values and are wrong.
SELECT CategoryID,(100*((COUNT(*))/(SELECT COUNT(*) AS TotalCount FROM Products))) AS PERCENT_CAT FROM Products GROUP BY CategoryID

--This is the total
SELECT COUNT(*) AS TotalCount FROM Products
--The totals of the groupings
SELECT CategoryID,(COUNT(*)) AS Category_Total FROM Products GROUP BY CategoryID

I think I understand what happens with the above, but what I really want to know is there a good coding habit to prevent it. Some of our reports are very complex and an error could be missed.Dear,

In MSSQL, this is normal behaviour. When you divide an integer (count) by another integer (count), the result is an integer.

Example :

select 1/3 returns 0

select 1/cast(3 as numeric) returns .33333

That is just the way it is, and it is documented in BOL.

Regards,

CVM.

Newbie MSDTC question

What is MSDTC and why woud I want it on my W2K3 ent act/pas SQL 2K cluster?
Cluster is already setup and virtual sql instance running ok...
Thanks
MSDTC or the Microsoft Distributed Transaction Cordinator is used for
distributed transactions.
A good description of it can be found in SQL Server Books Online:
http://msdn.microsoft.com/library/de...ar_cs_321x.asp
As you can see in the following article; MS DTC is not required for the
clustered SQL Server to work:
http://support.microsoft.com/default...b;en-us;260758
However if you have it installed on your server you need to run it in a
clustered state as you can see in the following article:
http://support.microsoft.com/default...b;en-us;301600
Simon
This posting is provided "as is" with no warranties and confers no rights.
"Lapchien" <ccarswell@.nospameclipse.co.uk> wrote in message
news:11273pop2eunj40@.news.supernews.com...
> What is MSDTC and why woud I want it on my W2K3 ent act/pas SQL 2K
> cluster? Cluster is already setup and virtual sql instance running ok...
> Thanks
>
>
|||While we are on the subject of MSDTC within a SQL Cluster, Simon has
referred to the standard (in my mind superficial) documentation on MSDTC, I
am looking for more detailed information:
1. The detailed architecture and how a transaction enlists target
databases.
2. How the authentication and permissions work for MSDTC in detail
(e.g.. why Cluster permissions are required for services enlisting MSDTC in
a cluster).
I have configured several high-availability applications requiring
distributed transactions and fully understand the requirements for
successfully implementing MSDTC/SQL, however I would like to understand the
internal operations of MSDTC.
Regard
Gary Hope
"Simon Lidberg [MSFT]" <simonlid@.online.microsoft.com> wrote in message
news:eHmSQLeHFHA.896@.TK2MSFTNGP10.phx.gbl...
> MSDTC or the Microsoft Distributed Transaction Cordinator is used for
> distributed transactions.
> A good description of it can be found in SQL Server Books Online:
> http://msdn.microsoft.com/library/de...ar_cs_321x.asp
> As you can see in the following article; MS DTC is not required for the
> clustered SQL Server to work:
> http://support.microsoft.com/default...b;en-us;260758
> However if you have it installed on your server you need to run it in a
> clustered state as you can see in the following article:
> http://support.microsoft.com/default...b;en-us;301600
> Simon
> This posting is provided "as is" with no warranties and confers no rights.
> "Lapchien" <ccarswell@.nospameclipse.co.uk> wrote in message
> news:11273pop2eunj40@.news.supernews.com...
>

Monday, March 12, 2012

newbie maintenance/backup question

Please lend some advice,

Right now we use a standard Database Maintenance Plan to backup and organize our SQL server databases. However we are running out of disk space because every night it does a full backup of the databases and a few of the databases are quite large > 1 GByte.

Is there a way to perform differential backups daily and full backups once a week (or month) in conjunction with a Database Maintenance Plan? I know how to schedule jobs and perform differential and full backups on this kind of schedule for a single database.

But I'm worried that creating separate jobs for each database to handle the full backup, the differential backup, the backup of the transaction log, compacting the database, (etc) is going to become a nightmare to keep up with 50+ jobs.

I like the Database Maintenance Plan because i can go to one place and manage the backup, reorganization, compacting, etc of all of our databases at once and schedule just a few jobs.

What is the best way to maintain (and especially backup) 10+ databases of decent size?

Thanks in advance,
Shane Kunklecheck google. There are plenty of site containing SQL Server administration tips... (ex: sswug.org)

newbie help: failover server

Hi all, Firstly let me apologize if any of my questions sound stupid. I am a
newbie when it comes to SQL Server. We currently have 1 server running SQL
with a couple of databases collectively approaching 2GB. The HDD's are
configured on a RAID 5 and everything has been running OK. We just recently
experienced downtime with one of our other mail servers and there is a
sudden focus on backup failover servers. Unfortunately we do not have the
budget to invest in Windows Advanced Server and SQL Enterprise for
clustering etc. It is my understanding that I can have a standby cold fail
over server with SQL installed that I can switch on, incase the primary goes
down. Is that true? If yes, what is the best way to set this up? Are there
any best practices?
In our recent server failure, the server would not even bootup. As a result
we could not even get access to the data on the hard drives. We had to end
up biting the bullet by being down the the most part of the day, while the
server OS was re-built. Assuming something similar happens on the SQL
Server, how can I move the latest copy of the database over to the failover
server? Any suggestions? I know there are some options like having an
external rackmount storage system, but to my knowledge those are pretty
expensive and provided by EMC etc.
thanks a bunch!
Without Enterprise Edition and its associated clustering feature, your next
best availability technologies are replication and log shipping. I strongly
discourage replication as an availability option since many database
elements are not replicated. Log shipping is included with Enterprise
Edition, but you can 'roll your own' without too much difficulty. The SQL
Server 2000 Resource Kit includes a simple log shipping example that you can
adapt for your site. This will allow you to keep the data fairly current
with your production server, but will require a fair amount of manual
intervention to 'go live'.
My suggestion is to examine your disaster recovery policy now and offer
alternatives to your management based on expected cost and expected system
availability. SQL Clustering is one option and log shipping is another.
(You can combine them by log shipping to another site and really be
prepared.) Offer them a choice and show what the different levels of
spending actually buy in terms of system availability. You may be surprised
what becomes affordable when the choice is presented as a business decision,
not a technology decision.
No matter which technology path you choose, documentation and training will
be the keys to meeting your availability targets. You must have a good plan
and the personnel to implement it. Otherwise the technology doesn't get you
squat.
Geoff N. Hiten
Microsoft SQL Server MVP
Senior Database Administrator
Careerbuilder.com
I support the Professional Association for SQL Server
www.sqlpass.org
"RP" <rp@.nospam.com> wrote in message
news:uxFMQTzQEHA.2404@.TK2MSFTNGP11.phx.gbl...
> Hi all, Firstly let me apologize if any of my questions sound stupid. I am
a
> newbie when it comes to SQL Server. We currently have 1 server running SQL
> with a couple of databases collectively approaching 2GB. The HDD's are
> configured on a RAID 5 and everything has been running OK. We just
recently
> experienced downtime with one of our other mail servers and there is a
> sudden focus on backup failover servers. Unfortunately we do not have the
> budget to invest in Windows Advanced Server and SQL Enterprise for
> clustering etc. It is my understanding that I can have a standby cold fail
> over server with SQL installed that I can switch on, incase the primary
goes
> down. Is that true? If yes, what is the best way to set this up? Are there
> any best practices?
> In our recent server failure, the server would not even bootup. As a
result
> we could not even get access to the data on the hard drives. We had to end
> up biting the bullet by being down the the most part of the day, while the
> server OS was re-built. Assuming something similar happens on the SQL
> Server, how can I move the latest copy of the database over to the
failover
> server? Any suggestions? I know there are some options like having an
> external rackmount storage system, but to my knowledge those are pretty
> expensive and provided by EMC etc.
> thanks a bunch!
>
|||Thanks for the options. I will look into Log Shipping & the SQL Resource
Kit.
As far as business decision vs technology decision, easier said than done
when working for a company of your size. When it comes to small business, a
whole different set of rules come into play.
thanks again!
"Geoff N. Hiten" <SRDBA@.Careerbuilder.com> wrote in message
news:Ot1BHW0QEHA.2704@.TK2MSFTNGP10.phx.gbl...
> Without Enterprise Edition and its associated clustering feature, your
next
> best availability technologies are replication and log shipping. I
strongly
> discourage replication as an availability option since many database
> elements are not replicated. Log shipping is included with Enterprise
> Edition, but you can 'roll your own' without too much difficulty. The SQL
> Server 2000 Resource Kit includes a simple log shipping example that you
can
> adapt for your site. This will allow you to keep the data fairly current
> with your production server, but will require a fair amount of manual
> intervention to 'go live'.
> My suggestion is to examine your disaster recovery policy now and offer
> alternatives to your management based on expected cost and expected system
> availability. SQL Clustering is one option and log shipping is another.
> (You can combine them by log shipping to another site and really be
> prepared.) Offer them a choice and show what the different levels of
> spending actually buy in terms of system availability. You may be
surprised
> what becomes affordable when the choice is presented as a business
decision,
> not a technology decision.
> No matter which technology path you choose, documentation and training
will
> be the keys to meeting your availability targets. You must have a good
plan
> and the personnel to implement it. Otherwise the technology doesn't get
you[vbcol=seagreen]
> squat.
>
> --
> Geoff N. Hiten
> Microsoft SQL Server MVP
> Senior Database Administrator
> Careerbuilder.com
> I support the Professional Association for SQL Server
> www.sqlpass.org
> "RP" <rp@.nospam.com> wrote in message
> news:uxFMQTzQEHA.2404@.TK2MSFTNGP11.phx.gbl...
am[vbcol=seagreen]
> a
SQL[vbcol=seagreen]
> recently
the[vbcol=seagreen]
fail[vbcol=seagreen]
> goes
there[vbcol=seagreen]
> result
end[vbcol=seagreen]
the
> failover
>
|||Actually, it is the same rules. Size and scale may determine which solution
is best, but the inputs of cost and availability don't change. The only
difference is a business decision of whether the additional uptime is an
effective way to spend the company's money. Of course everyone has budget
limits. Sometimes major availability enhancements take a while to get
approved and implemented.
No matter what the decision is, you are fine since management will now be
aware of the risks and has active input in deciding how to mitigate them.
This works the same no matter how big or small your business.
Again, you can work on procedures, documentation, and training even without
a huge budget. I guarantee you that will improve system availability and
recoverability.
Geoff N. Hiten
Microsoft SQL Server MVP
Senior Database Administrator
Careerbuilder.com
I support the Professional Association for SQL Server
www.sqlpass.org
"RP" <rp@.nospam.com> wrote in message
news:eoURYM1QEHA.2468@.tk2msftngp13.phx.gbl...
> Thanks for the options. I will look into Log Shipping & the SQL Resource
> Kit.
> As far as business decision vs technology decision, easier said than done
> when working for a company of your size. When it comes to small business,
a[vbcol=seagreen]
> whole different set of rules come into play.
> thanks again!
> "Geoff N. Hiten" <SRDBA@.Careerbuilder.com> wrote in message
> news:Ot1BHW0QEHA.2704@.TK2MSFTNGP10.phx.gbl...
> next
> strongly
SQL[vbcol=seagreen]
> can
current[vbcol=seagreen]
system[vbcol=seagreen]
> surprised
> decision,
> will
> plan
> you
I[vbcol=seagreen]
> am
> SQL
> the
> fail
primary[vbcol=seagreen]
> there
> end
> the
pretty
>
|||Geoff, after doing some reading it appears that log shipping is only
available in Enterprise Edition. We are running Standard Edition. What
options am I left with to have a cold standby server with upto date data
incase the primary goes down? You had some reservations against replication
since all database elements are not replicated. What other options do I
have, other than restoring the last known good backup on the secondary
server?
thanks!
"Geoff N. Hiten" <SRDBA@.Careerbuilder.com> wrote in message
news:O4KuwU1QEHA.2132@.TK2MSFTNGP11.phx.gbl...
> Actually, it is the same rules. Size and scale may determine which
solution
> is best, but the inputs of cost and availability don't change. The only
> difference is a business decision of whether the additional uptime is an
> effective way to spend the company's money. Of course everyone has budget
> limits. Sometimes major availability enhancements take a while to get
> approved and implemented.
> No matter what the decision is, you are fine since management will now be
> aware of the risks and has active input in deciding how to mitigate them.
> This works the same no matter how big or small your business.
> Again, you can work on procedures, documentation, and training even
without[vbcol=seagreen]
> a huge budget. I guarantee you that will improve system availability and
> recoverability.
> --
> Geoff N. Hiten
> Microsoft SQL Server MVP
> Senior Database Administrator
> Careerbuilder.com
> I support the Professional Association for SQL Server
> www.sqlpass.org
> "RP" <rp@.nospam.com> wrote in message
> news:eoURYM1QEHA.2468@.tk2msftngp13.phx.gbl...
done[vbcol=seagreen]
business,[vbcol=seagreen]
> a
> SQL
you[vbcol=seagreen]
> current
offer[vbcol=seagreen]
> system
another.[vbcol=seagreen]
good[vbcol=seagreen]
get[vbcol=seagreen]
stupid.[vbcol=seagreen]
> I
running[vbcol=seagreen]
are[vbcol=seagreen]
a[vbcol=seagreen]
have[vbcol=seagreen]
cold[vbcol=seagreen]
> primary
to[vbcol=seagreen]
while[vbcol=seagreen]
SQL[vbcol=seagreen]
an
> pretty
>
|||Log shipping is included with Enterprise Edition. You can 'roll your own'
with any edition. Before you ask, yes, it is legal provided all servers
involved are properly licensed. The SQL Server Resource Kit has an example
that will work with standard edition of SQL Server. You will probably need
to tweak it for your specific needs, but it is a good starting point. I
have Enterprise Edition, primarily for the scalability and clustering
features, but I wrote my own log shipping because the included product
didn't meet all of my needs.
Geoff N. Hiten
Microsoft SQL Server MVP
Senior Database Administrator
Careerbuilder.com
I support the Professional Association for SQL Server
www.sqlpass.org
"RP" <rp@.nospam.com> wrote in message
news:OLF0ZRBSEHA.1312@.TK2MSFTNGP12.phx.gbl...
> Geoff, after doing some reading it appears that log shipping is only
> available in Enterprise Edition. We are running Standard Edition. What
> options am I left with to have a cold standby server with upto date data
> incase the primary goes down? You had some reservations against
replication[vbcol=seagreen]
> since all database elements are not replicated. What other options do I
> have, other than restoring the last known good backup on the secondary
> server?
> thanks!
> "Geoff N. Hiten" <SRDBA@.Careerbuilder.com> wrote in message
> news:O4KuwU1QEHA.2132@.TK2MSFTNGP11.phx.gbl...
> solution
budget[vbcol=seagreen]
be[vbcol=seagreen]
them.[vbcol=seagreen]
> without
and[vbcol=seagreen]
Resource[vbcol=seagreen]
> done
> business,
your[vbcol=seagreen]
Enterprise[vbcol=seagreen]
The[vbcol=seagreen]
> you
manual[vbcol=seagreen]
> offer
> another.
of[vbcol=seagreen]
training[vbcol=seagreen]
> good
> get
> stupid.
> running
> are
is[vbcol=seagreen]
> a
> have
> cold
Are[vbcol=seagreen]
a[vbcol=seagreen]
had
> to
> while
> SQL
> an
>
|||Geoff, is the Resource Kit available for download? Or do I need to purchase
the book from MS Press? Also talking about licensing issues, if the cold
standby is only used in the event of failure of the primary server, do I
still need a licenses for the standby server?
thanks
"Geoff N. Hiten" <SRDBA@.Careerbuilder.com> wrote in message
news:urxatWBSEHA.3168@.tk2msftngp13.phx.gbl...
> Log shipping is included with Enterprise Edition. You can 'roll your own'
> with any edition. Before you ask, yes, it is legal provided all servers
> involved are properly licensed. The SQL Server Resource Kit has an
example
> that will work with standard edition of SQL Server. You will probably
need[vbcol=seagreen]
> to tweak it for your specific needs, but it is a good starting point. I
> have Enterprise Edition, primarily for the scalability and clustering
> features, but I wrote my own log shipping because the included product
> didn't meet all of my needs.
>
> --
> Geoff N. Hiten
> Microsoft SQL Server MVP
> Senior Database Administrator
> Careerbuilder.com
> I support the Professional Association for SQL Server
> www.sqlpass.org
> "RP" <rp@.nospam.com> wrote in message
> news:OLF0ZRBSEHA.1312@.TK2MSFTNGP12.phx.gbl...
> replication
only[vbcol=seagreen]
an[vbcol=seagreen]
> budget
> be
> them.
> and
> Resource
> your
I[vbcol=seagreen]
database[vbcol=seagreen]
> Enterprise
> The
that[vbcol=seagreen]
> manual
expected[vbcol=seagreen]
be[vbcol=seagreen]
> of
> training
doesn't[vbcol=seagreen]
HDD's[vbcol=seagreen]
just[vbcol=seagreen]
there[vbcol=seagreen]
> is
for[vbcol=seagreen]
> Are
As[vbcol=seagreen]
> a
> had
the[vbcol=seagreen]
the[vbcol=seagreen]
having
>
|||"RP" <rp@.nospam.com> wrote in message
news:%23WtvuZBSEHA.568@.TK2MSFTNGP12.phx.gbl...
> Geoff, is the Resource Kit available for download? Or do I need to
purchase
> the book from MS Press? Also talking about licensing issues, if the cold
> standby is only used in the event of failure of the primary server, do I
> still need a licenses for the standby server?
Can't answer all that, but there are "roll-your own" logshipping routines
out there if you google for them.
To be honest, I sometimes forget ours is running it's so transparent. (I'd
give you the URL but I've honestly forgotten it.)
|||The Resource Kit is not available for download. As Greg noted, there are
several available for download. It isn't too difficult to build or modify
your own. It will take some time and a good understanding of the backup
tables in the msdb database.
As for the licensing, I am not a legal expert, but I suspect you will have
to fully license all servers. The only exception I can find to licensing a
server is with failover clustering and a normally inactive host node.
Geoff N. Hiten
Microsoft SQL Server MVP
Senior Database Administrator
Careerbuilder.com
I support the Professional Association for SQL Server
www.sqlpass.org
"RP" <rp@.nospam.com> wrote in message
news:%23WtvuZBSEHA.568@.TK2MSFTNGP12.phx.gbl...
> Geoff, is the Resource Kit available for download? Or do I need to
purchase[vbcol=seagreen]
> the book from MS Press? Also talking about licensing issues, if the cold
> standby is only used in the event of failure of the primary server, do I
> still need a licenses for the standby server?
> thanks
> "Geoff N. Hiten" <SRDBA@.Careerbuilder.com> wrote in message
> news:urxatWBSEHA.3168@.tk2msftngp13.phx.gbl...
own'[vbcol=seagreen]
> example
> need
data[vbcol=seagreen]
I[vbcol=seagreen]
> only
is[vbcol=seagreen]
> an
get[vbcol=seagreen]
now[vbcol=seagreen]
availability[vbcol=seagreen]
than[vbcol=seagreen]
feature,[vbcol=seagreen]
> I
> database
difficulty.[vbcol=seagreen]
> that
fairly[vbcol=seagreen]
and[vbcol=seagreen]
> expected
> be
levels[vbcol=seagreen]
be[vbcol=seagreen]
business[vbcol=seagreen]
a[vbcol=seagreen]
> doesn't
> HDD's
> just
> there
not[vbcol=seagreen]
> for
standby[vbcol=seagreen]
the[vbcol=seagreen]
up?[vbcol=seagreen]
bootup.[vbcol=seagreen]
> As
We[vbcol=seagreen]
day,[vbcol=seagreen]
> the
> the
> having
are
>

Friday, March 9, 2012

Newbie Connection problems

Hi All
I am running a website on one server and need to be able to connect to
SQL 2000 on another server. When I try to connect to the SQL server
in an asp.net application I get the following error:
Login failed for user 'Domain\Server$'
How do I configure SQL to allow the other IIS server to connect.
TIA
Tony
Tony,
please can you post up your connectionstring that the SQLConnection object
is using. Also, do you want to use SQL authentication or Trusted, and what
is your SQL Server configured to allow - Mixed or Windows.
TIA,
Paul Ibison
|||From the error message it appears that the machine account is attempting to
connect to SQL Server, not a user account. You can get the connection to
work by adding a login for the machine account: Domain\server$. This is a
AD accounta nd many application use it to connect to SQL Server. It is
basically the machine system account.
Rand
This posting is provided "as is" with no warranties and confers no rights.

Newbie Connection problems

Hi All
I am running a website on one server and need to be able to connect to
SQL 2000 on another server. When I try to connect to the SQL server
in an asp.net application I get the following error:
Login failed for user 'Domain\Server$'
How do I configure SQL to allow the other IIS server to connect.
TIA
TonyTony,
please can you post up your connectionstring that the SQLConnection object
is using. Also, do you want to use SQL authentication or Trusted, and what
is your SQL Server configured to allow - Mixed or Windows.
TIA,
Paul Ibison|||From the error message it appears that the machine account is attempting to
connect to SQL Server, not a user account. You can get the connection to
work by adding a login for the machine account: Domain\server$. This is a
AD accounta nd many application use it to connect to SQL Server. It is
basically the machine system account.
Rand
This posting is provided "as is" with no warranties and confers no rights.

Wednesday, March 7, 2012

Newbie ? -- Does 'master' transaction log need to be backed up?

Hope someone can help answer this question for this newbie.
We are running SQL Server 2000 SP3a on Windows Server 2003, all updates current.
We have been running smoothly for some time now with two user databases. The maintenance plans work well for them. The maintenance plans for the system databases, however, have been giving me fits. Occasionally, one or more steps will fail and there is
no information in any log with which to begin an investigation. The Books Online offer no clue, either.
Here's what I need to know:
Most maintenance plans consist of 1 or more options: Optimizations, Integrity Checks, Database Backup, Transaction Log Backup. I have all 4 options set up for my user databases.
For the system databases (master, model, and msdb), the Transaction Log Backup continues to fail for the 'master' database with this error:
Backup can not be performed on this database. This sub task is ignored
The Properties Tab of the 'master' database shows that the Transaction Log file is:
C:\Program Files\Microsoft SQL Server\MSSQL\data\mastlog.ldf
Is there a problem with the database?
Any assistance is greatly appreciated.
Robert
By the way, 'master' is set to FULL recovery
Robert
|||Hi,
You canot perform a Trasaction log backup for MASTER database even though
recovery model is "FULL". Only database backup is possible. Why do you need
to backup the trasnaction log of MASTER database, because it is not advised
to have user tables / transaction tables in system databases.
Thanks
Hari
MCDBA
"Robert" <rclay@.kerrdrug.com> wrote in message
news:uEutur8TEHA.1356@.TK2MSFTNGP09.phx.gbl...
> By the way, 'master' is set to FULL recovery
> Robert
>
|||Hari,
Thanks for the information.
We don't use the system databases for user data at all! I merely need to
understand what is involved in a standard daily system maintenance process.
That being said, is it okay to just have the Optimizations, Integrity
Checks, and Database Backup options for those three databases (master, model
and msdb) and forget about the Transaction Log backup for each?
Thanks!
Robert
"Hari Prasad" <hari_prasad_k@.hotmail.com> wrote in message
news:ObCeux8TEHA.4048@.TK2MSFTNGP12.phx.gbl...
> Hi,
> You canot perform a Trasaction log backup for MASTER database even though
> recovery model is "FULL". Only database backup is possible. Why do you
need
> to backup the trasnaction log of MASTER database, because it is not
advised
> to have user tables / transaction tables in system databases.
> Thanks
> Hari
> MCDBA
> "Robert" <rclay@.kerrdrug.com> wrote in message
> news:uEutur8TEHA.1356@.TK2MSFTNGP09.phx.gbl...
>
|||Hi,
Since you are not adding any trasnactions to System database, you can ignore
the transaction log backup
for system databases.
Thanks
Hari
MCDBA
"Robert" <rclay@.kerrdrug.com> wrote in message
news:#S$Kw28TEHA.3988@.TK2MSFTNGP10.phx.gbl...
> Hari,
> Thanks for the information.
> We don't use the system databases for user data at all! I merely need to
> understand what is involved in a standard daily system maintenance
process.
> That being said, is it okay to just have the Optimizations, Integrity
> Checks, and Database Backup options for those three databases (master,
model[vbcol=seagreen]
> and msdb) and forget about the Transaction Log backup for each?
> Thanks!
> Robert
> "Hari Prasad" <hari_prasad_k@.hotmail.com> wrote in message
> news:ObCeux8TEHA.4048@.TK2MSFTNGP12.phx.gbl...
though
> need
> advised
>
|||Thanks, Hari.
I will only backup the Transaction Logs for my user databases, then.
Robert
|||Be aware that the backup history is in the msdb database. Because of this, I also do log backup for msdb. For
some strange reason, MS decided to set msdb to simple recovery mode when agent starts, but I just fix that by
setting msdb to full in an auto-start agent job.
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"Robert" <rclay@.kerrdrug.com> wrote in message news:%23sbmuX9TEHA.3140@.tk2msftngp13.phx.gbl...
> Thanks, Hari.
> I will only backup the Transaction Logs for my user databases, then.
> Robert
>

Newbie ? -- Does 'master' transaction log need to be backed up?

Hope someone can help answer this question for this newbie
We are running SQL Server 2000 SP3a on Windows Server 2003, all updates current
We have been running smoothly for some time now with two user databases. The maintenance plans work well for them. The maintenance plans for the system databases, however, have been giving me fits. Occasionally, one or more steps will fail and there is no information in any log with which to begin an investigation. The Books Online offer no clue, either
Here's what I need to know
Most maintenance plans consist of 1 or more options: Optimizations, Integrity Checks, Database Backup, Transaction Log Backup. I have all 4 options set up for my user databases
For the system databases (master, model, and msdb), the Transaction Log Backup continues to fail for the 'master' database with this error:
Backup can not be performed on this database. This sub task is ignore
The Properties Tab of the 'master' database shows that the Transaction Log file is
C:\Program Files\Microsoft SQL Server\MSSQL\data\mastlog.ld
Is there a problem with the database
Any assistance is greatly appreciated
RobertBy the way, 'master' is set to FULL recovery
Robert|||Hi,
You canot perform a Trasaction log backup for MASTER database even though
recovery model is "FULL". Only database backup is possible. Why do you need
to backup the trasnaction log of MASTER database, because it is not advised
to have user tables / transaction tables in system databases.
Thanks
Hari
MCDBA
"Robert" <rclay@.kerrdrug.com> wrote in message
news:uEutur8TEHA.1356@.TK2MSFTNGP09.phx.gbl...
> By the way, 'master' is set to FULL recovery
> Robert
>|||Hari,
Thanks for the information.
We don't use the system databases for user data at all! I merely need to
understand what is involved in a standard daily system maintenance process.
That being said, is it okay to just have the Optimizations, Integrity
Checks, and Database Backup options for those three databases (master, model
and msdb) and forget about the Transaction Log backup for each?
Thanks!
Robert
"Hari Prasad" <hari_prasad_k@.hotmail.com> wrote in message
news:ObCeux8TEHA.4048@.TK2MSFTNGP12.phx.gbl...
> Hi,
> You canot perform a Trasaction log backup for MASTER database even though
> recovery model is "FULL". Only database backup is possible. Why do you
need
> to backup the trasnaction log of MASTER database, because it is not
advised
> to have user tables / transaction tables in system databases.
> Thanks
> Hari
> MCDBA
> "Robert" <rclay@.kerrdrug.com> wrote in message
> news:uEutur8TEHA.1356@.TK2MSFTNGP09.phx.gbl...
> > By the way, 'master' is set to FULL recovery
> >
> > Robert
> >
> >
>|||Hi,
Since you are not adding any trasnactions to System database, you can ignore
the transaction log backup
for system databases.
Thanks
Hari
MCDBA
"Robert" <rclay@.kerrdrug.com> wrote in message
news:#S$Kw28TEHA.3988@.TK2MSFTNGP10.phx.gbl...
> Hari,
> Thanks for the information.
> We don't use the system databases for user data at all! I merely need to
> understand what is involved in a standard daily system maintenance
process.
> That being said, is it okay to just have the Optimizations, Integrity
> Checks, and Database Backup options for those three databases (master,
model
> and msdb) and forget about the Transaction Log backup for each?
> Thanks!
> Robert
> "Hari Prasad" <hari_prasad_k@.hotmail.com> wrote in message
> news:ObCeux8TEHA.4048@.TK2MSFTNGP12.phx.gbl...
> > Hi,
> >
> > You canot perform a Trasaction log backup for MASTER database even
though
> > recovery model is "FULL". Only database backup is possible. Why do you
> need
> > to backup the trasnaction log of MASTER database, because it is not
> advised
> > to have user tables / transaction tables in system databases.
> >
> > Thanks
> > Hari
> > MCDBA
> >
> > "Robert" <rclay@.kerrdrug.com> wrote in message
> > news:uEutur8TEHA.1356@.TK2MSFTNGP09.phx.gbl...
> > > By the way, 'master' is set to FULL recovery
> > >
> > > Robert
> > >
> > >
> >
> >
>|||Thanks, Hari.
I will only backup the Transaction Logs for my user databases, then.
Robert|||Be aware that the backup history is in the msdb database. Because of this, I also do log backup for msdb. For
some strange reason, MS decided to set msdb to simple recovery mode when agent starts, but I just fix that by
setting msdb to full in an auto-start agent job.
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"Robert" <rclay@.kerrdrug.com> wrote in message news:%23sbmuX9TEHA.3140@.tk2msftngp13.phx.gbl...
> Thanks, Hari.
> I will only backup the Transaction Logs for my user databases, then.
> Robert
>

Newbie ? -- Does 'master' transaction log need to be backed up?

Hope someone can help answer this question for this newbie.
We are running SQL Server 2000 SP3a on Windows Server 2003, all updates curr
ent.
We have been running smoothly for some time now with two user databases. Th
e maintenance plans work well for them. The maintenance plans for the syste
m databases, however, have been giving me fits. Occasionally, one or more s
teps will fail and there is
no information in any log with which to begin an investigation. The Books O
nline offer no clue, either.
Here's what I need to know:
Most maintenance plans consist of 1 or more options: Optimizations, Integri
ty Checks, Database Backup, Transaction Log Backup. I have all 4 options se
t up for my user databases.
For the system databases (master, model, and msdb), the Transaction Log Back
up continues to fail for the 'master' database with this error:
Backup can not be performed on this database. This sub task is ignored
The Properties Tab of the 'master' database shows that the Transaction Log f
ile is:
C:\Program Files\Microsoft SQL Server\MSSQL\data\mastlog.ldf
Is there a problem with the database?
Any assistance is greatly appreciated.
RobertBy the way, 'master' is set to FULL recovery
Robert|||Hi,
You canot perform a Trasaction log backup for MASTER database even though
recovery model is "FULL". Only database backup is possible. Why do you need
to backup the trasnaction log of MASTER database, because it is not advised
to have user tables / transaction tables in system databases.
Thanks
Hari
MCDBA
"Robert" <rclay@.kerrdrug.com> wrote in message
news:uEutur8TEHA.1356@.TK2MSFTNGP09.phx.gbl...
> By the way, 'master' is set to FULL recovery
> Robert
>|||Hari,
Thanks for the information.
We don't use the system databases for user data at all! I merely need to
understand what is involved in a standard daily system maintenance process.
That being said, is it okay to just have the Optimizations, Integrity
Checks, and Database Backup options for those three databases (master, model
and msdb) and forget about the Transaction Log backup for each?
Thanks!
Robert
"Hari Prasad" <hari_prasad_k@.hotmail.com> wrote in message
news:ObCeux8TEHA.4048@.TK2MSFTNGP12.phx.gbl...
> Hi,
> You canot perform a Trasaction log backup for MASTER database even though
> recovery model is "FULL". Only database backup is possible. Why do you
need
> to backup the trasnaction log of MASTER database, because it is not
advised
> to have user tables / transaction tables in system databases.
> Thanks
> Hari
> MCDBA
> "Robert" <rclay@.kerrdrug.com> wrote in message
> news:uEutur8TEHA.1356@.TK2MSFTNGP09.phx.gbl...
>|||Hi,
Since you are not adding any trasnactions to System database, you can ignore
the transaction log backup
for system databases.
Thanks
Hari
MCDBA
"Robert" <rclay@.kerrdrug.com> wrote in message
news:#S$Kw28TEHA.3988@.TK2MSFTNGP10.phx.gbl...
> Hari,
> Thanks for the information.
> We don't use the system databases for user data at all! I merely need to
> understand what is involved in a standard daily system maintenance
process.
> That being said, is it okay to just have the Optimizations, Integrity
> Checks, and Database Backup options for those three databases (master,
model
> and msdb) and forget about the Transaction Log backup for each?
> Thanks!
> Robert
> "Hari Prasad" <hari_prasad_k@.hotmail.com> wrote in message
> news:ObCeux8TEHA.4048@.TK2MSFTNGP12.phx.gbl...
though[vbcol=seagreen]
> need
> advised
>|||Thanks, Hari.
I will only backup the Transaction Logs for my user databases, then.
Robert|||Be aware that the backup history is in the msdb database. Because of this, I
also do log backup for msdb. For
some strange reason, MS decided to set msdb to simple recovery mode when age
nt starts, but I just fix that by
setting msdb to full in an auto-start agent job.
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"Robert" <rclay@.kerrdrug.com> wrote in message news:%23sbmuX9TEHA.3140@.tk2msftngp13.phx.gbl.
.
> Thanks, Hari.
> I will only backup the Transaction Logs for my user databases, then.
> Robert
>

Saturday, February 25, 2012

Newbie - sql server 2000 transaction log size limit

Has anybody encountered a physical size limit for a sql server 2000 transaction log running on win2k?
Transaction log reached ~6Gb before rolling back the delete stating transaction log was full. There was 42Gb free on the server and the log was set to unlimited growth.Originally posted by axis
Has anybody encountered a physical size limit for a sql server 2000 transaction log running on win2k?

Transaction log reached ~6Gb before rolling back the delete stating transaction log was full. There was 42Gb free on the server and the log was set to unlimited growth.

When the size is set to unlimited I think the limit is as big the win2k can handle?
I had once a log file of 15 Gb big|||usually helps if you make sure the path to the transaction log actualy is where you think it is. Created an extra log on the drive that did have 42gb and all is well.

thanks|||usually helps if you make sure the path to the transaction log actualy is where you think it is. Created an extra log on the drive that did have 42gb and all is well.

thanks

:D Thats true !!! sp_helpdb dbname always helps ...