Showing posts with label manager. Show all posts
Showing posts with label manager. Show all posts

Sunday, March 25, 2012

Database Backup using Query analyzer

Hi there,

How can I automate may database backup using query analyser?
My routine goes this way:
1. Every 5:00pm check Enterprise manager who is currenlty logged on to sql server.
2. If there are no currently logged on, edit the date sql script (back-up, both full and incremental). Be sure there are folders created at the main server.
3. Open Query analyser: log as backup operator
4. Open the SQL File, >Run>Close

This routine will take me 15 to 30 minutes a day because of the large file size.

Is there an easier way?I would recommend using SQL Agent for scheduling the job. You may need to make your query more robust depending on the reason you check for users in the database. If you are implying that you only perform a backup if there are no users connected, then your procedure would need to loop until that condition occurs -- SQL Server can successfully backup a database with active connections, so I'm not sure why you check for that.

Thursday, March 22, 2012

Database Backup Issue

Hi Guys
I have been working on database backups and recently I realised, when I take back up from enterprise manager and by my own scripts, these two files have differ in size like first one is MB and second one is GB.

Procedure One: I Have my own script to take backup
Checking DB Integrity
Rebuilding Table Indexes
Shrinking DB
DB Full backup

Procedure Two: Simply by right clicking on the DB using Enterprise manager.

Your advice will be appreciated.

PoisonHi
Thanks Alot .. I have resolved the issue...|||What was the resolution?|||I would bet that one of the methods was not initializing the backup file, but appending to it.|||Hi Geroge
With my script I was appending the data where as in Enterprise manager I was backing up with over write option...
Its my mistake...|||backup ... with init

Wednesday, March 21, 2012

Database Backup Failed with Timeout Expired from Enterprise Manager

Hi,

I have SQL Server 2000 with SP4. When we take backup from Enterprise manager its fails with error "timeout expired". But when we take backup from query analyzer it works.

It seems that through enterprise manager 30 sec is the non configurable timeout parameter set. Checked sysprocesses table during backup but there was no blocking during that time at least for that spid.

Is there a way to find out which process is blocking the database backup? Also, what are the possible scenarios where database backup can be blocked.

Thanks,

Ramesh

Hi rksingh,

When you run a backup or restore from the Enterprise manager, the querytimeout does not apply.

It timesout because the process is being blocked by another process.

It could be blocked by BACKUP LOG or ALTER DATABASE commands.

Open another QA session and use SP_WHO2 ACTIVE to check for blocking.

regards

Jag

|||

Check SQL error log what error it is recorded...all backup info recorded in sql error log.

|||

Problem is resolved with the help of Microsoft PSS.

There is query time out setting for SQL Server 2000 Enterprise Manager which was set to 100 in my case whereas set to 0 on other servers.

To change settings

1. Open enterprise Manager.

2. Click on Tools - > Options

3. Goto Advanced Tab

3. Under connection setting change the Query time out value.

Thanks,

Ramesh

Database Backup Failed with Timeout Expired from Enterprise Manager

Hi,

I have SQL Server 2000 with SP4. When we take backup from Enterprise manager its fails with error "timeout expired". But when we take backup from query analyzer it works.

It seems that through enterprise manager 30 sec is the non configurable timeout parameter set. Checked sysprocesses table during backup but there was no blocking during that time at least for that spid.

Is there a way to find out which process is blocking the database backup? Also, what are the possible scenarios where database backup can be blocked.

Thanks,

Ramesh

Hi rksingh,

When you run a backup or restore from the Enterprise manager, the querytimeout does not apply.

It timesout because the process is being blocked by another process.

It could be blocked by BACKUP LOG or ALTER DATABASE commands.

Open another QA session and use SP_WHO2 ACTIVE to check for blocking.

regards

Jag

|||

Check SQL error log what error it is recorded...all backup info recorded in sql error log.

|||

Problem is resolved with the help of Microsoft PSS.

There is query time out setting for SQL Server 2000 Enterprise Manager which was set to 100 in my case whereas set to 0 on other servers.

