dbTalk Databases Forums  

DB alias

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss DB alias in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Sandra
 
Posts: n/a

Default DB alias - 10-06-2003 , 01:25 PM






Is there any way I can have the db connection in my dts
packages set up as an alias name so if I need to move my
db schema to another database (in the same server) I don't
need to go in each connection and transformation and
change the db name. Thanks in advance for your help.

Sandra

Reply With Quote
  #2  
Old   
Darren Green
 
Posts: n/a

Default Re: DB alias - 10-06-2003 , 02:30 PM






In article <0e9601c38c37$316be3b0$a001280a (AT) phx (DOT) gbl>, Sandra
<silvah (AT) wellsfargo (DOT) com> writes
Quote:
Is there any way I can have the db connection in my dts
packages set up as an alias name so if I need to move my
db schema to another database (in the same server) I don't
need to go in each connection and transformation and
change the db name. Thanks in advance for your help.

Sandra
No you cannot alias databases. What you can do is use a global variable
to store the DB name and then use the Dynamic Properties Task to update
your connections with the global variable at run-time.

The DataPump task by default does use the three part name, and this will
of course override any changes you have made in connection. To avoid
this, just use Disconnected Edit to remove the database name. The UI
will put it back if you change the table again, but just be aware of
that. You could of course do this via script too.

--
Darren Green (SQL Server MVP)
DTS - http://www.sqldts.com

PASS - the definitive, global community for SQL Server professionals
http://www.sqlpass.org



Reply With Quote
  #3  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: DB alias - 10-06-2003 , 02:48 PM



Oops

I read DB Connection as Server. Should i have read it as Database ?

--
--

Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org

"Darren Green" <darren.green (AT) reply-to-newsgroup-only (DOT) uk.com> wrote in
message news:Kmj2QCD5Kcg$EwGy (AT) sqldts (DOT) com...
Quote:
In article <0e9601c38c37$316be3b0$a001280a (AT) phx (DOT) gbl>, Sandra
silvah (AT) wellsfargo (DOT) com> writes
Is there any way I can have the db connection in my dts
packages set up as an alias name so if I need to move my
db schema to another database (in the same server) I don't
need to go in each connection and transformation and
change the db name. Thanks in advance for your help.

Sandra

No you cannot alias databases. What you can do is use a global variable
to store the DB name and then use the Dynamic Properties Task to update
your connections with the global variable at run-time.

The DataPump task by default does use the three part name, and this will
of course override any changes you have made in connection. To avoid
this, just use Disconnected Edit to remove the database name. The UI
will put it back if you change the table again, but just be aware of
that. You could of course do this via script too.

--
Darren Green (SQL Server MVP)
DTS - http://www.sqldts.com

PASS - the definitive, global community for SQL Server professionals
http://www.sqlpass.org




Reply With Quote
  #4  
Old   
Sandra
 
Posts: n/a

Default Re: DB alias - 10-17-2003 , 11:59 AM



I really mean database not server. Thank you so much
anyway.
Quote:
-----Original Message-----
Oops

I read DB Connection as Server. Should i have read it as
Database ?

--
--

Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org

"Darren Green" <darren.green@reply-to-newsgroup-
only.uk.com> wrote in
message news:Kmj2QCD5Kcg$EwGy (AT) sqldts (DOT) com...
In article <0e9601c38c37$316be3b0$a001280a (AT) phx (DOT) gbl>,
Sandra
silvah (AT) wellsfargo (DOT) com> writes
Is there any way I can have the db connection in my dts
packages set up as an alias name so if I need to move
my
db schema to another database (in the same server) I
don't
need to go in each connection and transformation and
change the db name. Thanks in advance for your help.

Sandra

No you cannot alias databases. What you can do is use a
global variable
to store the DB name and then use the Dynamic
Properties Task to update
your connections with the global variable at run-time.

The DataPump task by default does use the three part
name, and this will
of course override any changes you have made in
connection. To avoid
this, just use Disconnected Edit to remove the database
name. The UI
will put it back if you change the table again, but
just be aware of
that. You could of course do this via script too.

--
Darren Green (SQL Server MVP)
DTS - http://www.sqldts.com

PASS - the definitive, global community for SQL Server
professionals
http://www.sqlpass.org



.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.