Wednesday, March 28, 2012
Moving a view from Table into Views category?
Can I do a drop table command via TSQL or simply delete from Enterprise Manager?
Thanks
Strange. Could you run sp_help on that object and post the output here?
EXEC sp_help uvw_rev_rec_rpt_detail
GO
HTH,
Vyas, MVP (SQL Server)
http://vyaskn.tripod.com/
Is .NET important for a database professional?
http://vyaskn.tripod.com/poll.htm
"Jeffrey Sheldon" <jsheldon@.projecthope.org> wrote in message
news:2CF8A2CA-6A12-4C93-8235-154930A5B795@.microsoft.com...
A bit bizarre we have a view called uvw_rev_rec_rpt_detail that is showing
under tables in Enterprise Manager. It should be under views, I am over
thinking this but what is the best way to move the view over?
Can I do a drop table command via TSQL or simply delete from Enterprise
Manager?
Thanks
Moving a view from Table into Views category?
nder tables in Enterprise Manager. It should be under views, I am over thin
king this but what is the best way to move the view over?
Can I do a drop table command via TSQL or simply delete from Enterprise Mana
ger?
ThanksStrange. Could you run sp_help on that object and post the output here?
EXEC sp_help uvw_rev_rec_rpt_detail
GO
--
HTH,
Vyas, MVP (SQL Server)
http://vyaskn.tripod.com/
Is .NET important for a database professional?
http://vyaskn.tripod.com/poll.htm
"Jeffrey Sheldon" <jsheldon@.projecthope.org> wrote in message
news:2CF8A2CA-6A12-4C93-8235-154930A5B795@.microsoft.com...
A bit bizarre we have a view called uvw_rev_rec_rpt_detail that is showing
under tables in Enterprise Manager. It should be under views, I am over
thinking this but what is the best way to move the view over?
Can I do a drop table command via TSQL or simply delete from Enterprise
Manager?
Thanks
Moving a Large Table into New datafile vs. New database
We have a production database of size 40GB and growing at the rate 1.5
GB/month and one table is occupying about 20GB and all other tables are of
normal size. Till now every table is in the PRIMARY group and it has only on
e
datafile. Now we would like to split that database by moving that large
table out.
I was wondering if anyone could tell me what would be the best option in
terms of performance of SQLServer of the following options:
1. Create a new Filegroup and move the table into the newfile group.
2. Simply add a new datafile to existing PRIMARY group and do nothing.
3. Create a new database and move the table to the new database, and create
a view of the table in the first database pointing to the table in the new
database (Assuming the foreign key constraints are taken care with in
application).
Thankyou,
VMVM wrote:
> Hi,
> We have a production database of size 40GB and growing at the rate 1.5
> GB/month and one table is occupying about 20GB and all other tables
> are of normal size. Till now every table is in the PRIMARY group and
> it has only one datafile. Now we would like to split that database
> by moving that large table out.
> I was wondering if anyone could tell me what would be the best option
> in terms of performance of SQLServer of the following options:
> 1. Create a new Filegroup and move the table into the newfile group.
> 2. Simply add a new datafile to existing PRIMARY group and do nothing.
> 3. Create a new database and move the table to the new database, and
> create a view of the table in the first database pointing to the
> table in the new database (Assuming the foreign key constraints are
> taken care with in application).
> Thankyou,
> VM
First we would want to understand why you feel you need to move this
table out of the primary filegroup. The size is not a concern for me,
but it may be for you. Are you having backup issues? Also, if you create
a second filegroup, it would really need to be on a different array to
provide performance benefits. If the new filegroup is on the same drive
array, it will not help (backup flexibility aside).
If you do decide to move the table to another filegroup, the easiest way
to do this is to recreate the clustered index for the table on the new
filegroup (off hours). That will cause the table to move to the new
location. Non-clustered indexes will stay put, however. You can move
them as well by manually recreating them, but having the non-clustered
indexes on a separate array can help performance if the table is
accessed/updated frequently.
David Gugick
Quest Software
www.quest.com|||Hi David,
Thankyou for the reply. We have been observing some performace degradation
of our database recently including full database backup time taken. After
brainstorming the ways we can split one large database file into multiple
physical files and we came up with below given options.
I think we might create a new filegroup (as you said on a different array)
and move some of the data. Either we would move all the indexes on to the
new group, or, Since one of our table is half of the size of total database
and is frequently inserted and updated, we may move that one table onto new
filegroup. Creation of clustered index is also a great idea.
Thanks again,
VM
"David Gugick" wrote:
> VM wrote:
> First we would want to understand why you feel you need to move this
> table out of the primary filegroup. The size is not a concern for me,
> but it may be for you. Are you having backup issues? Also, if you create
> a second filegroup, it would really need to be on a different array to
> provide performance benefits. If the new filegroup is on the same drive
> array, it will not help (backup flexibility aside).
> If you do decide to move the table to another filegroup, the easiest way
> to do this is to recreate the clustered index for the table on the new
> filegroup (off hours). That will cause the table to move to the new
> location. Non-clustered indexes will stay put, however. You can move
> them as well by manually recreating them, but having the non-clustered
> indexes on a separate array can help performance if the table is
> accessed/updated frequently.
>
> --
> David Gugick
> Quest Software
> www.quest.com
>
Moving a Large Table into New datafile vs. New database
We have a production database of size 40GB and growing at the rate 1.5
GB/month and one table is occupying about 20GB and all other tables are of
normal size. Till now every table is in the PRIMARY group and it has only one
datafile. Now we would like to split that database by moving that large
table out.
I was wondering if anyone could tell me what would be the best option in
terms of performance of SQLServer of the following options:
1. Create a new Filegroup and move the table into the newfile group.
2. Simply add a new datafile to existing PRIMARY group and do nothing.
3. Create a new database and move the table to the new database, and create
a view of the table in the first database pointing to the table in the new
database (Assuming the foreign key constraints are taken care with in
application).
Thankyou,
VMVM wrote:
> Hi,
> We have a production database of size 40GB and growing at the rate 1.5
> GB/month and one table is occupying about 20GB and all other tables
> are of normal size. Till now every table is in the PRIMARY group and
> it has only one datafile. Now we would like to split that database
> by moving that large table out.
> I was wondering if anyone could tell me what would be the best option
> in terms of performance of SQLServer of the following options:
> 1. Create a new Filegroup and move the table into the newfile group.
> 2. Simply add a new datafile to existing PRIMARY group and do nothing.
> 3. Create a new database and move the table to the new database, and
> create a view of the table in the first database pointing to the
> table in the new database (Assuming the foreign key constraints are
> taken care with in application).
> Thankyou,
> VM
First we would want to understand why you feel you need to move this
table out of the primary filegroup. The size is not a concern for me,
but it may be for you. Are you having backup issues? Also, if you create
a second filegroup, it would really need to be on a different array to
provide performance benefits. If the new filegroup is on the same drive
array, it will not help (backup flexibility aside).
If you do decide to move the table to another filegroup, the easiest way
to do this is to recreate the clustered index for the table on the new
filegroup (off hours). That will cause the table to move to the new
location. Non-clustered indexes will stay put, however. You can move
them as well by manually recreating them, but having the non-clustered
indexes on a separate array can help performance if the table is
accessed/updated frequently.
David Gugick
Quest Software
www.quest.com|||Hi David,
Thankyou for the reply. We have been observing some performace degradation
of our database recently including full database backup time taken. After
brainstorming the ways we can split one large database file into multiple
physical files and we came up with below given options.
I think we might create a new filegroup (as you said on a different array)
and move some of the data. Either we would move all the indexes on to the
new group, or, Since one of our table is half of the size of total database
and is frequently inserted and updated, we may move that one table onto new
filegroup. Creation of clustered index is also a great idea.
Thanks again,
VM
"David Gugick" wrote:
> VM wrote:
> > Hi,
> >
> > We have a production database of size 40GB and growing at the rate 1.5
> > GB/month and one table is occupying about 20GB and all other tables
> > are of normal size. Till now every table is in the PRIMARY group and
> > it has only one datafile. Now we would like to split that database
> > by moving that large table out.
> >
> > I was wondering if anyone could tell me what would be the best option
> > in terms of performance of SQLServer of the following options:
> >
> > 1. Create a new Filegroup and move the table into the newfile group.
> > 2. Simply add a new datafile to existing PRIMARY group and do nothing.
> > 3. Create a new database and move the table to the new database, and
> > create a view of the table in the first database pointing to the
> > table in the new database (Assuming the foreign key constraints are
> > taken care with in application).
> >
> > Thankyou,
> > VM
> First we would want to understand why you feel you need to move this
> table out of the primary filegroup. The size is not a concern for me,
> but it may be for you. Are you having backup issues? Also, if you create
> a second filegroup, it would really need to be on a different array to
> provide performance benefits. If the new filegroup is on the same drive
> array, it will not help (backup flexibility aside).
> If you do decide to move the table to another filegroup, the easiest way
> to do this is to recreate the clustered index for the table on the new
> filegroup (off hours). That will cause the table to move to the new
> location. Non-clustered indexes will stay put, however. You can move
> them as well by manually recreating them, but having the non-clustered
> indexes on a separate array can help performance if the table is
> accessed/updated frequently.
>
> --
> David Gugick
> Quest Software
> www.quest.com
>
Moving a Large Table into New datafile vs. New database
We have a production database of size 40GB and growing at the rate 1.5
GB/month and one table is occupying about 20GB and all other tables are of
normal size. Till now every table is in the PRIMARY group and it has only one
datafile. Now we would like to split that database by moving that large
table out.
I was wondering if anyone could tell me what would be the best option in
terms of performance of SQLServer of the following options:
1. Create a new Filegroup and move the table into the newfile group.
2. Simply add a new datafile to existing PRIMARY group and do nothing.
3. Create a new database and move the table to the new database, and create
a view of the table in the first database pointing to the table in the new
database (Assuming the foreign key constraints are taken care with in
application).
Thankyou,
VM
VM wrote:
> Hi,
> We have a production database of size 40GB and growing at the rate 1.5
> GB/month and one table is occupying about 20GB and all other tables
> are of normal size. Till now every table is in the PRIMARY group and
> it has only one datafile. Now we would like to split that database
> by moving that large table out.
> I was wondering if anyone could tell me what would be the best option
> in terms of performance of SQLServer of the following options:
> 1. Create a new Filegroup and move the table into the newfile group.
> 2. Simply add a new datafile to existing PRIMARY group and do nothing.
> 3. Create a new database and move the table to the new database, and
> create a view of the table in the first database pointing to the
> table in the new database (Assuming the foreign key constraints are
> taken care with in application).
> Thankyou,
> VM
First we would want to understand why you feel you need to move this
table out of the primary filegroup. The size is not a concern for me,
but it may be for you. Are you having backup issues? Also, if you create
a second filegroup, it would really need to be on a different array to
provide performance benefits. If the new filegroup is on the same drive
array, it will not help (backup flexibility aside).
If you do decide to move the table to another filegroup, the easiest way
to do this is to recreate the clustered index for the table on the new
filegroup (off hours). That will cause the table to move to the new
location. Non-clustered indexes will stay put, however. You can move
them as well by manually recreating them, but having the non-clustered
indexes on a separate array can help performance if the table is
accessed/updated frequently.
David Gugick
Quest Software
www.quest.com
|||Hi David,
Thankyou for the reply. We have been observing some performace degradation
of our database recently including full database backup time taken. After
brainstorming the ways we can split one large database file into multiple
physical files and we came up with below given options.
I think we might create a new filegroup (as you said on a different array)
and move some of the data. Either we would move all the indexes on to the
new group, or, Since one of our table is half of the size of total database
and is frequently inserted and updated, we may move that one table onto new
filegroup. Creation of clustered index is also a great idea.
Thanks again,
VM
"David Gugick" wrote:
> VM wrote:
> First we would want to understand why you feel you need to move this
> table out of the primary filegroup. The size is not a concern for me,
> but it may be for you. Are you having backup issues? Also, if you create
> a second filegroup, it would really need to be on a different array to
> provide performance benefits. If the new filegroup is on the same drive
> array, it will not help (backup flexibility aside).
> If you do decide to move the table to another filegroup, the easiest way
> to do this is to recreate the clustered index for the table on the new
> filegroup (off hours). That will cause the table to move to the new
> location. Non-clustered indexes will stay put, however. You can move
> them as well by manually recreating them, but having the non-clustered
> indexes on a separate array can help performance if the table is
> accessed/updated frequently.
>
> --
> David Gugick
> Quest Software
> www.quest.com
>
Friday, March 23, 2012
MovieClick model - memory required
If I add more than 3 nested tables the model appears to hang. Is this due to insufficient memory? How much memory is recomended? When the model build is stopped it appears to lock other models in the project - how can they be unlocked without rebuilding the whole project?
I woul appreciate any help as I am new to Data Mining
Thank you
Hello
The default AS configuration is rather conservative with regard to system resources. You can try changing the default configuration, here is how
Using SQL Server management Studio, connect to Analysis Services 2005, right-click on the server and select Properties, then change the following entries to the indicated values. You might need to switch the property viewer to Advanced mode (there is a check-box labeled 'Advanced properties' in the lower part of the box)
(NOTE: the suggested values below are for a single CPU machine)
| Entry | Default value | Change it to: |
| CoordinatorExecutionMode | -4 | -16 |
| Thread Pool \Process \MaxThreads | 64 | 128 |
| Thread Pool \Process \Concurrency | 2 | -4 |
Please let us know if it worked
|||
Thank you.
The changes are amazing!
moveing data
I need to move data from few tables in sql server 2000 SP4 to sql server
2005 database. I can select the data using a select command from all the
tables and save it in a text file.
Now When I try to import it into destination server from txt file using SQL
server import export wizard, It is importing it in one column only. How to
define column delimiter in the file or store the output of select command
from sql server 2000 in a format which is easy to upload in sql server 20005
in right format (columns). The file is big and can not stored in excel format.
Thanks
jpr
I have set query options. It works.
ontario, canada
"db" wrote:
> Hi
> I need to move data from few tables in sql server 2000 SP4 to sql server
> 2005 database. I can select the data using a select command from all the
> tables and save it in a text file.
> Now When I try to import it into destination server from txt file using SQL
> server import export wizard, It is importing it in one column only. How to
> define column delimiter in the file or store the output of select command
> from sql server 2000 in a format which is easy to upload in sql server 20005
> in right format (columns). The file is big and can not stored in excel format.
> Thanks
> jpr
>
Moveing data
I need to move data from few tables in sql server 2000 SP4 to sql server
2005 database. I can select the data using a select command from all the
tables and save it in a text file.
Now When I try to import it into destination server from txt file using SQL
server import export wizard, It is importing it in one column only. How to
define column delimiter in the file. The file is big and can not stoted in
excel format.
Thanks
jpr
I have set query options. It works.
"db" wrote:
> Hi
> I need to move data from few tables in sql server 2000 SP4 to sql server
> 2005 database. I can select the data using a select command from all the
> tables and save it in a text file.
> Now When I try to import it into destination server from txt file using SQL
> server import export wizard, It is importing it in one column only. How to
> define column delimiter in the file. The file is big and can not stoted in
> excel format.
> Thanks
> jpr
>
moveing data
I need to move data from few tables in sql server 2000 SP4 to sql server
2005 database. I can select the data using a select command from all the
tables and save it in a text file.
Now When I try to import it into destination server from txt file using SQL
server import export wizard, It is importing it in one column only. How to
define column delimiter in the file or store the output of select command
from sql server 2000 in a format which is easy to upload in sql server 20005
in right format (columns). The file is big and can not stored in excel forma
t.
Thanks
jprI have set query options. It works.
--
ontario, canada
"db" wrote:
> Hi
> I need to move data from few tables in sql server 2000 SP4 to sql server
> 2005 database. I can select the data using a select command from all the
> tables and save it in a text file.
> Now When I try to import it into destination server from txt file using SQ
L
> server import export wizard, It is importing it in one column only. How to
> define column delimiter in the file or store the output of select command
> from sql server 2000 in a format which is easy to upload in sql server 200
05
> in right format (columns). The file is big and can not stored in excel for
mat.
> Thanks
> jpr
>
Moveing data
I need to move data from few tables in sql server 2000 SP4 to sql server
2005 database. I can select the data using a select command from all the
tables and save it in a text file.
Now When I try to import it into destination server from txt file using SQL
server import export wizard, It is importing it in one column only. How to
define column delimiter in the file. The file is big and can not stoted in
excel format.
Thanks
jprI have set query options. It works.
--
"db" wrote:
> Hi
> I need to move data from few tables in sql server 2000 SP4 to sql server
> 2005 database. I can select the data using a select command from all the
> tables and save it in a text file.
> Now When I try to import it into destination server from txt file using SQ
L
> server import export wizard, It is importing it in one column only. How to
> define column delimiter in the file. The file is big and can not stoted in
> excel format.
> Thanks
> jpr
>sql
Moveing data
I need to move data from few tables in sql server 2000 SP4 to sql server
2005 database. I can select the data using a select command from all the
tables and save it in a text file.
Now When I try to import it into destination server from txt file using SQL
server import export wizard, It is importing it in one column only. How to
define column delimiter in the file. The file is big and can not stoted in
excel format.
Thanks
jprI have set query options. It works.
--
"db" wrote:
> Hi
> I need to move data from few tables in sql server 2000 SP4 to sql server
> 2005 database. I can select the data using a select command from all the
> tables and save it in a text file.
> Now When I try to import it into destination server from txt file using SQL
> server import export wizard, It is importing it in one column only. How to
> define column delimiter in the file. The file is big and can not stoted in
> excel format.
> Thanks
> jpr
>
moveing data
I need to move data from few tables in sql server 2000 SP4 to sql server
2005 database. I can select the data using a select command from all the
tables and save it in a text file.
Now When I try to import it into destination server from txt file using SQL
server import export wizard, It is importing it in one column only. How to
define column delimiter in the file or store the output of select command
from sql server 2000 in a format which is easy to upload in sql server 20005
in right format (columns). The file is big and can not stored in excel format.
Thanks
jprI have set query options. It works.
--
ontario, canada
"db" wrote:
> Hi
> I need to move data from few tables in sql server 2000 SP4 to sql server
> 2005 database. I can select the data using a select command from all the
> tables and save it in a text file.
> Now When I try to import it into destination server from txt file using SQL
> server import export wizard, It is importing it in one column only. How to
> define column delimiter in the file or store the output of select command
> from sql server 2000 in a format which is easy to upload in sql server 20005
> in right format (columns). The file is big and can not stored in excel format.
> Thanks
> jpr
>
Wednesday, March 21, 2012
Move/Copy Table(s) Between Databases
Move VistaDB tables/data to SQL Server 2005
Is there any way to import a VistaDB database into SQL Server? From what I can tell, there is not...
Please advise.
Thanks,
MC
Try asking this in the Data Access forum. I think once you have a way to access the data, you can start working with SSIS. Or work with the VistaDB folks... :)If you can get data out of VistaDB and into files or something, then SSIS can help you. Even better if there is ODBC or OLE DB access.
Move Tables From Local to Hosting Provider's Server
help me to learn the basics as well as the finer points of moving tables and
other assets to the hosting provider's server.
<%= Clinton Gallagher
METROmilwaukee (sm) "A Regional Information Service"
NET csgallagher AT metromilwaukee.com
URL http://metromilwaukee.com/
URL http://clintongallagher.metromilwaukee.com/
Due to the limitations for access to the providers SQl Servers I use QALite
to script data from my tables and connect to the remote database via QA and
execute the scripts, thats the best way for me.
HTH, Jens Smeyer.
"clintonG" <csgallagher@.REMOVETHISTEXTmetromilwaukee.com> wrote in message
news:OQjsao$qFHA.1788@.tk2msftngp13.phx.gbl...
>I know about BOL. Please take a moment to refer me to any tutorials that
>may help me to learn the basics as well as the finer points of moving
>tables and other assets to the hosting provider's server.
> <%= Clinton Gallagher
> METROmilwaukee (sm) "A Regional Information Service"
> NET csgallagher AT metromilwaukee.com
> URL http://metromilwaukee.com/
> URL http://clintongallagher.metromilwaukee.com/
>
|||Thanks for your comments Jens.
I can evaluate the same tool you are using but I can connect to my database
on the hosted site using Enterprise Manager or a tool with a web interface
the hosting provider makes available.
<%= Clinton Gallagher
"Jens Smeyer" <Jens@.remove_this_for_contacting_sqlserver2005.de> wrote in
message news:%23dFQ7WArFHA.1788@.tk2msftngp13.phx.gbl...
> Due to the limitations for access to the providers SQl Servers I use
> QALite to script data from my tables and connect to the remote database
> via QA and execute the scripts, thats the best way for me.
> HTH, Jens Smeyer.
>
> "clintonG" <csgallagher@.REMOVETHISTEXTmetromilwaukee.com> wrote in message
> news:OQjsao$qFHA.1788@.tk2msftngp13.phx.gbl...
>
|||To be honest, to me these tools really suck. The WebTools provided by the
providers often don′t offer all the capabilities that I need, so I used to
rely on the standard tools like EM and QA, they are the best.
HTH, Jens Suessmeyer.
http://www.sqlserver2005.de
"clintonG" wrote:
> Thanks for your comments Jens.
> I can evaluate the same tool you are using but I can connect to my database
> on the hosted site using Enterprise Manager or a tool with a web interface
> the hosting provider makes available.
> <%= Clinton Gallagher
> "Jens Sü?meyer" <Jens@.remove_this_for_contacting_sqlserver2005.de> wrote in
> message news:%23dFQ7WArFHA.1788@.tk2msftngp13.phx.gbl...
>
>
|||Is this [1] what you're refrring to? Why would I not just use Enterprise
Manager?
I agree the tools with web interface can be less capable than desktop tools
but -- at the moment -- I don't even have a clue what tasks I need to
consider to move the tables to the hosting provider server. Its not like FTP
where I can just upload files I guess is it? :-( and its not like I don't
have the interest or the skills to learn but I need to learn what to do
before I decide what tools are best to do it that's why I've been asking for
referrals to tutorials.
<%= Clinton Gallagher
[1] http://www.rac4sql.net/qalite_main.asp
"Jens Smeyer" <Jens@.[Remove_that][for contacting me]sqlserver2005.de>
wrote in message news:E198A5D7-46A2-489C-BB03-E8E7ECF18625@.microsoft.com...[vbcol=seagreen]
> To be honest, to me these tools really suck. The WebTools provided by the
> providers often dont offer all the capabilities that I need, so I used to
> rely on the standard tools like EM and QA, they are the best.
> --
> HTH, Jens Suessmeyer.
> --
> http://www.sqlserver2005.de
> --
>
> "clintonG" wrote:
Move Tables From Local to Hosting Provider's Server
help me to learn the basics as well as the finer points of moving tables and
other assets to the hosting provider's server.
<%= Clinton Gallagher
METROmilwaukee (sm) "A Regional Information Service"
NET csgallagher AT metromilwaukee.com
URL http://metromilwaukee.com/
URL http://clintongallagher.metromilwaukee.com/Due to the limitations for access to the providers SQl Servers I use QALite
to script data from my tables and connect to the remote database via QA and
execute the scripts, thats the best way for me.
HTH, Jens Smeyer.
"clintonG" < csgallagher@.REMOVETHISTEXTmetromilwaukee
.com> wrote in message
news:OQjsao$qFHA.1788@.tk2msftngp13.phx.gbl...
>I know about BOL. Please take a moment to refer me to any tutorials that
>may help me to learn the basics as well as the finer points of moving
>tables and other assets to the hosting provider's server.
> <%= Clinton Gallagher
> METROmilwaukee (sm) "A Regional Information Service"
> NET csgallagher AT metromilwaukee.com
> URL http://metromilwaukee.com/
> URL http://clintongallagher.metromilwaukee.com/
>|||Thanks for your comments Jens.
I can evaluate the same tool you are using but I can connect to my database
on the hosted site using Enterprise Manager or a tool with a web interface
the hosting provider makes available.
<%= Clinton Gallagher
"Jens Smeyer" < Jens@.remove_this_for_contacting_sqlserve
r2005.de> wrote in
message news:%23dFQ7WArFHA.1788@.tk2msftngp13.phx.gbl...
> Due to the limitations for access to the providers SQl Servers I use
> QALite to script data from my tables and connect to the remote database
> via QA and execute the scripts, thats the best way for me.
> HTH, Jens Smeyer.
>
> "clintonG" < csgallagher@.REMOVETHISTEXTmetromilwaukee
.com> wrote in message
> news:OQjsao$qFHA.1788@.tk2msftngp13.phx.gbl...
>|||To be honest, to me these tools really suck. The WebTools provided by the
providers often don′t offer all the capabilities that I need, so I used to
rely on the standard tools like EM and QA, they are the best.
HTH, Jens Suessmeyer.
http://www.sqlserver2005.de
--
"clintonG" wrote:
> Thanks for your comments Jens.
> I can evaluate the same tool you are using but I can connect to my databas
e
> on the hosted site using Enterprise Manager or a tool with a web interface
> the hosting provider makes available.
> <%= Clinton Gallagher
> "Jens Sü?meyer" < Jens@.remove_this_for_contacting_sqlserve
r2005.de> wrote
in
> message news:%23dFQ7WArFHA.1788@.tk2msftngp13.phx.gbl...
>
>|||Is this [1] what you're refrring to? Why would I not just use Enterprise
Manager?
I agree the tools with web interface can be less capable than desktop tools
but -- at the moment -- I don't even have a clue what tasks I need to
consider to move the tables to the hosting provider server. Its not like FTP
where I can just upload files I guess is it? :-( and its not like I don't
have the interest or the skills to learn but I need to learn what to do
before I decide what tools are best to do it that's why I've been asking for
referrals to tutorials.
<%= Clinton Gallagher
[1] http://www.rac4sql.net/qalite_main.asp
"Jens Smeyer" <Jens@.[Remove_that][for contacting me]sqlserver2005.
de>
wrote in message news:E198A5D7-46A2-489C-BB03-E8E7ECF18625@.microsoft.com...[vbcol=seagreen]
> To be honest, to me these tools really suck. The WebTools provided by the
> providers often dont offer all the capabilities that I need, so I used to
> rely on the standard tools like EM and QA, they are the best.
> --
> HTH, Jens Suessmeyer.
> --
> http://www.sqlserver2005.de
> --
>
> "clintonG" wrote:
>sql
Move Tables From Local to Hosting Provider's Server
help me to learn the basics as well as the finer points of moving tables and
other assets to the hosting provider's server.
<%= Clinton Gallagher
METROmilwaukee (sm) "A Regional Information Service"
NET csgallagher AT metromilwaukee.com
URL http://metromilwaukee.com/
URL http://clintongallagher.metromilwaukee.com/Due to the limitations for access to the providers SQl Servers I use QALite
to script data from my tables and connect to the remote database via QA and
execute the scripts, thats the best way for me.
HTH, Jens Süßmeyer.
"clintonG" <csgallagher@.REMOVETHISTEXTmetromilwaukee.com> wrote in message
news:OQjsao$qFHA.1788@.tk2msftngp13.phx.gbl...
>I know about BOL. Please take a moment to refer me to any tutorials that
>may help me to learn the basics as well as the finer points of moving
>tables and other assets to the hosting provider's server.
> <%= Clinton Gallagher
> METROmilwaukee (sm) "A Regional Information Service"
> NET csgallagher AT metromilwaukee.com
> URL http://metromilwaukee.com/
> URL http://clintongallagher.metromilwaukee.com/
>|||Thanks for your comments Jens.
I can evaluate the same tool you are using but I can connect to my database
on the hosted site using Enterprise Manager or a tool with a web interface
the hosting provider makes available.
<%= Clinton Gallagher
"Jens Süßmeyer" <Jens@.remove_this_for_contacting_sqlserver2005.de> wrote in
message news:%23dFQ7WArFHA.1788@.tk2msftngp13.phx.gbl...
> Due to the limitations for access to the providers SQl Servers I use
> QALite to script data from my tables and connect to the remote database
> via QA and execute the scripts, thats the best way for me.
> HTH, Jens Süßmeyer.
>
> "clintonG" <csgallagher@.REMOVETHISTEXTmetromilwaukee.com> wrote in message
> news:OQjsao$qFHA.1788@.tk2msftngp13.phx.gbl...
>>I know about BOL. Please take a moment to refer me to any tutorials that
>>may help me to learn the basics as well as the finer points of moving
>>tables and other assets to the hosting provider's server.
>> <%= Clinton Gallagher
>> METROmilwaukee (sm) "A Regional Information Service"
>> NET csgallagher AT metromilwaukee.com
>> URL http://metromilwaukee.com/
>> URL http://clintongallagher.metromilwaukee.com/
>>
>|||To be honest, to me these tools really suck. The WebTools provided by the
providers often don´t offer all the capabilities that I need, so I used to
rely on the standard tools like EM and QA, they are the best.
--
HTH, Jens Suessmeyer.
--
http://www.sqlserver2005.de
--
"clintonG" wrote:
> Thanks for your comments Jens.
> I can evaluate the same tool you are using but I can connect to my database
> on the hosted site using Enterprise Manager or a tool with a web interface
> the hosting provider makes available.
> <%= Clinton Gallagher
> "Jens Sü�meyer" <Jens@.remove_this_for_contacting_sqlserver2005.de> wrote in
> message news:%23dFQ7WArFHA.1788@.tk2msftngp13.phx.gbl...
> > Due to the limitations for access to the providers SQl Servers I use
> > QALite to script data from my tables and connect to the remote database
> > via QA and execute the scripts, thats the best way for me.
> >
> > HTH, Jens Sü�meyer.
> >
> >
> > "clintonG" <csgallagher@.REMOVETHISTEXTmetromilwaukee.com> wrote in message
> > news:OQjsao$qFHA.1788@.tk2msftngp13.phx.gbl...
> >>I know about BOL. Please take a moment to refer me to any tutorials that
> >>may help me to learn the basics as well as the finer points of moving
> >>tables and other assets to the hosting provider's server.
> >>
> >> <%= Clinton Gallagher
> >> METROmilwaukee (sm) "A Regional Information Service"
> >> NET csgallagher AT metromilwaukee.com
> >> URL http://metromilwaukee.com/
> >> URL http://clintongallagher.metromilwaukee.com/
> >>
> >>
> >
> >
>
>|||Is this [1] what you're refrring to? Why would I not just use Enterprise
Manager?
I agree the tools with web interface can be less capable than desktop tools
but -- at the moment -- I don't even have a clue what tasks I need to
consider to move the tables to the hosting provider server. Its not like FTP
where I can just upload files I guess is it? :-( and its not like I don't
have the interest or the skills to learn but I need to learn what to do
before I decide what tools are best to do it that's why I've been asking for
referrals to tutorials.
<%= Clinton Gallagher
[1] http://www.rac4sql.net/qalite_main.asp
"Jens Süßmeyer" <Jens@.[Remove_that][for contacting me]sqlserver2005.de>
wrote in message news:E198A5D7-46A2-489C-BB03-E8E7ECF18625@.microsoft.com...
> To be honest, to me these tools really suck. The WebTools provided by the
> providers often don´t offer all the capabilities that I need, so I used to
> rely on the standard tools like EM and QA, they are the best.
> --
> HTH, Jens Suessmeyer.
> --
> http://www.sqlserver2005.de
> --
>
> "clintonG" wrote:
>> Thanks for your comments Jens.
>> I can evaluate the same tool you are using but I can connect to my
>> database
>> on the hosted site using Enterprise Manager or a tool with a web
>> interface
>> the hosting provider makes available.
>> <%= Clinton Gallagher
>> "Jens Süßmeyer" <Jens@.remove_this_for_contacting_sqlserver2005.de> wrote
>> in
>> message news:%23dFQ7WArFHA.1788@.tk2msftngp13.phx.gbl...
>> > Due to the limitations for access to the providers SQl Servers I use
>> > QALite to script data from my tables and connect to the remote database
>> > via QA and execute the scripts, thats the best way for me.
>> >
>> > HTH, Jens Süßmeyer.
>> >
>> >
>> > "clintonG" <csgallagher@.REMOVETHISTEXTmetromilwaukee.com> wrote in
>> > message
>> > news:OQjsao$qFHA.1788@.tk2msftngp13.phx.gbl...
>> >>I know about BOL. Please take a moment to refer me to any tutorials
>> >>that
>> >>may help me to learn the basics as well as the finer points of moving
>> >>tables and other assets to the hosting provider's server.
>> >>
>> >> <%= Clinton Gallagher
>> >> METROmilwaukee (sm) "A Regional Information Service"
>> >> NET csgallagher AT metromilwaukee.com
>> >> URL http://metromilwaukee.com/
>> >> URL http://clintongallagher.metromilwaukee.com/
>> >>
>> >>
>> >
>> >
>>
Monday, March 19, 2012
Move table records into new database in the same server
I have a question here.
I have a Audit tables database. I want to archive the Audit Tables data to another new database in the same server and remove the data in the Actual database but continues with the table seed where it's the primary ID.
Example:
I have a AuditProducts Table with AuditID as BIGINT and auto increment value.
contains10,000 records in AuditTable Database.
I want to archive the tables to a new database: Audit200707
After archived, the AuditProducts Table in AuditTable database will remove all the records and continues with 10001 in the next record.
How can I done the whole process using T-SQL so that it can schedule and run for every month? BTW I am using SQL Server 2005 SP2.
Thanks and regards,
The following query might help you,
Code Snippet
Declare @.tablename as varchar(100);
Set @.tablename = 'AuditProduct' + Cast(Year(getdate()) as Varchar) + Substring(cast(100 + Month(getdate())-1 as varchar),2,2)
If NOT EXISTS(Select 1 From Sysobjects Where Name=@.tablename and type='U')
Begin
Exec('Select * into ' + @.tablename + ' From AuditProduct')
--If You want to rest the identity to 1
--Truncate Table AuditProduct
--If you want to keep the identity sequence
Delete From AuditProduct
End
|||I want to create a new database and the same table. this process I need to put it into script as well.
How do I Generate the Selected Table scripts using T-SQL?
thanks for the help once again.
|||OK the code mentioned by Manivannan.D.Sekaran works to create the table and record. But this doesn't copy the column information such as Default Value Or Binding and Description.
How to make it copy the column information as well?
Thanks a lot for your help.
regards,
|||I think you're going to want to create an SSIS package, where you can copy database objects and then execute the T-SQL to delete the contents from your table(s).|||
I managed to wrote out a T-SQL according to Manivannan.D.Sekaran suggectiion:
Code Snippet
USE DB1
DECLARE @.DBName AS VARCHAR(50)
DECLARE @.TableName AS VARCHAR(100)
DECLARE @.NextSeedNo BIGINT
SET @.DBName = 'AuditDB1' + CAST(YEAR(GETDATE()) AS VARCHAR) + SUBSTRING(CAST(100 + MONTH(GETDATE()) AS VARCHAR),2,2)
EXEC('CREATE DATABASE ' + @.DBName)
DECLARE csrTable CURSOR
LOCAL FAST_FORWARD READ_ONLY FOR
SELECT TABLE_NAME
FROM information_schema.tables (NOLOCK)
WHERE TABLE_TYPE <> 'VIEW'
AND TABLE_CATALOG = 'DB1'
AND (TABLE_NAME LIKE 'Audit%')
ORDER BY TABLE_NAME
OPEN csrTable
FETCH NEXT FROM csrTable INTO @.TableName
WHILE @.@.FETCH_STATUS = 0
BEGIN
EXEC('SELECT * INTO [' + @.DBName + '].[dbo].[' + @.TableName + '] FROM '+ @.TableName + ' GO ')
SET @.NextSeedNo = IDENT_CURRENT(@.TableName) + 1
EXEC('TRUNCATE TABLE ' + @.TableName + ' GO ')
EXEC('dbcc checkident (' + @.TableName + ', reseed, ' + CAST(@.NextSeedNo AS VARCHAR(10))+ ') GO')
FETCH NEXT FROM csrTable into @.TableName
END
CLOSE csrTable
DEALLOCATE csrTable
This was successfully meet what I want but the new database tables doesn't include the column information such as Default Value and Description. How can I get this done as well?
Thanks for your help.
regards
move table in sql server management studio 2005 express
I have two databases in sql server management studio and I want to move tables from one into another. Is this possible? and how? Thanks
Andrew
you can script table and execute script in second database or if you need to move data try:
select * into [destinationdatabase].dbo.[destinationtablename] from [sourcedatabase].dbo.[sourcetablename]
You can use the same table name for source and destination so in destiantion database you will have exact copy of your data.
Sorry no constrains will be moved.
Thanks
|||When you say constrains do you mean database relationships, keys etc.
Cheers
Andreww
|||Ahh yes i see now. Thanks.move table from SQL2000 to SQL2005?
SQL2005 database on another server(and in some cases back again). I don't
have enterprise manager just SQL Manager Express which doesn't play nice with
SQL2000.
Any suggestions would be appreciated. T-SQL solutions would be preferred
because they're free ;)
Thanks!
Hi
"Dabbler" wrote:
> I need to move some tables from an SQL2000 database on one server to an
> SQL2005 database on another server(and in some cases back again). I don't
> have enterprise manager just SQL Manager Express which doesn't play nice with
> SQL2000.
> Any suggestions would be appreciated. T-SQL solutions would be preferred
> because they're free ;)
> Thanks!
If you don't want to re-create the table definition (which you would have to
script and run through SQLCMD if you did!) then you can populate the table
using BCP or if you have a linked server INSERT...SELECT
John
|||I don't think I can use BCP because both servers are hosted at Appliedi.net
so I don't have access to their file systems.
Is there a way to simultaneously connect to two databases on two different
servers with T-SQL? that would allow me to use your "linked server"
suggestion.
Thanks much!
Michael
"John Bell" wrote:
> Hi
> "Dabbler" wrote:
>
> If you don't want to re-create the table definition (which you would have to
> script and run through SQLCMD if you did!) then you can populate the table
> using BCP or if you have a linked server INSERT...SELECT
> John
|||Hi
"Dabbler" wrote:
[vbcol=seagreen]
> I don't think I can use BCP because both servers are hosted at Appliedi.net
> so I don't have access to their file systems.
> Is there a way to simultaneously connect to two databases on two different
> servers with T-SQL? that would allow me to use your "linked server"
> suggestion.
> Thanks much!
> Michael
> "John Bell" wrote:
Use sp_addlinkedserver to create the linked server and use either OPENQUERY
or four part names to run the query on the linked server.
John
|||Thanks John, that's the clue I needed.
"John Bell" wrote:
> Hi
> "Dabbler" wrote:
>
> Use sp_addlinkedserver to create the linked server and use either OPENQUERY
> or four part names to run the query on the linked server.
> John
|||On Jul 5, 11:08 am, Dabbler <Dabb...@.discussions.microsoft.com> wrote:
> I need to move some tables from an SQL2000 database on one server to an
> SQL2005 database on another server(and in some cases back again). I don't
> have enterprise manager just SQL Manager Express which doesn't play nice with
> SQL2000.
> Any suggestions would be appreciated. T-SQL solutions would be preferred
> because they're free ;)
> Thanks!
I noticed you mentioned that you don't have SQL Server Management
Studio (SSMS)...but wasn't sure if this simply wasn't plausible, as
the tools come with the DVD. If you used the tool, you could simply
use the copy database wizard to achieve these results. If you wanted
to do another method, you could simply utilize the backup and restore
method using your normal T-SQL methods. Simply backup your 2000
database and restore it on your 2005 database.
Again, I might be missing something, but wanted to assist you in any
way possible.
Aaron
|||Ya, the DVD you're thinking of is full SQL Server 2005 but I have download of
SQL Server 2005 Express. I only have SSMS Express which is lite version of
SSMS. I'm trying to figure out how to install the full SQL Server 2005 trial
but of course the install blocks because of my SQL Server Express install. Of
course all I really need is Enterprise Manager but I'm not an Enterprise,
just an independent developer ;)
"acorcoran" wrote:
> On Jul 5, 11:08 am, Dabbler <Dabb...@.discussions.microsoft.com> wrote:
> I noticed you mentioned that you don't have SQL Server Management
> Studio (SSMS)...but wasn't sure if this simply wasn't plausible, as
> the tools come with the DVD. If you used the tool, you could simply
> use the copy database wizard to achieve these results. If you wanted
> to do another method, you could simply utilize the backup and restore
> method using your normal T-SQL methods. Simply backup your 2000
> database and restore it on your 2005 database.
> Again, I might be missing something, but wanted to assist you in any
> way possible.
> Aaron
>
|||Hi
"Dabbler" wrote:
> Ya, the DVD you're thinking of is full SQL Server 2005 but I have download of
> SQL Server 2005 Express. I only have SSMS Express which is lite version of
> SSMS. I'm trying to figure out how to install the full SQL Server 2005 trial
> but of course the install blocks because of my SQL Server Express install. Of
> course all I really need is Enterprise Manager but I'm not an Enterprise,
> just an independent developer ;)
>
You may want to consider buying yourself a copy of the developer edition
which is about $50 even if your deployments are on the Express, although for
your current issue it may not help.
John
|||Thanks John... I will get DEV, just have been putting it off, especially
since I'm concerned about the memory footprint of full SQL2005 vs express
edition. In the meantime I've installed the client tools from the trial
version which should hold me till I win the lottery ;)
"John Bell" wrote:
> Hi
> "Dabbler" wrote:
>
> You may want to consider buying yourself a copy of the developer edition
> which is about $50 even if your deployments are on the Express, although for
> your current issue it may not help.
> John
|||Hi
"Dabbler" wrote:
> Thanks John... I will get DEV, just have been putting it off, especially
> since I'm concerned about the memory footprint of full SQL2005 vs express
> edition. In the meantime I've installed the client tools from the trial
> version which should hold me till I win the lottery ;)
>
For $50 you won't need all the numbers!! Using the tools should prove that
it is excellent value!
John