To change settings

1. Open enterprise Manager.

2. Click on Tools - > Options

3. Goto Advanced Tab

3. Under connection setting change the Query time out value.

Thanks,

Ramesh

sql

Database backup directory is invalid

Hi,

I'm using Database Maintenance Plans in Enterprise Manager and I'm trying to backup a database to a different server using a UNC (i.e. \\servername\backupdirectory).
I have done this successfully with two SQL Servers but every time I try to set the third SQL Server to backup to a UNC I get this message:

The complete database backup directory '\\servername\backupdirectory' is invalid.

The only differences that I can think of is that the server is Win2000 Advanced Server and the SQL Server is Enterprise Edn, where as the two that work are Standard Edn and are on Win2000 Servers (not Advanced).

Does anyone know why I am unable to do this on one SQL Server when I have had no trouble on the other two SQL Servers?

Any help would be greatly appreciated

Thanks,

TroyIf I had to make a guess, I'd say that the working box was using a domain login for the SQL Server service, and the non-working box was using localSystem.

-PatP|||Not a bad guess at all :rolleyes:

Thanks for your help.

Regards, Troy.

Database Backup and Backup in Database Maintenance

We are running SQL Enterprise Edition 2000 under Windows 2003 Standard
Edition server. Under Enterprise Manager, is there a difference between
the backup job setup under Databases, All Tasks, Backup Database and
Mangement, Database Management Plans. For some reasons, I am not able to
restore the backup file setup under Management, Data Management Plans.
Thanks.Hi Diane
I assume you mean the database maintenance plan rather than management plan?
If you set up a job using the backup wizard you will create a job that only
backs up the database. If you set up a maintenance plan it will set up one
or more jobs that can backup the database as well as re-index and do other
maintenance tasks on one or more databases.
If you wish to restore a database taken as part of a maintainance job, you
can us the restore wizard or the Restore T-SQL command in Query Analyser.
You may want to read "Designing a Backup and Restore Strategy" in Books
online regarding what you should have in place.
John
"Diane Walker" <ett9300@.yahoo.com> wrote in message
news:euTxi%23cYGHA.4760@.TK2MSFTNGP03.phx.gbl...
> We are running SQL Enterprise Edition 2000 under Windows 2003 Standard
> Edition server. Under Enterprise Manager, is there a difference between
> the backup job setup under Databases, All Tasks, Backup Database and
> Mangement, Database Management Plans. For some reasons, I am not able to
> restore the backup file setup under Management, Data Management Plans.
> Thanks.
>

Database Backup and Backup in Database Maintenance

We are running SQL Enterprise Edition 2000 under Windows 2003 Standard
Edition server. Under Enterprise Manager, is there a difference between
the backup job setup under Databases, All Tasks, Backup Database and
Mangement, Database Management Plans. For some reasons, I am not able to
restore the backup file setup under Management, Data Management Plans.
Thanks.Hi Diane
I assume you mean the database maintenance plan rather than management plan?
If you set up a job using the backup wizard you will create a job that only
backs up the database. If you set up a maintenance plan it will set up one
or more jobs that can backup the database as well as re-index and do other
maintenance tasks on one or more databases.
If you wish to restore a database taken as part of a maintainance job, you
can us the restore wizard or the Restore T-SQL command in Query Analyser.
You may want to read "Designing a Backup and Restore Strategy" in Books
online regarding what you should have in place.
John
"Diane Walker" <ett9300@.yahoo.com> wrote in message
news:euTxi%23cYGHA.4760@.TK2MSFTNGP03.phx.gbl...
> We are running SQL Enterprise Edition 2000 under Windows 2003 Standard
> Edition server. Under Enterprise Manager, is there a difference between
> the backup job setup under Databases, All Tasks, Backup Database and
> Mangement, Database Management Plans. For some reasons, I am not able to
> restore the backup file setup under Management, Data Management Plans.
> Thanks.
>sql

Database backup ? using Enterprise Manager

