Showing posts with label online. Show all posts
Showing posts with label online. Show all posts

Thursday, March 29, 2012

DBA guide

Any good SQLServer DBA guides available online? Preferably
a downloadable pdf. Or online in HTML.

Thank you.Hi

The best resource is Books Online!
http://www.microsoft.com/sql/techin.../2000/books.asp

This threads may help:
http://tinyurl.com/2pn4h
http://tinyurl.com/yuebf

John
"C.O.Jones" <nospam.ple@.se> wrote in message
news:dpLBc.2436$xy4.21713054@.news-text.cableinet.net...
> Any good SQLServer DBA guides available online? Preferably
> a downloadable pdf. Or online in HTML.
> Thank you.

Sunday, March 25, 2012

db_owner can't bring DB online

Is there a way to allow a db_owner to bring his database online without maki
ng him a SA?The Fixed Server Role db_creator will do the trick.
A login with the db_creator role will be allowed is online and offline a DB,
so long as they have a user for the DB. Not sure about the "guest/public" d
b user, because we never keep it|||Please don't repost the same question at one hour intervals. Give the
newsgroup readers a little more time to respond. This was already answered
in your earlier thread.
HTH
--
Kalen Delaney
SQL Server MVP
www.SolidQualityLearning.com
"Ajanti" <anonymous@.discussions.microsoft.com> wrote in message
news:D13F60E9-317C-4AEA-9B43-1F7794A2DB9F@.microsoft.com...
> Is there a way to allow a db_owner to bring his database online without
making him a SA?

Sunday, March 11, 2012

DB Question

