Showing posts with label sql2000. Show all posts
Showing posts with label sql2000. Show all posts

Thursday, March 22, 2012

Exporting data and keep the primary key

Hi all,

I am rather fresh to SQL2000, so...

When I export data from database A tot database B and I look at the copied tables in database B, all the primary keys are gone and the field is now a "normal" field ?

How can I keep the primary key in the copied tables ?

Help is appreciated, Ger.

I have the same problem. Is there an answer to this?|||How did you export ? If you make a SQL copy objects task via DTS you can select if you also want to preserve the PK / index structure etc. Its one of the advanced options of the DTS Wizard.

HTH, Jens Suessmeyer.

http://www.sqlserver2005.de

|||

I am using Sql Server 2005 Management Studio, I run the DTSWizard by running DTSWizard.exe from the "Run" menu. But I can not copy my database with the primary keys and relations.

After reading your post I have tried to find the advanced options of DTS Wizard but couldnt managed to do that. If you can give detailed information I will be glad.

Thanks in advance

Exporting data and keep the primary key

Hi all,

I am rather fresh to SQL2000, so...

When I export data from database A tot database B and I look at the copied tables in database B, all the primary keys are gone and the field is now a "normal" field ?

How can I keep the primary key in the copied tables ?

Help is appreciated, Ger.

I have the same problem. Is there an answer to this?|||How did you export ? If you make a SQL copy objects task via DTS you can select if you also want to preserve the PK / index structure etc. Its one of the advanced options of the DTS Wizard.

HTH, Jens Suessmeyer.

http://www.sqlserver2005.de

|||

I am using Sql Server 2005 Management Studio, I run the DTSWizard by running DTSWizard.exe from the "Run" menu. But I can not copy my database with the primary keys and relations.

After reading your post I have tried to find the advanced options of DTS Wizard but couldnt managed to do that. If you can give detailed information I will be glad.

Thanks in advance

sql

Wednesday, February 15, 2012

export sql db maintenance history

Hi SQL community,
Can someone help me do an export of the MS sql2000 db maintenance history?
ThanksHi
"NigBev" wrote:

> Hi SQL community,
> Can someone help me do an export of the MS sql2000 db maintenance history?
> Thanks
>
You don't say how you want to export the history but some thing like:
BCP "msdb..sysdbmaintplan_history" out maintplan_history.txt -c -S Server -T
may give what you want. Change Server to be the server you wish to export
from.
John

export sql db maintenance history

Hi SQL community,
Can someone help me do an export of the MS sql2000 db maintenance history?
ThanksHi
"NigBev" wrote:
> Hi SQL community,
> Can someone help me do an export of the MS sql2000 db maintenance history?
> Thanks
>
You don't say how you want to export the history but some thing like:
BCP "msdb..sysdbmaintplan_history" out maintplan_history.txt -c -S Server -T
may give what you want. Change Server to be the server you wish to export
from.
John

export sql db maintenance history

Hi SQL community,
Can someone help me do an export of the MS sql2000 db maintenance history?
Thanks
Hi
"NigBev" wrote:

> Hi SQL community,
> Can someone help me do an export of the MS sql2000 db maintenance history?
> Thanks
>
You don't say how you want to export the history but some thing like:
BCP "msdb..sysdbmaintplan_history" out maintplan_history.txt -c -S Server -T
may give what you want. Change Server to be the server you wish to export
from.
John

Export SQL Database to MSDE [WP]