Hi I am using enterprise manager (SQL2000 server) and want to set up a
database backup schedule to occure daily at 11pm. Anyhow heard that you can
do this with Enterprise manager and also heard that you must activate the
server agent. Any information is appreciated. Thanks.
Paul G
Software engineer.
Did a quick search and seems to be plenty of information on the subject.
Paul G
Software engineer.
"Paul" wrote:

> Hi I am using enterprise manager (SQL2000 server) and want to set up a
> database backup schedule to occure daily at 11pm. Anyhow heard that you can
> do this with Enterprise manager and also heard that you must activate the
> server agent. Any information is appreciated. Thanks.
> --
> Paul G
> Software engineer.

Database backup ? using Enterprise Manager

Hi I am using enterprise manager (SQL2000 server) and want to set up a
database backup schedule to occure daily at 11pm. Anyhow heard that you can
do this with Enterprise manager and also heard that you must activate the
server agent. Any information is appreciated. Thanks.
--
Paul G
Software engineer.Did a quick search and seems to be plenty of information on the subject.
--
Paul G
Software engineer.
"Paul" wrote:

> Hi I am using enterprise manager (SQL2000 server) and want to set up a
> database backup schedule to occure daily at 11pm. Anyhow heard that you c
an
> do this with Enterprise manager and also heard that you must activate the
> server agent. Any information is appreciated. Thanks.
> --
> Paul G
> Software engineer.

Database backup ? using Enterprise Manager

Hi I am using enterprise manager (SQL2000 server) and want to set up a
database backup schedule to occure daily at 11pm. Anyhow heard that you can
do this with Enterprise manager and also heard that you must activate the
server agent. Any information is appreciated. Thanks.
--
Paul G
Software engineer.Did a quick search and seems to be plenty of information on the subject.
--
Paul G
Software engineer.
"Paul" wrote:
> Hi I am using enterprise manager (SQL2000 server) and want to set up a
> database backup schedule to occure daily at 11pm. Anyhow heard that you can
> do this with Enterprise manager and also heard that you must activate the
> server agent. Any information is appreciated. Thanks.
> --
> Paul G
> Software engineer.

Sunday, March 11, 2012

database and log files do not grow automatically