I took one online test on SQL Server Admin, Four qustions i was not sure
answer
can any provide me answer
1. If you want to be able access the customers table directly from a Web
browser,
what database name must you configure in with the IIS Virtual Directory
Management Tool?
2. While backing up a database to a tape drive, the tape runs out of
space. You
replace the tape. Referring to the scenario above, what is the
correct way
to complete the backup?
3. What is different between Cluster and non cluster.
4. When do you need to use the REPLACE switch while restoring databases?
Thanks
kalyanHi
Taking the questions out of context makes them even more vaguer than usual!!
"Kalyan" <Kalyan@.discussions.microsoft.com> wrote in message
news:02660DB7-2319-4FFD-BF3E-D40EB284CFB8@.microsoft.com...
>I took one online test on SQL Server Admin, Four qustions i was not sure
> answer
> can any provide me answer
> 1. If you want to be able access the customers table directly from a Web
> browser,
> what database name must you configure in with the IIS Virtual
> Directory
> Management Tool?
The database will be the database where the customers table is located. You
don't have to name your virtual directory with the same name as the database
and the IIS Virtual Directory Management Tool allows you to create that
mapping.
> 2. While backing up a database to a tape drive, the tape runs out of
> space. You
> replace the tape. Referring to the scenario above, what is the
> correct way
> to complete the backup?
You will be prompted for the contiuation tape which once loaded you should
acknowledged Label and keep the tapes and when restoring the database load
the last tape first.
> 3. What is different between Cluster and non cluster.
Clustered tables and indexed views keep their data rows in order based on
the clustered index key
> 4. When do you need to use the REPLACE switch while restoring databases?
>
REPLACE will overwrite a database/datafile with the same name if they
already exist and bypasses checks that are made if you don't specify it.
You may want to check out books online for more detailed explanations.
John
> Thanks
> kalyan
>
>|||John
here is details about those questions
1. If you want to be able access the customers table directly from a Web
browser,
what database name must you configure in with the IIS Virtual Directory
Management Tool?
Choice 1
Dbobject
Choice 2
Xpath
Choice 3
Schema
Choice 4
Direct
Choice 5
Template
2. While backing up a database to a tape drive, the tape runs out of space.
You
replace the tape. Referring to the scenario above, what is the correct
way to
complete thebackup?
Choice 1
Repeat the previous backup command, adding the BEGIN option.
Choice 2
Repeat the previous backup command, adding the INIT option.
Choice 3
Repeat the previous backup command, adding the NOINIT option.
Choice 4
Repeat the previous backup command, adding the RESTART option.
Choice 5
Repeat the previous backup command, adding the BACKUP option.
Following is general question of my own not from any test
What is different between Cluster and non cluster.
When do you need to use the REPLACE switch while restoring databases?
Thanks
Kalyan
"John Bell" wrote:
> Hi
> Taking the questions out of context makes them even more vaguer than usual!!
> "Kalyan" <Kalyan@.discussions.microsoft.com> wrote in message
> news:02660DB7-2319-4FFD-BF3E-D40EB284CFB8@.microsoft.com...
> >I took one online test on SQL Server Admin, Four qustions i was not sure
> > answer
> > can any provide me answer
> >
> > 1. If you want to be able access the customers table directly from a Web
> > browser,
> > what database name must you configure in with the IIS Virtual
> > Directory
> > Management Tool?
> The database will be the database where the customers table is located. You
> don't have to name your virtual directory with the same name as the database
> and the IIS Virtual Directory Management Tool allows you to create that
> mapping.
> >
> > 2. While backing up a database to a tape drive, the tape runs out of
> > space. You
> > replace the tape. Referring to the scenario above, what is the
> > correct way
> > to complete the backup?
> You will be prompted for the contiuation tape which once loaded you should
> acknowledged Label and keep the tapes and when restoring the database load
> the last tape first.
> >
> > 3. What is different between Cluster and non cluster.
> Clustered tables and indexed views keep their data rows in order based on
> the clustered index key
> >
> > 4. When do you need to use the REPLACE switch while restoring databases?
> >
> REPLACE will overwrite a database/datafile with the same name if they
> already exist and bypasses checks that are made if you don't specify it.
> You may want to check out books online for more detailed explanations.
> John
>
> > Thanks
> > kalyan
> >
> >
> >
>
>|||Hi
"Kalyan" <Kalyan@.discussions.microsoft.com> wrote in message
news:F88206C9-4021-48C7-82D2-35909D3B77DC@.microsoft.com...
> John
> here is details about those questions
> 1. If you want to be able access the customers table directly from a Web
> browser,
> what database name must you configure in with the IIS Virtual
> Directory
> Management Tool?
> Choice 1
> Dbobject
> Choice 2
> Xpath
> Choice 3
> Schema
> Choice 4
> Direct
> Choice 5
> Template
It is DBObject as described in
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xmlsql/ac_xml1_8e7t.asp
> 2. While backing up a database to a tape drive, the tape runs out of
> space.
> You
> replace the tape. Referring to the scenario above, what is the
> correct
> way to
> complete thebackup?
> Choice 1
> Repeat the previous backup command, adding the BEGIN option.
> Choice 2
> Repeat the previous backup command, adding the INIT option.
> Choice 3
> Repeat the previous backup command, adding the NOINIT option.
> Choice 4
> Repeat the previous backup command, adding the RESTART option.
> Choice 5
> Repeat the previous backup command, adding the BACKUP option.
>
I would expect this to be RESTART.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/tsqlref/ts_ba-bz_35ww.asp
>
> Following is general question of my own not from any test
> What is different between Cluster and non cluster.
Check out
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/architec/8_ar_da2_8sit.asp
> When do you need to use the REPLACE switch while restoring databases?
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/tsqlref/ts_ra-rz_25rm.asp?frame=true
John
> Thanks
> Kalyan
> "John Bell" wrote:
>> Hi
>> Taking the questions out of context makes them even more vaguer than
>> usual!!
>> "Kalyan" <Kalyan@.discussions.microsoft.com> wrote in message
>> news:02660DB7-2319-4FFD-BF3E-D40EB284CFB8@.microsoft.com...
>> >I took one online test on SQL Server Admin, Four qustions i was not
>> >sure
>> > answer
>> > can any provide me answer
>> >
>> > 1. If you want to be able access the customers table directly from a
>> > Web
>> > browser,
>> > what database name must you configure in with the IIS Virtual
>> > Directory
>> > Management Tool?
>> The database will be the database where the customers table is located.
>> You
>> don't have to name your virtual directory with the same name as the
>> database
>> and the IIS Virtual Directory Management Tool allows you to create that
>> mapping.
>> >
>> > 2. While backing up a database to a tape drive, the tape runs out of
>> > space. You
>> > replace the tape. Referring to the scenario above, what is the
>> > correct way
>> > to complete the backup?
>> You will be prompted for the contiuation tape which once loaded you
>> should
>> acknowledged Label and keep the tapes and when restoring the database
>> load
>> the last tape first.
>> >
>> > 3. What is different between Cluster and non cluster.
>> Clustered tables and indexed views keep their data rows in order based on
>> the clustered index key
>> >
>> > 4. When do you need to use the REPLACE switch while restoring
>> > databases?
>> >
>> REPLACE will overwrite a database/datafile with the same name if they
>> already exist and bypasses checks that are made if you don't specify it.
>> You may want to check out books online for more detailed explanations.
>> John
>>
>> > Thanks
>> > kalyan
>> >
>> >
>> >
>>

