DDT NameOnServer not working


Author
Message
Randy Jean
Randy Jean
StrataFrame User (167 reputation)StrataFrame User (167 reputation)StrataFrame User (167 reputation)StrataFrame User (167 reputation)StrataFrame User (167 reputation)StrataFrame User (167 reputation)StrataFrame User (167 reputation)StrataFrame User (167 reputation)StrataFrame User (167 reputation)
Group: StrataFrame Users
Posts: 105, Visits: 641
I'm so close to having my deployment issues resolved I can taste it, however,I have one nagging problem that I can't seem to figure out. I need to be able to maintain 2 separate SQLExpress local databases, test and live. I have separate locations set for the connection.dat files, etc. The only thing I can't seemt to get to work is creating a database with a different name than what is in my DDT profile. I step in and see that indeed NameOnServer property is getting set to "MyLocalDBTest" but it just keeps updating updating MyLocalDB and never creates the test database. Any ideas?







Dim _DatabaseSetup as New SQL.DatabaseMigrator



Dim loDatabase As New DatabaseTargetName("MyLocalDb")



loDatabase.NameOnServer = CStr(IIf(MyApp.AppMain._TestEnv, "MyLocalDbTest", "MyLocalDb"))



' using NT auth, no user/password

_DatabaseSetup = New DatabaseMigrator("MyServer", True, Me)



_DatabaseSetup.EnableLogging = True

_DatabaseSetup.DeployMetaData("MyLocalDBPackage.pkg", "", New DatabaseTargetName() {loDatabase})




GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
Randy Jean - 16 Years Ago
Dustin Taylor - 16 Years Ago
Randy Jean - 16 Years Ago
Trent L. Taylor - 16 Years Ago
Randy Jean - 16 Years Ago
                         Yup, that is exactly what we do! Go for it!
Trent L. Taylor - 16 Years Ago
                             Cool, that worked as far as fixing it from trying to drop my existing...
Randy Jean - 16 Years Ago
                                 Yeah, the DDT actually uses the DatabaseMigrator class itself. When...
Trent L. Taylor - 16 Years Ago
                                     [quote][b]Trent L. Taylor (10/13/2008)[/b][hr]Yeah, the DDT actually...
Randy Jean - 16 Years Ago
                                     Got it! Man that being able to debug into SF source is the bomb!...
Randy Jean - 16 Years Ago
                                         Yup...good find...I had already started to respond to your post and...
Trent L. Taylor - 16 Years Ago
                                             Trent, One question about this situation,is the ContainsKey...
Edhy Rijo - 16 Years Ago
                                                 Yes...I think that there is an overload that allows the...
Trent L. Taylor - 16 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search