I have a database on SQL 2000 SP4 that is set via Enterprise Manager to grow
the database and log files automatically. It doesn't happen, however. They
run out of space and don't grow, even though there is plenty of physical disk
available. Any ideas what may be happening?
Thanks,
Roger
> They run out of space and don't grow
Can you be more specific?
Are you getting an error message? If so, what is it?
Otherwise, how do you know they need to grow?
Aaron Bertrand
SQL Server MVP
http://www.sqlblog.com/
http://www.aspfaq.com/5006
|||Hi Aaron,
The web application that uses the databases starts to throw errors to the
end users, such as "timeout expired" when they try to save data. If I look at
the database in Enterprise Manager, the transaction log or the database will
have less than 1MB free. If I set allocated space to say 1GB larger and
restart the IIS on the web server then the web app starts working normally
again.
In the application log, errors similar to the following were present:
Event Type:Error
Event Source:MSSQLSERVER
Event Category:(2)
Event ID:17052
Date:5/9/2007
Time:11:08:18 AM
User:N/A
Computer:SQL01
Description:
Error: 1105, Severity: 17, State: 2
Could not allocate space for object 'EventLog' in database 'Harmony_Live'
because the 'PRIMARY' filegroup is full.
|||> Could not allocate space for object 'EventLog' in database 'Harmony_Live'
> because the 'PRIMARY' filegroup is full.
Well, that sounds to me like the disk is full. What is your autogrowth
setting for the data and log files? What is the current result of:
USE Harmony_Live;
GO
EXEC sp_helpfile;
EXEC sp_spaceused;
EXEC master..xp_fixeddrives;
GO
|||Sorry about the formatting, but if you paste it into a text document it will
open correctly. I ran the query and the results were:
name fileid filename filegroup
size maxsize growth usage
-- -- --
-- -- -- --
Bremwood_Live_Data 1 F:\Harmony_Live\Harmony_Live.mdf PRIMARY
8192000 KB unlimited 10% data only
Bremwood_Live_Log 2 F:\Harmony_Live\Harmony_Live_log.ldf NULL
1024000 KB Unlimited 76800 KB log only
database_name database_size unallocated space
Harmony_Live 9000.00 MB 1318.63 MB
reserved data index_size unused
-- -- -- --
6841720 KB 6424632 KB 392088 KB 25000 KB
drive MB free
-- --
C 31155
D 122125
F 12074
(3 row(s) affected)
|||Have you considered moving the log file to a different drive? You have
plenty of space on D:\
How about changing the growth on the data file from a % (since 800MB is a
lot to initialize, and it just gets worse every time) to a more reasonable
fixed number, like 10 MB? Unless the operations that are requiring growth
in the first place are going to need motre than that in one shot?
Aaron Bertrand
SQL Server MVP
http://www.sqlblog.com/
http://www.aspfaq.com/5006
"Roger" <Roger@.discussions.microsoft.com> wrote in message
news:7293A561-541B-4D96-9849-1DC7CD0AA0E0@.microsoft.com...
> Sorry about the formatting, but if you paste it into a text document it
> will
> open correctly. I ran the query and the results were:
> name fileid filename filegroup
> size maxsize growth usage
> -- -- --
> -- -- -- --
> Bremwood_Live_Data 1 F:\Harmony_Live\Harmony_Live.mdf PRIMARY
> 8192000 KB unlimited 10% data only
> Bremwood_Live_Log 2 F:\Harmony_Live\Harmony_Live_log.ldf NULL
> 1024000 KB Unlimited 76800 KB log only
> database_name database_size unallocated space
> Harmony_Live 9000.00 MB 1318.63 MB
>
> reserved data index_size unused
> -- -- -- --
> 6841720 KB 6424632 KB 392088 KB 25000 KB
> drive MB free
> -- --
> C 31155
> D 122125
> F 12074
> (3 row(s) affected)
>
|||I've tried them at 10MB, then 75MB, then back to 10%. The same thing happened
with either setting. I have them on that F: drive because it's on our SAN,
whereas the D: drive is not. I can increase the size of that F: drive easily
enough, but since we weren't filling it up I didn't think it would fix the
problem.
Right now the db is at 10% growth and the transaction log is at 75MB growth.
I'll change them both to 75MB, but I think it'll continue to not grow.
Thanks for troubleshooting this with me. Do you have any other ideas?
Roger
"Aaron Bertrand [SQL Server MVP]" wrote:

> Have you considered moving the log file to a different drive? You have
> plenty of space on D:\
> How about changing the growth on the data file from a % (since 800MB is a
> lot to initialize, and it just gets worse every time) to a more reasonable
> fixed number, like 10 MB? Unless the operations that are requiring growth
> in the first place are going to need motre than that in one shot?
> --
> Aaron Bertrand
> SQL Server MVP
> http://www.sqlblog.com/
> http://www.aspfaq.com/5006
|||> Thanks for troubleshooting this with me. Do you have any other ideas?
Not right now, no. Is it possible that permissions on F:\ have changed, or
the user that SQL Server is running as has changed?
A
|||Anything's possible.
I logged into the SQL box as the user that SQL runs as and created/deleted a
text file in f:\harmony_live just to be sure.
Is there way I can send an alert if the database or transaction logs reach a
certain percentage of allocated space?
Thanks,
Roger

database and log files do not grow automatically