DB Question

I took one online test on SQL Server Admin, Four qustions i was not sure
answer
can any provide me answer
1. If you want to be able access the customers table directly from a Web
browser,
what database name must you configure in with the IIS Virtual Directory
Management Tool?
2. While backing up a database to a tape drive, the tape runs out of
space. You
replace the tape. Referring to the scenario above, what is the
correct way
to complete the backup?
3. What is different between Cluster and non cluster.
4. When do you need to use the REPLACE switch while restoring databases?
Thanks
kalyan
Hi
Taking the questions out of context makes them even more vaguer than usual!!
"Kalyan" <Kalyan@.discussions.microsoft.com> wrote in message
news:02660DB7-2319-4FFD-BF3E-D40EB284CFB8@.microsoft.com...
>I took one online test on SQL Server Admin, Four qustions i was not sure
> answer
> can any provide me answer
> 1. If you want to be able access the customers table directly from a Web
> browser,
> what database name must you configure in with the IIS Virtual
> Directory
> Management Tool?
The database will be the database where the customers table is located. You
don't have to name your virtual directory with the same name as the database
and the IIS Virtual Directory Management Tool allows you to create that
mapping.

> 2. While backing up a database to a tape drive, the tape runs out of
> space. You
> replace the tape. Referring to the scenario above, what is the
> correct way
> to complete the backup?
You will be prompted for the contiuation tape which once loaded you should
acknowledged Label and keep the tapes and when restoring the database load
the last tape first.

> 3. What is different between Cluster and non cluster.
Clustered tables and indexed views keep their data rows in order based on
the clustered index key

> 4. When do you need to use the REPLACE switch while restoring databases?
>
REPLACE will overwrite a database/datafile with the same name if they
already exist and bypasses checks that are made if you don't specify it.
You may want to check out books online for more detailed explanations.
John

> Thanks
> kalyan
>
>
|||John
here is details about those questions
1. If you want to be able access the customers table directly from a Web
browser,
what database name must you configure in with the IIS Virtual Directory
Management Tool?
Choice 1
Dbobject
Choice 2
Xpath
Choice 3
Schema
Choice 4
Direct
Choice 5
Template
2. While backing up a database to a tape drive, the tape runs out of space.
You
replace the tape. Referring to the scenario above, what is the correct
way to
complete thebackup?
Choice 1
Repeat the previous backup command, adding the BEGIN option.
Choice 2
Repeat the previous backup command, adding the INIT option.
Choice 3
Repeat the previous backup command, adding the NOINIT option.
Choice 4
Repeat the previous backup command, adding the RESTART option.
Choice 5
Repeat the previous backup command, adding the BACKUP option.
Following is general question of my own not from any test
What is different between Cluster and non cluster.
When do you need to use the REPLACE switch while restoring databases?
Thanks
Kalyan
"John Bell" wrote:

> Hi
> Taking the questions out of context makes them even more vaguer than usual!!
> "Kalyan" <Kalyan@.discussions.microsoft.com> wrote in message
> news:02660DB7-2319-4FFD-BF3E-D40EB284CFB8@.microsoft.com...
> The database will be the database where the customers table is located. You
> don't have to name your virtual directory with the same name as the database
> and the IIS Virtual Directory Management Tool allows you to create that
> mapping.
> You will be prompted for the contiuation tape which once loaded you should
> acknowledged Label and keep the tapes and when restoring the database load
> the last tape first.
> Clustered tables and indexed views keep their data rows in order based on
> the clustered index key
> REPLACE will overwrite a database/datafile with the same name if they
> already exist and bypasses checks that are made if you don't specify it.
> You may want to check out books online for more detailed explanations.
> John
>
>
>
|||Hi
"Kalyan" <Kalyan@.discussions.microsoft.com> wrote in message
news:F88206C9-4021-48C7-82D2-35909D3B77DC@.microsoft.com...
> John
> here is details about those questions
> 1. If you want to be able access the customers table directly from a Web
> browser,
> what database name must you configure in with the IIS Virtual
> Directory
> Management Tool?
> Choice 1
> Dbobject
> Choice 2
> Xpath
> Choice 3
> Schema
> Choice 4
> Direct
> Choice 5
> Template
It is DBObject as described in
http://msdn.microsoft.com/library/de..._xml1_8e7t.asp

> 2. While backing up a database to a tape drive, the tape runs out of
> space.
> You
> replace the tape. Referring to the scenario above, what is the
> correct
> way to
> complete thebackup?
> Choice 1
> Repeat the previous backup command, adding the BEGIN option.
> Choice 2
> Repeat the previous backup command, adding the INIT option.
> Choice 3
> Repeat the previous backup command, adding the NOINIT option.
> Choice 4
> Repeat the previous backup command, adding the RESTART option.
> Choice 5
> Repeat the previous backup command, adding the BACKUP option.
>
I would expect this to be RESTART.
http://msdn.microsoft.com/library/de...ba-bz_35ww.asp

>
> Following is general question of my own not from any test
> What is different between Cluster and non cluster.
Check out
http://msdn.microsoft.com/library/de...r_da2_8sit.asp
> When do you need to use the REPLACE switch while restoring databases?
http://msdn.microsoft.com/library/de...asp?frame=true
John
[vbcol=seagreen]
> Thanks
> Kalyan
> "John Bell" wrote:

DB Question

I took one online test on SQL Server Admin, Four qustions i was not sure
answer
can any provide me answer
1. If you want to be able access the customers table directly from a Web
browser,
what database name must you configure in with the IIS Virtual Directory
Management Tool?
2. While backing up a database to a tape drive, the tape runs out of
space. You
replace the tape. Referring to the scenario above, what is the
correct way
to complete the backup?
3. What is different between Cluster and non cluster.
4. When do you need to use the REPLACE switch while restoring databases?
Thanks
kalyanHi
Taking the questions out of context makes them even more vaguer than usual!!
"Kalyan" <Kalyan@.discussions.microsoft.com> wrote in message
news:02660DB7-2319-4FFD-BF3E-D40EB284CFB8@.microsoft.com...
>I took one online test on SQL Server Admin, Four qustions i was not sure
> answer
> can any provide me answer
> 1. If you want to be able access the customers table directly from a Web
> browser,
> what database name must you configure in with the IIS Virtual
> Directory
> Management Tool?
The database will be the database where the customers table is located. You
don't have to name your virtual directory with the same name as the database
and the IIS Virtual Directory Management Tool allows you to create that
mapping.

> 2. While backing up a database to a tape drive, the tape runs out of
> space. You
> replace the tape. Referring to the scenario above, what is the
> correct way
> to complete the backup?
You will be prompted for the contiuation tape which once loaded you should
acknowledged Label and keep the tapes and when restoring the database load
the last tape first.

