StrataFrame Forum
Back
Login
Login
Home
»
StrataFrame Database Deployment Toolkit
»
Issues
»
DDT NameOnServer not working
DDT NameOnServer not working
Post Reply
Like
1
DDT NameOnServer not working
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
Randy Jean
Randy Jean
posted 16 Years Ago
ANSWER
HOT
Topic Details
Share Topic
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})
Reply
Like
1
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Threaded View
Threaded View
DDT NameOnServer not working
Randy Jean
-
16 Years Ago
You are setting the "Database name on server" to a different name on...
Dustin Taylor
-
16 Years Ago
I didn't think to even try the deployment wizard to see if that works....
Randy Jean
-
16 Years Ago
[quote]Why would it now be trying to drop something?[/quote] It is...
Trent L. Taylor
-
16 Years Ago
Can I concatenate "_Data" after $DbName$? I think that would help me...
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
Post Reply
Like
1
Similar Topics
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search