I have a database on SQL 2000 SP4 that is set via Enterprise Manager to grow
the database and log files automatically. It doesn't happen, however. They
run out of space and don't grow, even though there is plenty of physical dis
k
available. Any ideas what may be happening?
Thanks,
Roger> They run out of space and don't grow
Can you be more specific?
Are you getting an error message? If so, what is it?
Otherwise, how do you know they need to grow?
Aaron Bertrand
SQL Server MVP
http://www.sqlblog.com/
http://www.aspfaq.com/5006|||Hi Aaron,
The web application that uses the databases starts to throw errors to the
end users, such as "timeout expired" when they try to save data. If I look a
t
the database in Enterprise Manager, the transaction log or the database will
have less than 1MB free. If I set allocated space to say 1GB larger and
restart the IIS on the web server then the web app starts working normally
again.
In the application log, errors similar to the following were present:
Event Type: Error
Event Source: MSSQLSERVER
Event Category: (2)
Event ID: 17052
Date: 5/9/2007
Time: 11:08:18 AM
User: N/A
Computer: SQL01
Description:
Error: 1105, Severity: 17, State: 2
Could not allocate space for object 'EventLog' in database 'Harmony_Live'
because the 'PRIMARY' filegroup is full.|||> Could not allocate space for object 'EventLog' in database 'Harmony_Live'
> because the 'PRIMARY' filegroup is full.
Well, that sounds to me like the disk is full. What is your autogrowth
setting for the data and log files? What is the current result of:
USE Harmony_Live;
GO
EXEC sp_helpfile;
EXEC sp_spaceused;
EXEC master..xp_fixeddrives;
GO|||Sorry about the formatting, but if you paste it into a text document it will
open correctly. I ran the query and the results were:
name fileid filename filegroup
size maxsize growth usage
-- -- --
-- -- -- --
Bremwood_Live_Data 1 F:\Harmony_Live\Harmony_Live.mdf PRIMARY
8192000 KB unlimited 10% data only
Bremwood_Live_Log 2 F:\Harmony_Live\Harmony_Live_log.ldf NULL
1024000 KB Unlimited 76800 KB log only
database_name database_size unallocated space
---
Harmony_Live 9000.00 MB 1318.63 MB
reserved data index_size unused
-- -- -- --
6841720 KB 6424632 KB 392088 KB 25000 KB
drive MB free
-- --
C 31155
D 122125
F 12074
(3 row(s) affected)|||Have you considered moving the log file to a different drive? You have
plenty of space on D:\
How about changing the growth on the data file from a % (since 800MB is a
lot to initialize, and it just gets worse every time) to a more reasonable
fixed number, like 10 MB? Unless the operations that are requiring growth
in the first place are going to need motre than that in one shot?
Aaron Bertrand
SQL Server MVP
http://www.sqlblog.com/
http://www.aspfaq.com/5006
"Roger" <Roger@.discussions.microsoft.com> wrote in message
news:7293A561-541B-4D96-9849-1DC7CD0AA0E0@.microsoft.com...
> Sorry about the formatting, but if you paste it into a text document it
> will
> open correctly. I ran the query and the results were:
> name fileid filename filegroup
> size maxsize growth usage
> -- -- --
-
> -- -- -- --
> Bremwood_Live_Data 1 F:\Harmony_Live\Harmony_Live.mdf PRIMARY
> 8192000 KB unlimited 10% data only
> Bremwood_Live_Log 2 F:\Harmony_Live\Harmony_Live_log.ldf NULL
> 1024000 KB Unlimited 76800 KB log only
> database_name database_size unallocated space
> ---
> Harmony_Live 9000.00 MB 1318.63 MB
>
> reserved data index_size unused
> -- -- -- --
-
> 6841720 KB 6424632 KB 392088 KB 25000 KB
> drive MB free
> -- --
> C 31155
> D 122125
> F 12074
> (3 row(s) affected)
>|||I've tried them at 10MB, then 75MB, then back to 10%. The same thing happene
d
with either setting. I have them on that F: drive because it's on our SAN,
whereas the D: drive is not. I can increase the size of that F: drive easily
enough, but since we weren't filling it up I didn't think it would fix the
problem.
Right now the db is at 10% growth and the transaction log is at 75MB growth.
I'll change them both to 75MB, but I think it'll continue to not grow.
Thanks for troubleshooting this with me. Do you have any other ideas?
Roger
"Aaron Bertrand [SQL Server MVP]" wrote:

> Have you considered moving the log file to a different drive? You have
> plenty of space on D:\
> How about changing the growth on the data file from a % (since 800MB is a
> lot to initialize, and it just gets worse every time) to a more reasonable
> fixed number, like 10 MB? Unless the operations that are requiring growth
> in the first place are going to need motre than that in one shot?
> --
> Aaron Bertrand
> SQL Server MVP
> http://www.sqlblog.com/
> http://www.aspfaq.com/5006|||> Thanks for troubleshooting this with me. Do you have any other ideas?
Not right now, no. Is it possible that permissions on F:\ have changed, or
the user that SQL Server is running as has changed?
A|||Anything's possible.
I logged into the SQL box as the user that SQL runs as and created/deleted a
text file in f:\harmony_live just to be sure.
Is there way I can send an alert if the database or transaction logs reach a
certain percentage of allocated space?
Thanks,
Roger

database and log files do not grow automatically

I have a database on SQL 2000 SP4 that is set via Enterprise Manager to grow
the database and log files automatically. It doesn't happen, however. They
run out of space and don't grow, even though there is plenty of physical disk
available. Any ideas what may be happening?
Thanks,
Roger> They run out of space and don't grow
Can you be more specific?
Are you getting an error message? If so, what is it?
Otherwise, how do you know they need to grow?
--
Aaron Bertrand
SQL Server MVP
http://www.sqlblog.com/
http://www.aspfaq.com/5006|||Hi Aaron,
The web application that uses the databases starts to throw errors to the
end users, such as "timeout expired" when they try to save data. If I look at
the database in Enterprise Manager, the transaction log or the database will
have less than 1MB free. If I set allocated space to say 1GB larger and
restart the IIS on the web server then the web app starts working normally
again.
In the application log, errors similar to the following were present:
Event Type: Error
Event Source: MSSQLSERVER
Event Category: (2)
Event ID: 17052
Date: 5/9/2007
Time: 11:08:18 AM
User: N/A
Computer: SQL01
Description:
Error: 1105, Severity: 17, State: 2
Could not allocate space for object 'EventLog' in database 'Harmony_Live'
because the 'PRIMARY' filegroup is full.|||> Could not allocate space for object 'EventLog' in database 'Harmony_Live'
> because the 'PRIMARY' filegroup is full.
Well, that sounds to me like the disk is full. What is your autogrowth
setting for the data and log files? What is the current result of:
USE Harmony_Live;
GO
EXEC sp_helpfile;
EXEC sp_spaceused;
EXEC master..xp_fixeddrives;
GO|||Sorry about the formatting, but if you paste it into a text document it will
open correctly. I ran the query and the results were:
name fileid filename filegroup
size maxsize growth usage
-- -- --
-- -- -- --
Bremwood_Live_Data 1 F:\Harmony_Live\Harmony_Live.mdf PRIMARY
8192000 KB unlimited 10% data only
Bremwood_Live_Log 2 F:\Harmony_Live\Harmony_Live_log.ldf NULL
1024000 KB Unlimited 76800 KB log only
database_name database_size unallocated space
---
Harmony_Live 9000.00 MB 1318.63 MB
reserved data index_size unused
-- -- -- --
6841720 KB 6424632 KB 392088 KB 25000 KB
drive MB free
-- --
C 31155
D 122125
F 12074
(3 row(s) affected)|||Have you considered moving the log file to a different drive? You have
plenty of space on D:\
How about changing the growth on the data file from a % (since 800MB is a
lot to initialize, and it just gets worse every time) to a more reasonable
fixed number, like 10 MB? Unless the operations that are requiring growth
in the first place are going to need motre than that in one shot?
--
Aaron Bertrand
SQL Server MVP
http://www.sqlblog.com/
http://www.aspfaq.com/5006
"Roger" <Roger@.discussions.microsoft.com> wrote in message
news:7293A561-541B-4D96-9849-1DC7CD0AA0E0@.microsoft.com...
> Sorry about the formatting, but if you paste it into a text document it
> will
> open correctly. I ran the query and the results were:
> name fileid filename filegroup
> size maxsize growth usage
> -- -- --
> -- -- -- --
> Bremwood_Live_Data 1 F:\Harmony_Live\Harmony_Live.mdf PRIMARY
> 8192000 KB unlimited 10% data only
> Bremwood_Live_Log 2 F:\Harmony_Live\Harmony_Live_log.ldf NULL
> 1024000 KB Unlimited 76800 KB log only
> database_name database_size unallocated space
> ---
> Harmony_Live 9000.00 MB 1318.63 MB
>
> reserved data index_size unused
> -- -- -- --
> 6841720 KB 6424632 KB 392088 KB 25000 KB
> drive MB free
> -- --
> C 31155
> D 122125
> F 12074
> (3 row(s) affected)
>|||I've tried them at 10MB, then 75MB, then back to 10%. The same thing happened
with either setting. I have them on that F: drive because it's on our SAN,
whereas the D: drive is not. I can increase the size of that F: drive easily
enough, but since we weren't filling it up I didn't think it would fix the
problem.
Right now the db is at 10% growth and the transaction log is at 75MB growth.
I'll change them both to 75MB, but I think it'll continue to not grow.
Thanks for troubleshooting this with me. Do you have any other ideas?
Roger
"Aaron Bertrand [SQL Server MVP]" wrote:
> Have you considered moving the log file to a different drive? You have
> plenty of space on D:\
> How about changing the growth on the data file from a % (since 800MB is a
> lot to initialize, and it just gets worse every time) to a more reasonable
> fixed number, like 10 MB? Unless the operations that are requiring growth
> in the first place are going to need motre than that in one shot?
> --
> Aaron Bertrand
> SQL Server MVP
> http://www.sqlblog.com/
> http://www.aspfaq.com/5006|||> Thanks for troubleshooting this with me. Do you have any other ideas?
Not right now, no. Is it possible that permissions on F:\ have changed, or
the user that SQL Server is running as has changed?
A|||Anything's possible. :)
I logged into the SQL box as the user that SQL runs as and created/deleted a
text file in f:\harmony_live just to be sure.
Is there way I can send an alert if the database or transaction logs reach a
certain percentage of allocated space?
Thanks,
Roger

