How do I backup a data file & transaction log from one instance of SQL to a different sql server. I have done a complete backup and now I want to restore the database but on a different SQL server, but the *.mdf and *.ldf is missing, so how do I restore them also?When you did the full backup you created a backup file. When you restore
this the mdf and ldf will be created.
On the instance you want to restore to restore from the device. On the
second tab will be the location of the mdf and ldf - this will be the
file names from the other instance so you will have to overtype with
another filename or path.
Nigel Rivett
www.nigelrivett.net
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!|||If you restore to another SQL server you also have to think about databaseusers. The users from the database you restore stil are in the DB when it's on the new server but you not see them. You can either run the drop user or use sp_change_users_login 'Auto_Fix', 'username', NULL. This is call ophran users
/Joel|||Thanks a million. I completed the backup and did the restore on the other instance of SQL server and it worked like a charm. You're a life saver!
Showing posts with label instance. Show all posts
Showing posts with label instance. Show all posts
Thursday, March 29, 2012
Data File Size
Does the % full of a datafile or a database impact performance?
For instance if I have a database that is 90-99% full will that have a
negative impact on performance are there any rules of thumb regarding this.
This is of course prior to the database being autmatically grown."JDS" <JDS@.discussions.microsoft.com> wrote in message
news:6D4CD763-FC56-4660-9097-8AC4E188D9AF@.microsoft.com...
> Does the % full of a datafile or a database impact performance?
> For instance if I have a database that is 90-99% full will that have a
> negative impact on performance are there any rules of thumb regarding
> this.
> This is of course prior to the database being autmatically grown.
It really depends on how the DB is being used.
If you're doing strictly queries, no.
If you're doing strictly inserts, then yes.
If you're doing strictly updates, then maybe.
If you're doing some mixture of above "it depends".
Obviously with inserts, you'll need more room once you hit 100% full. Before
then it probably won't matter.
If you're doing updates and the data fits in the same space as the current
data, you're probably fine. If you update a varchar(500) from a two
character entry to a 400 character entry, odds the DB will need to move
stuff around.
Greg Moore
SQL Server DBA Consulting Remote and Onsite available!
Email: sql (at) greenms.com http://www.greenms.com/sqlserver.html|||Best practice is to size your database proactively and only let autogrowth
act in 'emergency' cases. Size the database to allow for 1-2 years of
expected growth, and revisit at least every 6 months. This will allow for
maintenance operations like index rebuilds/reorgs to be able to lay data
down sequentially on disk for optimal performance and also avoid autogrowth
slowdowns during peak periods.
--
Kevin G. Boles
Indicium Resources, Inc.
SQL Server MVP
kgboles a earthlink dt net
"JDS" <JDS@.discussions.microsoft.com> wrote in message
news:6D4CD763-FC56-4660-9097-8AC4E188D9AF@.microsoft.com...
> Does the % full of a datafile or a database impact performance?
> For instance if I have a database that is 90-99% full will that have a
> negative impact on performance are there any rules of thumb regarding
> this.
> This is of course prior to the database being autmatically grown.|||Thanks Guys,
I understand that if the database is at a point that it's forced to autogrow
that will degrade performance while the database is growing. I want to know
what the impact of a say 90-95% full database is. This is with out an
autogrow situation. There will be updates, inserts, and reads but we never
reach full capicity. Does a database say that is 60-75% full perfom better
than a database that is 90-95% full or is there no known impact.
"TheSQLGuru" wrote:
> Best practice is to size your database proactively and only let autogrowth
> act in 'emergency' cases. Size the database to allow for 1-2 years of
> expected growth, and revisit at least every 6 months. This will allow for
> maintenance operations like index rebuilds/reorgs to be able to lay data
> down sequentially on disk for optimal performance and also avoid autogrowth
> slowdowns during peak periods.
> --
> Kevin G. Boles
> Indicium Resources, Inc.
> SQL Server MVP
> kgboles a earthlink dt net
>
> "JDS" <JDS@.discussions.microsoft.com> wrote in message
> news:6D4CD763-FC56-4660-9097-8AC4E188D9AF@.microsoft.com...
> > Does the % full of a datafile or a database impact performance?
> > For instance if I have a database that is 90-99% full will that have a
> > negative impact on performance are there any rules of thumb regarding
> > this.
> > This is of course prior to the database being autmatically grown.
>
>|||Just to add more to what Kevin was getting at. Chances are (not 100%
guaranteed) that the closer you get to a full database the more the data
will be non-contiguous in the data files. When you reindex an index with
DBCC DBREINDEX or ALTER INDEX REBUILD the engine will create an entirely new
copy of the index in the file and then drop the old one when done. So first
off you need about 1.2 times the size of the index in free space just to
rebuild it. But if you only have that exact amount or anything close you
will most likely get the new index built in small fragments or pockets
within the data file(s) where ever there happened to be room. Where as with
plenty of free space the chances are much greater that you will have the
indexes built in a contiguous fashion. And if you do any range or table
scans, read - ahead's etc. this can make a big difference in performance.
Andrew J. Kelly SQL MVP
Solid Quality Mentors
"JDS" <JDS@.discussions.microsoft.com> wrote in message
news:F5291FF9-8516-437D-9053-3814FB5835B1@.microsoft.com...
> Thanks Guys,
> I understand that if the database is at a point that it's forced to
> autogrow
> that will degrade performance while the database is growing. I want to
> know
> what the impact of a say 90-95% full database is. This is with out an
> autogrow situation. There will be updates, inserts, and reads but we
> never
> reach full capicity. Does a database say that is 60-75% full perfom
> better
> than a database that is 90-95% full or is there no known impact.
> "TheSQLGuru" wrote:
>> Best practice is to size your database proactively and only let
>> autogrowth
>> act in 'emergency' cases. Size the database to allow for 1-2 years of
>> expected growth, and revisit at least every 6 months. This will allow
>> for
>> maintenance operations like index rebuilds/reorgs to be able to lay data
>> down sequentially on disk for optimal performance and also avoid
>> autogrowth
>> slowdowns during peak periods.
>> --
>> Kevin G. Boles
>> Indicium Resources, Inc.
>> SQL Server MVP
>> kgboles a earthlink dt net
>>
>> "JDS" <JDS@.discussions.microsoft.com> wrote in message
>> news:6D4CD763-FC56-4660-9097-8AC4E188D9AF@.microsoft.com...
>> > Does the % full of a datafile or a database impact performance?
>> > For instance if I have a database that is 90-99% full will that have a
>> > negative impact on performance are there any rules of thumb regarding
>> > this.
>> > This is of course prior to the database being autmatically grown.
>>
For instance if I have a database that is 90-99% full will that have a
negative impact on performance are there any rules of thumb regarding this.
This is of course prior to the database being autmatically grown."JDS" <JDS@.discussions.microsoft.com> wrote in message
news:6D4CD763-FC56-4660-9097-8AC4E188D9AF@.microsoft.com...
> Does the % full of a datafile or a database impact performance?
> For instance if I have a database that is 90-99% full will that have a
> negative impact on performance are there any rules of thumb regarding
> this.
> This is of course prior to the database being autmatically grown.
It really depends on how the DB is being used.
If you're doing strictly queries, no.
If you're doing strictly inserts, then yes.
If you're doing strictly updates, then maybe.
If you're doing some mixture of above "it depends".
Obviously with inserts, you'll need more room once you hit 100% full. Before
then it probably won't matter.
If you're doing updates and the data fits in the same space as the current
data, you're probably fine. If you update a varchar(500) from a two
character entry to a 400 character entry, odds the DB will need to move
stuff around.
Greg Moore
SQL Server DBA Consulting Remote and Onsite available!
Email: sql (at) greenms.com http://www.greenms.com/sqlserver.html|||Best practice is to size your database proactively and only let autogrowth
act in 'emergency' cases. Size the database to allow for 1-2 years of
expected growth, and revisit at least every 6 months. This will allow for
maintenance operations like index rebuilds/reorgs to be able to lay data
down sequentially on disk for optimal performance and also avoid autogrowth
slowdowns during peak periods.
--
Kevin G. Boles
Indicium Resources, Inc.
SQL Server MVP
kgboles a earthlink dt net
"JDS" <JDS@.discussions.microsoft.com> wrote in message
news:6D4CD763-FC56-4660-9097-8AC4E188D9AF@.microsoft.com...
> Does the % full of a datafile or a database impact performance?
> For instance if I have a database that is 90-99% full will that have a
> negative impact on performance are there any rules of thumb regarding
> this.
> This is of course prior to the database being autmatically grown.|||Thanks Guys,
I understand that if the database is at a point that it's forced to autogrow
that will degrade performance while the database is growing. I want to know
what the impact of a say 90-95% full database is. This is with out an
autogrow situation. There will be updates, inserts, and reads but we never
reach full capicity. Does a database say that is 60-75% full perfom better
than a database that is 90-95% full or is there no known impact.
"TheSQLGuru" wrote:
> Best practice is to size your database proactively and only let autogrowth
> act in 'emergency' cases. Size the database to allow for 1-2 years of
> expected growth, and revisit at least every 6 months. This will allow for
> maintenance operations like index rebuilds/reorgs to be able to lay data
> down sequentially on disk for optimal performance and also avoid autogrowth
> slowdowns during peak periods.
> --
> Kevin G. Boles
> Indicium Resources, Inc.
> SQL Server MVP
> kgboles a earthlink dt net
>
> "JDS" <JDS@.discussions.microsoft.com> wrote in message
> news:6D4CD763-FC56-4660-9097-8AC4E188D9AF@.microsoft.com...
> > Does the % full of a datafile or a database impact performance?
> > For instance if I have a database that is 90-99% full will that have a
> > negative impact on performance are there any rules of thumb regarding
> > this.
> > This is of course prior to the database being autmatically grown.
>
>|||Just to add more to what Kevin was getting at. Chances are (not 100%
guaranteed) that the closer you get to a full database the more the data
will be non-contiguous in the data files. When you reindex an index with
DBCC DBREINDEX or ALTER INDEX REBUILD the engine will create an entirely new
copy of the index in the file and then drop the old one when done. So first
off you need about 1.2 times the size of the index in free space just to
rebuild it. But if you only have that exact amount or anything close you
will most likely get the new index built in small fragments or pockets
within the data file(s) where ever there happened to be room. Where as with
plenty of free space the chances are much greater that you will have the
indexes built in a contiguous fashion. And if you do any range or table
scans, read - ahead's etc. this can make a big difference in performance.
Andrew J. Kelly SQL MVP
Solid Quality Mentors
"JDS" <JDS@.discussions.microsoft.com> wrote in message
news:F5291FF9-8516-437D-9053-3814FB5835B1@.microsoft.com...
> Thanks Guys,
> I understand that if the database is at a point that it's forced to
> autogrow
> that will degrade performance while the database is growing. I want to
> know
> what the impact of a say 90-95% full database is. This is with out an
> autogrow situation. There will be updates, inserts, and reads but we
> never
> reach full capicity. Does a database say that is 60-75% full perfom
> better
> than a database that is 90-95% full or is there no known impact.
> "TheSQLGuru" wrote:
>> Best practice is to size your database proactively and only let
>> autogrowth
>> act in 'emergency' cases. Size the database to allow for 1-2 years of
>> expected growth, and revisit at least every 6 months. This will allow
>> for
>> maintenance operations like index rebuilds/reorgs to be able to lay data
>> down sequentially on disk for optimal performance and also avoid
>> autogrowth
>> slowdowns during peak periods.
>> --
>> Kevin G. Boles
>> Indicium Resources, Inc.
>> SQL Server MVP
>> kgboles a earthlink dt net
>>
>> "JDS" <JDS@.discussions.microsoft.com> wrote in message
>> news:6D4CD763-FC56-4660-9097-8AC4E188D9AF@.microsoft.com...
>> > Does the % full of a datafile or a database impact performance?
>> > For instance if I have a database that is 90-99% full will that have a
>> > negative impact on performance are there any rules of thumb regarding
>> > this.
>> > This is of course prior to the database being autmatically grown.
>>
data file path in SQL 2005
After I created an instance in SQL 2005, can I still change the data file
path and how? Thanks.Do you mean the default location for databases? If so use the Management
Studio and go to the properties of the instance. One of the categories is
databases and yoiu can set the default location there.
-003KobeBrian wrote:
> After I created an instance in SQL 2005, can I still change the data file
> path and how? Thanks.
--
Brett I. Holcomb
brettholcomb@.R777bellsouth.net
Remove R777 to email|||I found the database default location. I wonder how this works since I can
see the datafile path in individual database. So I specify the database
default location at top level, will that overwrite the datafile path in
individual database?
"Brett I. Holcomb" <brettholcomb@.bellsouth.net> wrote in message
news:%23UQ7WCrDHHA.3212@.TK2MSFTNGP04.phx.gbl...
> Do you mean the default location for databases? If so use the Management
> Studio and go to the properties of the instance. One of the categories is
> databases and yoiu can set the default location there.
> -003KobeBrian wrote:
>> After I created an instance in SQL 2005, can I still change the data file
>> path and how? Thanks.
> --
> Brett I. Holcomb
> brettholcomb@.R777bellsouth.net
> Remove R777 to email|||When you create a new database, you can specify a specific file location, or
use the default. If you do not specify a new location, the default will be
used. If you specify a location, it will override the default.
The default only applies to new databases. It will not 'overwrite' any
location for existing database files.
--
HTH
Kalen Delaney, SQL Server MVP
http://sqlblog.com
"-003KobeBrian" <kb@.yahoo.com> wrote in message
news:epJhkvrDHHA.348@.TK2MSFTNGP06.phx.gbl...
>I found the database default location. I wonder how this works since I can
>see the datafile path in individual database. So I specify the database
>default location at top level, will that overwrite the datafile path in
>individual database?
> "Brett I. Holcomb" <brettholcomb@.bellsouth.net> wrote in message
> news:%23UQ7WCrDHHA.3212@.TK2MSFTNGP04.phx.gbl...
>> Do you mean the default location for databases? If so use the Management
>> Studio and go to the properties of the instance. One of the categories
>> is
>> databases and yoiu can set the default location there.
>> -003KobeBrian wrote:
>> After I created an instance in SQL 2005, can I still change the data
>> file
>> path and how? Thanks.
>> --
>> Brett I. Holcomb
>> brettholcomb@.R777bellsouth.net
>> Remove R777 to email
>|||Hi
If you want to move the data and log files to a different location for
existing database then you can call sp_detach_db to detach the files, move
the file (at a command prompt!) and then call sp_attach_db to re-attach the
data and log files. Alternatively you can backup the database and restore it
specifying a different location for the files on the options table or use the
MOVE clause in the RESTORE command in T-SQL. You may want to read
http://support.microsoft.com/kb/224071/
HTH
John
"-003KobeBrian" wrote:
> I found the database default location. I wonder how this works since I can
> see the datafile path in individual database. So I specify the database
> default location at top level, will that overwrite the datafile path in
> individual database?
> "Brett I. Holcomb" <brettholcomb@.bellsouth.net> wrote in message
> news:%23UQ7WCrDHHA.3212@.TK2MSFTNGP04.phx.gbl...
> > Do you mean the default location for databases? If so use the Management
> > Studio and go to the properties of the instance. One of the categories is
> > databases and yoiu can set the default location there.
> >
> > -003KobeBrian wrote:
> >
> >> After I created an instance in SQL 2005, can I still change the data file
> >> path and how? Thanks.
> >
> > --
> > Brett I. Holcomb
> > brettholcomb@.R777bellsouth.net
> > Remove R777 to email
>
>|||To add on to other posts.. Use the below uRL to move system databases
http://www.sqlservercentral.com/columnists/vIacoboni/2605.asp
Thanks
Hari
"-003KobeBrian" <kb@.yahoo.com> wrote in message
news:OELu8ZqDHHA.4464@.TK2MSFTNGP06.phx.gbl...
> After I created an instance in SQL 2005, can I still change the data file
> path and how? Thanks.
>|||Very helpful. Thanks
"John Bell" <jbellnewsposts@.hotmail.com> wrote in message
news:D9A36D72-A50F-464C-AC88-A3C5E8420123@.microsoft.com...
> Hi
> If you want to move the data and log files to a different location for
> existing database then you can call sp_detach_db to detach the files, move
> the file (at a command prompt!) and then call sp_attach_db to re-attach
> the
> data and log files. Alternatively you can backup the database and restore
> it
> specifying a different location for the files on the options table or use
> the
> MOVE clause in the RESTORE command in T-SQL. You may want to read
> http://support.microsoft.com/kb/224071/
> HTH
> John
> "-003KobeBrian" wrote:
>> I found the database default location. I wonder how this works since I
>> can
>> see the datafile path in individual database. So I specify the database
>> default location at top level, will that overwrite the datafile path in
>> individual database?
>> "Brett I. Holcomb" <brettholcomb@.bellsouth.net> wrote in message
>> news:%23UQ7WCrDHHA.3212@.TK2MSFTNGP04.phx.gbl...
>> > Do you mean the default location for databases? If so use the
>> > Management
>> > Studio and go to the properties of the instance. One of the categories
>> > is
>> > databases and yoiu can set the default location there.
>> >
>> > -003KobeBrian wrote:
>> >
>> >> After I created an instance in SQL 2005, can I still change the data
>> >> file
>> >> path and how? Thanks.
>> >
>> > --
>> > Brett I. Holcomb
>> > brettholcomb@.R777bellsouth.net
>> > Remove R777 to email
>>
path and how? Thanks.Do you mean the default location for databases? If so use the Management
Studio and go to the properties of the instance. One of the categories is
databases and yoiu can set the default location there.
-003KobeBrian wrote:
> After I created an instance in SQL 2005, can I still change the data file
> path and how? Thanks.
--
Brett I. Holcomb
brettholcomb@.R777bellsouth.net
Remove R777 to email|||I found the database default location. I wonder how this works since I can
see the datafile path in individual database. So I specify the database
default location at top level, will that overwrite the datafile path in
individual database?
"Brett I. Holcomb" <brettholcomb@.bellsouth.net> wrote in message
news:%23UQ7WCrDHHA.3212@.TK2MSFTNGP04.phx.gbl...
> Do you mean the default location for databases? If so use the Management
> Studio and go to the properties of the instance. One of the categories is
> databases and yoiu can set the default location there.
> -003KobeBrian wrote:
>> After I created an instance in SQL 2005, can I still change the data file
>> path and how? Thanks.
> --
> Brett I. Holcomb
> brettholcomb@.R777bellsouth.net
> Remove R777 to email|||When you create a new database, you can specify a specific file location, or
use the default. If you do not specify a new location, the default will be
used. If you specify a location, it will override the default.
The default only applies to new databases. It will not 'overwrite' any
location for existing database files.
--
HTH
Kalen Delaney, SQL Server MVP
http://sqlblog.com
"-003KobeBrian" <kb@.yahoo.com> wrote in message
news:epJhkvrDHHA.348@.TK2MSFTNGP06.phx.gbl...
>I found the database default location. I wonder how this works since I can
>see the datafile path in individual database. So I specify the database
>default location at top level, will that overwrite the datafile path in
>individual database?
> "Brett I. Holcomb" <brettholcomb@.bellsouth.net> wrote in message
> news:%23UQ7WCrDHHA.3212@.TK2MSFTNGP04.phx.gbl...
>> Do you mean the default location for databases? If so use the Management
>> Studio and go to the properties of the instance. One of the categories
>> is
>> databases and yoiu can set the default location there.
>> -003KobeBrian wrote:
>> After I created an instance in SQL 2005, can I still change the data
>> file
>> path and how? Thanks.
>> --
>> Brett I. Holcomb
>> brettholcomb@.R777bellsouth.net
>> Remove R777 to email
>|||Hi
If you want to move the data and log files to a different location for
existing database then you can call sp_detach_db to detach the files, move
the file (at a command prompt!) and then call sp_attach_db to re-attach the
data and log files. Alternatively you can backup the database and restore it
specifying a different location for the files on the options table or use the
MOVE clause in the RESTORE command in T-SQL. You may want to read
http://support.microsoft.com/kb/224071/
HTH
John
"-003KobeBrian" wrote:
> I found the database default location. I wonder how this works since I can
> see the datafile path in individual database. So I specify the database
> default location at top level, will that overwrite the datafile path in
> individual database?
> "Brett I. Holcomb" <brettholcomb@.bellsouth.net> wrote in message
> news:%23UQ7WCrDHHA.3212@.TK2MSFTNGP04.phx.gbl...
> > Do you mean the default location for databases? If so use the Management
> > Studio and go to the properties of the instance. One of the categories is
> > databases and yoiu can set the default location there.
> >
> > -003KobeBrian wrote:
> >
> >> After I created an instance in SQL 2005, can I still change the data file
> >> path and how? Thanks.
> >
> > --
> > Brett I. Holcomb
> > brettholcomb@.R777bellsouth.net
> > Remove R777 to email
>
>|||To add on to other posts.. Use the below uRL to move system databases
http://www.sqlservercentral.com/columnists/vIacoboni/2605.asp
Thanks
Hari
"-003KobeBrian" <kb@.yahoo.com> wrote in message
news:OELu8ZqDHHA.4464@.TK2MSFTNGP06.phx.gbl...
> After I created an instance in SQL 2005, can I still change the data file
> path and how? Thanks.
>|||Very helpful. Thanks
"John Bell" <jbellnewsposts@.hotmail.com> wrote in message
news:D9A36D72-A50F-464C-AC88-A3C5E8420123@.microsoft.com...
> Hi
> If you want to move the data and log files to a different location for
> existing database then you can call sp_detach_db to detach the files, move
> the file (at a command prompt!) and then call sp_attach_db to re-attach
> the
> data and log files. Alternatively you can backup the database and restore
> it
> specifying a different location for the files on the options table or use
> the
> MOVE clause in the RESTORE command in T-SQL. You may want to read
> http://support.microsoft.com/kb/224071/
> HTH
> John
> "-003KobeBrian" wrote:
>> I found the database default location. I wonder how this works since I
>> can
>> see the datafile path in individual database. So I specify the database
>> default location at top level, will that overwrite the datafile path in
>> individual database?
>> "Brett I. Holcomb" <brettholcomb@.bellsouth.net> wrote in message
>> news:%23UQ7WCrDHHA.3212@.TK2MSFTNGP04.phx.gbl...
>> > Do you mean the default location for databases? If so use the
>> > Management
>> > Studio and go to the properties of the instance. One of the categories
>> > is
>> > databases and yoiu can set the default location there.
>> >
>> > -003KobeBrian wrote:
>> >
>> >> After I created an instance in SQL 2005, can I still change the data
>> >> file
>> >> path and how? Thanks.
>> >
>> > --
>> > Brett I. Holcomb
>> > brettholcomb@.R777bellsouth.net
>> > Remove R777 to email
>>
data file path in SQL 2005
After I created an instance in SQL 2005, can I still change the data file
path and how? Thanks.
Do you mean the default location for databases? If so use the Management
Studio and go to the properties of the instance. One of the categories is
databases and yoiu can set the default location there.
-003KobeBrian wrote:
> After I created an instance in SQL 2005, can I still change the data file
> path and how? Thanks.
Brett I. Holcomb
brettholcomb@.R777bellsouth.net
Remove R777 to email
|||I found the database default location. I wonder how this works since I can
see the datafile path in individual database. So I specify the database
default location at top level, will that overwrite the datafile path in
individual database?
"Brett I. Holcomb" <brettholcomb@.bellsouth.net> wrote in message
news:%23UQ7WCrDHHA.3212@.TK2MSFTNGP04.phx.gbl...
> Do you mean the default location for databases? If so use the Management
> Studio and go to the properties of the instance. One of the categories is
> databases and yoiu can set the default location there.
> -003KobeBrian wrote:
>
> --
> Brett I. Holcomb
> brettholcomb@.R777bellsouth.net
> Remove R777 to email
|||When you create a new database, you can specify a specific file location, or
use the default. If you do not specify a new location, the default will be
used. If you specify a location, it will override the default.
The default only applies to new databases. It will not 'overwrite' any
location for existing database files.
HTH
Kalen Delaney, SQL Server MVP
http://sqlblog.com
"-003KobeBrian" <kb@.yahoo.com> wrote in message
news:epJhkvrDHHA.348@.TK2MSFTNGP06.phx.gbl...
>I found the database default location. I wonder how this works since I can
>see the datafile path in individual database. So I specify the database
>default location at top level, will that overwrite the datafile path in
>individual database?
> "Brett I. Holcomb" <brettholcomb@.bellsouth.net> wrote in message
> news:%23UQ7WCrDHHA.3212@.TK2MSFTNGP04.phx.gbl...
>
|||Hi
If you want to move the data and log files to a different location for
existing database then you can call sp_detach_db to detach the files, move
the file (at a command prompt!) and then call sp_attach_db to re-attach the
data and log files. Alternatively you can backup the database and restore it
specifying a different location for the files on the options table or use the
MOVE clause in the RESTORE command in T-SQL. You may want to read
http://support.microsoft.com/kb/224071/
HTH
John
"-003KobeBrian" wrote:
> I found the database default location. I wonder how this works since I can
> see the datafile path in individual database. So I specify the database
> default location at top level, will that overwrite the datafile path in
> individual database?
> "Brett I. Holcomb" <brettholcomb@.bellsouth.net> wrote in message
> news:%23UQ7WCrDHHA.3212@.TK2MSFTNGP04.phx.gbl...
>
>
|||To add on to other posts.. Use the below uRL to move system databases
http://www.sqlservercentral.com/columnists/vIacoboni/2605.asp
Thanks
Hari
"-003KobeBrian" <kb@.yahoo.com> wrote in message
news:OELu8ZqDHHA.4464@.TK2MSFTNGP06.phx.gbl...
> After I created an instance in SQL 2005, can I still change the data file
> path and how? Thanks.
>
|||Very helpful. Thanks
"John Bell" <jbellnewsposts@.hotmail.com> wrote in message
news:D9A36D72-A50F-464C-AC88-A3C5E8420123@.microsoft.com...[vbcol=seagreen]
> Hi
> If you want to move the data and log files to a different location for
> existing database then you can call sp_detach_db to detach the files, move
> the file (at a command prompt!) and then call sp_attach_db to re-attach
> the
> data and log files. Alternatively you can backup the database and restore
> it
> specifying a different location for the files on the options table or use
> the
> MOVE clause in the RESTORE command in T-SQL. You may want to read
> http://support.microsoft.com/kb/224071/
> HTH
> John
> "-003KobeBrian" wrote:
path and how? Thanks.
Do you mean the default location for databases? If so use the Management
Studio and go to the properties of the instance. One of the categories is
databases and yoiu can set the default location there.
-003KobeBrian wrote:
> After I created an instance in SQL 2005, can I still change the data file
> path and how? Thanks.
Brett I. Holcomb
brettholcomb@.R777bellsouth.net
Remove R777 to email
|||I found the database default location. I wonder how this works since I can
see the datafile path in individual database. So I specify the database
default location at top level, will that overwrite the datafile path in
individual database?
"Brett I. Holcomb" <brettholcomb@.bellsouth.net> wrote in message
news:%23UQ7WCrDHHA.3212@.TK2MSFTNGP04.phx.gbl...
> Do you mean the default location for databases? If so use the Management
> Studio and go to the properties of the instance. One of the categories is
> databases and yoiu can set the default location there.
> -003KobeBrian wrote:
>
> --
> Brett I. Holcomb
> brettholcomb@.R777bellsouth.net
> Remove R777 to email
|||When you create a new database, you can specify a specific file location, or
use the default. If you do not specify a new location, the default will be
used. If you specify a location, it will override the default.
The default only applies to new databases. It will not 'overwrite' any
location for existing database files.
HTH
Kalen Delaney, SQL Server MVP
http://sqlblog.com
"-003KobeBrian" <kb@.yahoo.com> wrote in message
news:epJhkvrDHHA.348@.TK2MSFTNGP06.phx.gbl...
>I found the database default location. I wonder how this works since I can
>see the datafile path in individual database. So I specify the database
>default location at top level, will that overwrite the datafile path in
>individual database?
> "Brett I. Holcomb" <brettholcomb@.bellsouth.net> wrote in message
> news:%23UQ7WCrDHHA.3212@.TK2MSFTNGP04.phx.gbl...
>
|||Hi
If you want to move the data and log files to a different location for
existing database then you can call sp_detach_db to detach the files, move
the file (at a command prompt!) and then call sp_attach_db to re-attach the
data and log files. Alternatively you can backup the database and restore it
specifying a different location for the files on the options table or use the
MOVE clause in the RESTORE command in T-SQL. You may want to read
http://support.microsoft.com/kb/224071/
HTH
John
"-003KobeBrian" wrote:
> I found the database default location. I wonder how this works since I can
> see the datafile path in individual database. So I specify the database
> default location at top level, will that overwrite the datafile path in
> individual database?
> "Brett I. Holcomb" <brettholcomb@.bellsouth.net> wrote in message
> news:%23UQ7WCrDHHA.3212@.TK2MSFTNGP04.phx.gbl...
>
>
|||To add on to other posts.. Use the below uRL to move system databases
http://www.sqlservercentral.com/columnists/vIacoboni/2605.asp
Thanks
Hari
"-003KobeBrian" <kb@.yahoo.com> wrote in message
news:OELu8ZqDHHA.4464@.TK2MSFTNGP06.phx.gbl...
> After I created an instance in SQL 2005, can I still change the data file
> path and how? Thanks.
>
|||Very helpful. Thanks
"John Bell" <jbellnewsposts@.hotmail.com> wrote in message
news:D9A36D72-A50F-464C-AC88-A3C5E8420123@.microsoft.com...[vbcol=seagreen]
> Hi
> If you want to move the data and log files to a different location for
> existing database then you can call sp_detach_db to detach the files, move
> the file (at a command prompt!) and then call sp_attach_db to re-attach
> the
> data and log files. Alternatively you can backup the database and restore
> it
> specifying a different location for the files on the options table or use
> the
> MOVE clause in the RESTORE command in T-SQL. You may want to read
> http://support.microsoft.com/kb/224071/
> HTH
> John
> "-003KobeBrian" wrote:
data file path in SQL 2005
After I created an instance in SQL 2005, can I still change the data file
path and how? Thanks.Do you mean the default location for databases? If so use the Management
Studio and go to the properties of the instance. One of the categories is
databases and yoiu can set the default location there.
-003KobeBrian wrote:
> After I created an instance in SQL 2005, can I still change the data file
> path and how? Thanks.
Brett I. Holcomb
brettholcomb@.R777bellsouth.net
Remove R777 to email|||I found the database default location. I wonder how this works since I can
see the datafile path in individual database. So I specify the database
default location at top level, will that overwrite the datafile path in
individual database?
"Brett I. Holcomb" <brettholcomb@.bellsouth.net> wrote in message
news:%23UQ7WCrDHHA.3212@.TK2MSFTNGP04.phx.gbl...
> Do you mean the default location for databases? If so use the Management
> Studio and go to the properties of the instance. One of the categories is
> databases and yoiu can set the default location there.
> -003KobeBrian wrote:
>
> --
> Brett I. Holcomb
> brettholcomb@.R777bellsouth.net
> Remove R777 to email|||When you create a new database, you can specify a specific file location, or
use the default. If you do not specify a new location, the default will be
used. If you specify a location, it will override the default.
The default only applies to new databases. It will not 'overwrite' any
location for existing database files.
HTH
Kalen Delaney, SQL Server MVP
http://sqlblog.com
"-003KobeBrian" <kb@.yahoo.com> wrote in message
news:epJhkvrDHHA.348@.TK2MSFTNGP06.phx.gbl...
>I found the database default location. I wonder how this works since I can
>see the datafile path in individual database. So I specify the database
>default location at top level, will that overwrite the datafile path in
>individual database?
> "Brett I. Holcomb" <brettholcomb@.bellsouth.net> wrote in message
> news:%23UQ7WCrDHHA.3212@.TK2MSFTNGP04.phx.gbl...
>|||Hi
If you want to move the data and log files to a different location for
existing database then you can call sp_detach_db to detach the files, move
the file (at a command prompt!) and then call sp_attach_db to re-attach the
data and log files. Alternatively you can backup the database and restore it
specifying a different location for the files on the options table or use th
e
MOVE clause in the RESTORE command in T-SQL. You may want to read
http://support.microsoft.com/kb/224071/
HTH
John
"-003KobeBrian" wrote:
> I found the database default location. I wonder how this works since I can
> see the datafile path in individual database. So I specify the database
> default location at top level, will that overwrite the datafile path in
> individual database?
> "Brett I. Holcomb" <brettholcomb@.bellsouth.net> wrote in message
> news:%23UQ7WCrDHHA.3212@.TK2MSFTNGP04.phx.gbl...
>
>|||To add on to other posts.. Use the below uRL to move system databases
http://www.sqlservercentral.com/col...coboni/2605.asp
Thanks
Hari
"-003KobeBrian" <kb@.yahoo.com> wrote in message
news:OELu8ZqDHHA.4464@.TK2MSFTNGP06.phx.gbl...
> After I created an instance in SQL 2005, can I still change the data file
> path and how? Thanks.
>|||Very helpful. Thanks
"John Bell" <jbellnewsposts@.hotmail.com> wrote in message
news:D9A36D72-A50F-464C-AC88-A3C5E8420123@.microsoft.com...[vbcol=seagreen]
> Hi
> If you want to move the data and log files to a different location for
> existing database then you can call sp_detach_db to detach the files, move
> the file (at a command prompt!) and then call sp_attach_db to re-attach
> the
> data and log files. Alternatively you can backup the database and restore
> it
> specifying a different location for the files on the options table or use
> the
> MOVE clause in the RESTORE command in T-SQL. You may want to read
> http://support.microsoft.com/kb/224071/
> HTH
> John
> "-003KobeBrian" wrote:
>
path and how? Thanks.Do you mean the default location for databases? If so use the Management
Studio and go to the properties of the instance. One of the categories is
databases and yoiu can set the default location there.
-003KobeBrian wrote:
> After I created an instance in SQL 2005, can I still change the data file
> path and how? Thanks.
Brett I. Holcomb
brettholcomb@.R777bellsouth.net
Remove R777 to email|||I found the database default location. I wonder how this works since I can
see the datafile path in individual database. So I specify the database
default location at top level, will that overwrite the datafile path in
individual database?
"Brett I. Holcomb" <brettholcomb@.bellsouth.net> wrote in message
news:%23UQ7WCrDHHA.3212@.TK2MSFTNGP04.phx.gbl...
> Do you mean the default location for databases? If so use the Management
> Studio and go to the properties of the instance. One of the categories is
> databases and yoiu can set the default location there.
> -003KobeBrian wrote:
>
> --
> Brett I. Holcomb
> brettholcomb@.R777bellsouth.net
> Remove R777 to email|||When you create a new database, you can specify a specific file location, or
use the default. If you do not specify a new location, the default will be
used. If you specify a location, it will override the default.
The default only applies to new databases. It will not 'overwrite' any
location for existing database files.
HTH
Kalen Delaney, SQL Server MVP
http://sqlblog.com
"-003KobeBrian" <kb@.yahoo.com> wrote in message
news:epJhkvrDHHA.348@.TK2MSFTNGP06.phx.gbl...
>I found the database default location. I wonder how this works since I can
>see the datafile path in individual database. So I specify the database
>default location at top level, will that overwrite the datafile path in
>individual database?
> "Brett I. Holcomb" <brettholcomb@.bellsouth.net> wrote in message
> news:%23UQ7WCrDHHA.3212@.TK2MSFTNGP04.phx.gbl...
>|||Hi
If you want to move the data and log files to a different location for
existing database then you can call sp_detach_db to detach the files, move
the file (at a command prompt!) and then call sp_attach_db to re-attach the
data and log files. Alternatively you can backup the database and restore it
specifying a different location for the files on the options table or use th
e
MOVE clause in the RESTORE command in T-SQL. You may want to read
http://support.microsoft.com/kb/224071/
HTH
John
"-003KobeBrian" wrote:
> I found the database default location. I wonder how this works since I can
> see the datafile path in individual database. So I specify the database
> default location at top level, will that overwrite the datafile path in
> individual database?
> "Brett I. Holcomb" <brettholcomb@.bellsouth.net> wrote in message
> news:%23UQ7WCrDHHA.3212@.TK2MSFTNGP04.phx.gbl...
>
>|||To add on to other posts.. Use the below uRL to move system databases
http://www.sqlservercentral.com/col...coboni/2605.asp
Thanks
Hari
"-003KobeBrian" <kb@.yahoo.com> wrote in message
news:OELu8ZqDHHA.4464@.TK2MSFTNGP06.phx.gbl...
> After I created an instance in SQL 2005, can I still change the data file
> path and how? Thanks.
>|||Very helpful. Thanks
"John Bell" <jbellnewsposts@.hotmail.com> wrote in message
news:D9A36D72-A50F-464C-AC88-A3C5E8420123@.microsoft.com...[vbcol=seagreen]
> Hi
> If you want to move the data and log files to a different location for
> existing database then you can call sp_detach_db to detach the files, move
> the file (at a command prompt!) and then call sp_attach_db to re-attach
> the
> data and log files. Alternatively you can backup the database and restore
> it
> specifying a different location for the files on the options table or use
> the
> MOVE clause in the RESTORE command in T-SQL. You may want to read
> http://support.microsoft.com/kb/224071/
> HTH
> John
> "-003KobeBrian" wrote:
>
Subscribe to:
Posts (Atom)