As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.
Join the TIBCO Community TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.
From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
Request access to the private WebFOCUS User Group (login required) to network with fellow members.
Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.
Is there a way to delete or rename a table from a SQL database using DataMigrator (Data Management Console)? I was hoping there would be something in the target properties I could use, but I don't see it. NOTE: I'm not asking about deleting all the records in the table (I know how to do that). I'm asking how to delete the SQL table from the database.
The database is on Microsoft SQL server version 13.00.4001, Windows 2016. I get to the SQL db via an Access 2010 Project. When this db was on an older server (Windows 2008), I could delete and rename tables (and do other things) via an Access 2010 Project. But things have changed on this new server.
Now, I get a message saying it can't find the object (that I've already selected) or this recordset is not updateable, or the stored procedure executed successfully but did not return records, or nothing happens when I try to delete it. And similar when trying to rename a table.
Thanks, MarkThis message has been edited. Last edited by: folkie,
WF 8.2.02 App Studio DataMigrator ReportCaster Windows Server 2016
Thanks for the info. I'm not very familiar with SQL other than what I used to be able to do via an Access Project, or with DataMigrator. I had to lookup what DDL means (Data Definition Language).
I created a new procedure and adapted the code you provided and it worked fine for deleting/dropping a table. I even learned how to drop multiple tables in one script (separate the table names with a comma).
But for renaming a table, ALTER didn't work for me (or I couldn't figure it out). I had to use a stored procedure called sp_rename because I’m using SQL Server - syntax: sp_rename 'Test_Table_Date1', 'Test_Table_Date2';
I like using comments wherever appropriate. But the DDL script didn’t seem to like too many comments (starting and ending with /* and */) and/or where I placed the comments.
But, based on your reply, I was able to do what I wanted.
Thanks a lot, Mark
WF 8.2.02 App Studio DataMigrator ReportCaster Windows Server 2016
Regarding comments, I found that using the normal Focus comment of -* at the start of lines (instead of /* and */) works fine if I put them all at the top of the procedure. I didn't try to put them in the middle of the procedure.
Thanks, Mark
WF 8.2.02 App Studio DataMigrator ReportCaster Windows Server 2016