Thursday, March 8, 2012

Database Admin Security Permissions

Hi,
We installed SQL 2000 Tools only (Enterprise manager) on
the database admins pc's, and now we want to setup
permissions for the database admins to only be able to do
database administration.
Should I use Windows authentication, (how do I setup just
enough permissions?) or SQL Authentication (how do I do
that?) Is there a whitepaper for this? What is the best
practice?
Thanks,
Judith
Hi,
What ever authentication, If you set the SYSTEM ADMIN role to DBA person, he
can do administration as well as any changes to databases .
Why should you restrict access to database administrators? Normally in all
enterprises he is the guy who is responsible
for your datbase server. So no need to protect the access from him
Thanks
Hari
MCDBA
"Judith" <anonymous@.discussions.microsoft.com> wrote in message
news:12b9801c44339$5cf78a20$a401280a@.phx.gbl...
> Hi,
> We installed SQL 2000 Tools only (Enterprise manager) on
> the database admins pc's, and now we want to setup
> permissions for the database admins to only be able to do
> database administration.
> Should I use Windows authentication, (how do I setup just
> enough permissions?) or SQL Authentication (how do I do
> that?) Is there a whitepaper for this? What is the best
> practice?
> Thanks,
> Judith
>
|||Well, I could think of this myself! But the question is
that that I want to restrict access for database admins,
because it's a different department and responsibility. So
our enterprise is a little different. Does anybody knows
more about this subject?
Thanks in advance!!!

>--Original Message--
>Hi,
>What ever authentication, If you set the SYSTEM ADMIN
role to DBA person, he
>can do administration as well as any changes to
databases .
>Why should you restrict access to database
administrators? Normally in all
>enterprises he is the guy who is responsible
>for your datbase server. So no need to protect the access
from him
>Thanks
>Hari
>MCDBA
>
>"Judith" <anonymous@.discussions.microsoft.com> wrote in
message[vbcol=seagreen]
>news:12b9801c44339$5cf78a20$a401280a@.phx.gbl...
do[vbcol=seagreen]
just
>
>.
>