> 3. What is different between Cluster and non cluster.
Clustered tables and indexed views keep their data rows in order based on
the clustered index key

> 4. When do you need to use the REPLACE switch while restoring databases?
>
REPLACE will overwrite a database/datafile with the same name if they
already exist and bypasses checks that are made if you don't specify it.
You may want to check out books online for more detailed explanations.
John

> Thanks
> kalyan
>
>|||John
here is details about those questions
1. If you want to be able access the customers table directly from a Web
browser,
what database name must you configure in with the IIS Virtual Directory
Management Tool?
Choice 1
Dbobject
Choice 2
Xpath
Choice 3
Schema
Choice 4
Direct
Choice 5
Template
2. While backing up a database to a tape drive, the tape runs out of space.
You
replace the tape. Referring to the scenario above, what is the correct
way to
complete thebackup?
Choice 1
Repeat the previous backup command, adding the BEGIN option.
Choice 2
Repeat the previous backup command, adding the INIT option.
Choice 3
Repeat the previous backup command, adding the NOINIT option.
Choice 4
Repeat the previous backup command, adding the RESTART option.
Choice 5
Repeat the previous backup command, adding the BACKUP option.
Following is general question of my own not from any test
What is different between Cluster and non cluster.
When do you need to use the REPLACE switch while restoring databases?
Thanks
Kalyan
"John Bell" wrote:

> Hi
> Taking the questions out of context makes them even more vaguer than usual
!!
> "Kalyan" <Kalyan@.discussions.microsoft.com> wrote in message
> news:02660DB7-2319-4FFD-BF3E-D40EB284CFB8@.microsoft.com...
> The database will be the database where the customers table is located. Yo
u
> don't have to name your virtual directory with the same name as the databa
se
> and the IIS Virtual Directory Management Tool allows you to create that
> mapping.
>
> You will be prompted for the contiuation tape which once loaded you should
> acknowledged Label and keep the tapes and when restoring the database load
> the last tape first.
>
> Clustered tables and indexed views keep their data rows in order based on
> the clustered index key
>
> REPLACE will overwrite a database/datafile with the same name if they
> already exist and bypasses checks that are made if you don't specify it.
> You may want to check out books online for more detailed explanations.
> John
>
>
>
>|||Hi
"Kalyan" <Kalyan@.discussions.microsoft.com> wrote in message
news:F88206C9-4021-48C7-82D2-35909D3B77DC@.microsoft.com...
> John
> here is details about those questions
> 1. If you want to be able access the customers table directly from a Web
> browser,
> what database name must you configure in with the IIS Virtual
> Directory
> Management Tool?
> Choice 1
> Dbobject
> Choice 2
> Xpath
> Choice 3
> Schema
> Choice 4
> Direct
> Choice 5
> Template
It is DBObject as described in
7t.asp" target="_blank">http://msdn.microsoft.com/library/d...e
7t.asp

> 2. While backing up a database to a tape drive, the tape runs out of
> space.
> You
> replace the tape. Referring to the scenario above, what is the
> correct
> way to
> complete thebackup?
> Choice 1
> Repeat the previous backup command, adding the BEGIN option.
> Choice 2
> Repeat the previous backup command, adding the INIT option.
> Choice 3
> Repeat the previous backup command, adding the NOINIT option.
> Choice 4
> Repeat the previous backup command, adding the RESTART option.
> Choice 5
> Repeat the previous backup command, adding the BACKUP option.
>
I would expect this to be RESTART.
35ww.asp" target="_blank">http://msdn.microsoft.com/library/d...br />
35ww.asp

>
> Following is general question of my own not from any test
> What is different between Cluster and non cluster.
Check out
http://msdn.microsoft.com/library/d...ar_da2_8sit.asp[
vbcol=seagreen]
> When do you need to use the REPLACE switch while restoring databases?[/vbcol]
25rm.asp?frame=true" target="_blank">http://msdn.microsoft.com/library/d...asp?frame=true
John
[vbcol=seagreen]
> Thanks
> Kalyan
> "John Bell" wrote:
>