I know this may sound silly.
I want to export a small DB from my SQL2000 to an MSDE.
Advise Please as to how can I do this?
Thank youHi,
Like export just the data or move the entire structure? I'm assuming you
are referring to the latter . . thus
1. You could DETACH/ATTACH the database from SQL2000 to MSDE.
2. You could use DTS to migrate the database to MSDE. This would also work
if you need to just move the data.
3. You could use the BACKUP/RESTORE method as well.
Hope this helps . .
~John
"WILDPACKET" wrote:
> I know this may sound silly.
> I want to export a small DB from my SQL2000 to an MSDE.
> Advise Please as to how can I do this?
> Thank you|||John,
Thank you for your response.
I am new to this whole MSDE/SQL thing.
This is a blackberry DB 180MB which I have to move from the SQL2000 server
to another server running MSDE.
"FireDBA" wrote:
> Hi,
> Like export just the data or move the entire structure? I'm assuming you
> are referring to the latter . . thus
> 1. You could DETACH/ATTACH the database from SQL2000 to MSDE.
> 2. You could use DTS to migrate the database to MSDE. This would also work
> if you need to just move the data.
> 3. You could use the BACKUP/RESTORE method as well.
> Hope this helps . .
> ~John
> "WILDPACKET" wrote:
> >
> > I know this may sound silly.
> >
> > I want to export a small DB from my SQL2000 to an MSDE.
> >
> > Advise Please as to how can I do this?
> >
> > Thank you|||Your very welcome.
The backup/restore option will probably be the easiest to accomplish.
I'm sure that you can find reference to using backup/restore online or via
Books OnLine. The Books Online will be your best friend as you progress
through the world of SQL! =)
SQL 2000 BOL URL
http://msdn2.microsoft.com/en-us/library/ms950404.aspx
Hope this helps!
~John
"WILDPACKET" wrote:
> John,
> Thank you for your response.
> I am new to this whole MSDE/SQL thing.
> This is a blackberry DB 180MB which I have to move from the SQL2000 server
> to another server running MSDE.
>
>
> "FireDBA" wrote:
> > Hi,
> >
> > Like export just the data or move the entire structure? I'm assuming you
> > are referring to the latter . . thus
> >
> > 1. You could DETACH/ATTACH the database from SQL2000 to MSDE.
> > 2. You could use DTS to migrate the database to MSDE. This would also work
> > if you need to just move the data.
> > 3. You could use the BACKUP/RESTORE method as well.
> >
> > Hope this helps . .
> >
> > ~John
> >
> > "WILDPACKET" wrote:
> >
> > >
> > > I know this may sound silly.
> > >
> > > I want to export a small DB from my SQL2000 to an MSDE.
> > >
> > > Advise Please as to how can I do this?
> > >
> > > Thank you|||You also need to make sure that the correct user accounts exist on the
target server where you will be moving this database
"WILDPACKET" <WILDPACKET@.discussions.microsoft.com> wrote in message
news:E03C6C4E-B3B4-4119-97ED-87E1CE066399@.microsoft.com...
> John,
> Thank you for your response.
> I am new to this whole MSDE/SQL thing.
> This is a blackberry DB 180MB which I have to move from the SQL2000 server
> to another server running MSDE.
>
>
> "FireDBA" wrote:
>> Hi,
>> Like export just the data or move the entire structure? I'm assuming you
>> are referring to the latter . . thus
>> 1. You could DETACH/ATTACH the database from SQL2000 to MSDE.
>> 2. You could use DTS to migrate the database to MSDE. This would also
>> work
>> if you need to just move the data.
>> 3. You could use the BACKUP/RESTORE method as well.
>> Hope this helps . .
>> ~John
>> "WILDPACKET" wrote:
>> >
>> > I know this may sound silly.
>> >
>> > I want to export a small DB from my SQL2000 to an MSDE.
>> >
>> > Advise Please as to how can I do this?
>> >
>> > Thank you|||Bass
Pls, look at my posting above to see if you can help me out.
Regards
Henrik Arenblad, MCP-SBS,
"bass_player [SBS-MVP]" <bass_player@.mvps.org> wrote in message
news:%23dTkWWxCIHA.2280@.TK2MSFTNGP02.phx.gbl...
> You also need to make sure that the correct user accounts exist on the
> target server where you will be moving this database
>
> "WILDPACKET" <WILDPACKET@.discussions.microsoft.com> wrote in message
> news:E03C6C4E-B3B4-4119-97ED-87E1CE066399@.microsoft.com...
>> John,
>> Thank you for your response.
>> I am new to this whole MSDE/SQL thing.
>> This is a blackberry DB 180MB which I have to move from the SQL2000
>> server
>> to another server running MSDE.
>>
>>
>> "FireDBA" wrote:
>> Hi,
>> Like export just the data or move the entire structure? I'm assuming
>> you
>> are referring to the latter . . thus
>> 1. You could DETACH/ATTACH the database from SQL2000 to MSDE.
>> 2. You could use DTS to migrate the database to MSDE. This would also
>> work
>> if you need to just move the data.
>> 3. You could use the BACKUP/RESTORE method as well.
>> Hope this helps . .
>> ~John
>> "WILDPACKET" wrote:
>> >
>> > I know this may sound silly.
>> >
>> > I want to export a small DB from my SQL2000 to an MSDE.
>> >
>> > Advise Please as to how can I do this?
>> >
>> > Thank you
>