Forum Discussion
liuhsiu
14 years agoNew Contributor
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!
VerifyDBTable( )
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"]();
}
Related Content
- 10 years ago
- 4 years ago
Recent Discussions
- 7 hours ago