Contributions
Re: Changing DBTables database target without changing data
Hi, Robert I got same question here. However, do you have C# code for the codes you wrote for the top question? The following scripts throw me a run time error.I think it's connection string. I want to changing DBTables database target without chaning data. When I record the table, the connection string is hard coded for the database name and computer name. Could you help me to correct it? Thanks for help! function VerifyDBTable( ) { VerifyDBTable( ) var DBTab = DBTables["TC000008_Table"]; var DBName = "myNewDatabaseName"; var computerName = "myComputerName"; DBTab["ConnectionString"] = 'Provider=SQLNCLI10.1;Integrated Security=SSPI;Persist Security Info=False;User ID="";Initial Catalog=' + DBName + ';Data Source=' + computerName + ';Initial File Name="";Server SPN="";'; DBTab["Check"](); }1KViews0likes0Comments