Friday, February 24, 2012

DB Maintenance optimization-reorganize data and index pages

Hello,
I read in Books Online that the DB Maintenance plan optimization option
(reorganzie data and index pages) rebuilds all indexes by dropping and
recreating them. Is this the same exact operation as dbcc dbreindex? If yes,
then I am assuming our database is not going to be available during database
maintenace job, correct? In an article recommended by this newsgroup, I read
that the dbcc dbreindex is an offline operation and the underlying tables are
not going to be available.
Thank you,
Mitra
Mitra,
The index is not available while it is being rebuilt. In the case of a
clustered index this is the table. An online option would be DBCC
INDEXDEFRAG.
HTH
Jerry
"mitra" <mitra@.discussions.microsoft.com> wrote in message
news:704BA968-A14C-412D-B104-498623DD0BFB@.microsoft.com...
> Hello,
> I read in Books Online that the DB Maintenance plan optimization option
> (reorganzie data and index pages) rebuilds all indexes by dropping and
> recreating them. Is this the same exact operation as dbcc dbreindex? If
> yes,
> then I am assuming our database is not going to be available during
> database
> maintenace job, correct? In an article recommended by this newsgroup, I
> read
> that the dbcc dbreindex is an offline operation and the underlying tables
> are
> not going to be available.
> Thank you,
> --
> Mitra

DB Maintenance optimization-reorganize data and index pages

Hello,
I read in Books Online that the DB Maintenance plan optimization option
(reorganzie data and index pages) rebuilds all indexes by dropping and
recreating them. Is this the same exact operation as dbcc dbreindex? If yes,
then I am assuming our database is not going to be available during database
maintenace job, correct? In an article recommended by this newsgroup, I read
that the dbcc dbreindex is an offline operation and the underlying tables ar
e
not going to be available.
Thank you,
--
MitraMitra,
The index is not available while it is being rebuilt. In the case of a
clustered index this is the table. An online option would be DBCC
INDEXDEFRAG.
HTH
Jerry
"mitra" <mitra@.discussions.microsoft.com> wrote in message
news:704BA968-A14C-412D-B104-498623DD0BFB@.microsoft.com...
> Hello,
> I read in Books Online that the DB Maintenance plan optimization option
> (reorganzie data and index pages) rebuilds all indexes by dropping and
> recreating them. Is this the same exact operation as dbcc dbreindex? If
> yes,
> then I am assuming our database is not going to be available during
> database
> maintenace job, correct? In an article recommended by this newsgroup, I
> read
> that the dbcc dbreindex is an offline operation and the underlying tables
> are
> not going to be available.
> Thank you,
> --
> Mitra

DB Maintenance optimization-reorganize data and index pages

Hello,
I read in Books Online that the DB Maintenance plan optimization option
(reorganzie data and index pages) rebuilds all indexes by dropping and
recreating them. Is this the same exact operation as dbcc dbreindex? If yes,
then I am assuming our database is not going to be available during database
maintenace job, correct? In an article recommended by this newsgroup, I read
that the dbcc dbreindex is an offline operation and the underlying tables are
not going to be available.
Thank you,
--
MitraMitra,
The index is not available while it is being rebuilt. In the case of a
clustered index this is the table. An online option would be DBCC
INDEXDEFRAG.
HTH
Jerry
"mitra" <mitra@.discussions.microsoft.com> wrote in message
news:704BA968-A14C-412D-B104-498623DD0BFB@.microsoft.com...
> Hello,
> I read in Books Online that the DB Maintenance plan optimization option
> (reorganzie data and index pages) rebuilds all indexes by dropping and
> recreating them. Is this the same exact operation as dbcc dbreindex? If
> yes,
> then I am assuming our database is not going to be available during
> database
> maintenace job, correct? In an article recommended by this newsgroup, I
> read
> that the dbcc dbreindex is an offline operation and the underlying tables
> are
> not going to be available.
> Thank you,
> --
> Mitra