Saturday, February 25, 2012

Data/Transaction log files for two databases have same file name

We have two db's. One live and one test.

When I right click on the live one in SQL Enterprise Manager and
select properties -> Data Files ->
File Name is LIVE.MDF
Location is F:\Data\LIVE.MDF

When I right click on the test one in SQL Enterprise Manager and
select properties -> Data Files ->
File Name is LIVE.MDF
Location is F:\Data\TEST.MDF

Same thing applies to Transaction log files too.

My concern is File Name is same in both the above cases even though
the location is different. What are the consequences of this.

Thanks for your help

GVVGirish (kattukuyil@.hotmail.com) writes:
> When I right click on the live one in SQL Enterprise Manager and
> select properties -> Data Files ->
> File Name is LIVE.MDF
> Location is F:\Data\LIVE.MDF
> When I right click on the test one in SQL Enterprise Manager and
> select properties -> Data Files ->
> File Name is LIVE.MDF
> Location is F:\Data\TEST.MDF
> Same thing applies to Transaction log files too.
> My concern is File Name is same in both the above cases even though
> the location is different. What are the consequences of this.

Nothing. The filename in question is just a logical name within the
database.

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

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

Tuesday, February 14, 2012

Data Transformation Services

How can I make a DTS in MSSQL Server Management Studio Express?

I know how to do that in SQL Server Enterprise Manager.

Is this restricted in the express?

Thanks.

SSIS (aka, DTS) is only available with SQL Server 2005 Standard Edition and above. With Standard Edition, you can use Business Intelligence Studio to make SSIS packages.

http://www.microsoft.com/sql/prodinfo/features/compare-features.mspx

|||

I'm not fully certain, but the original poster likely wasn't talking about SSIS. Most people no longer mistakenly call SSIS by the name DTS. The question is "How can I make a DTS in MSSQL Server Management Studio Express?" I took this to mean - "How do I make a DTS package for SQL 2000 using SQL 2005's Managment Studio Express?"

Microsoft has released the Feature Pack for SQL 2005. In it, there is an item called Microsoft SQL Server 2000 DTS Designer Components.

http://www.microsoft.com/downloads/details.aspx?familyid=d09c1d60-a13c-4479-9b91-9e8b9d835cdc&displaylang=en

It is unclear whether or not this runs in the Expess studio, but I haven't gotten it to work. I believe it will likley run in the full version of Managment Studio, but I haven't tried. Anyone have any success with DTS Designer Components and the Express edition?

Data Transformation Services

How can I make a DTS in MSSQL Server Management Studio Express?

I know how to do that in SQL Server Enterprise Manager.

Is this restricted in the express?

Thanks.

SSIS (aka, DTS) is only available with SQL Server 2005 Standard Edition and above. With Standard Edition, you can use Business Intelligence Studio to make SSIS packages.

http://www.microsoft.com/sql/prodinfo/features/compare-features.mspx

|||

I'm not fully certain, but the original poster likely wasn't talking about SSIS. Most people no longer mistakenly call SSIS by the name DTS. The question is "How can I make a DTS in MSSQL Server Management Studio Express?" I took this to mean - "How do I make a DTS package for SQL 2000 using SQL 2005's Managment Studio Express?"

Microsoft has released the Feature Pack for SQL 2005. In it, there is an item called Microsoft SQL Server 2000 DTS Designer Components.

http://www.microsoft.com/downloads/details.aspx?familyid=d09c1d60-a13c-4479-9b91-9e8b9d835cdc&displaylang=en

It is unclear whether or not this runs in the Expess studio, but I haven't gotten it to work. I believe it will likley run in the full version of Managment Studio, but I haven't tried. Anyone have any success with DTS Designer Components and the Express edition?