<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic RE: Generating Table script from SQL server in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Generating-Table-script-from-SQL-server/m-p/71783#M24388</link>
    <description>&lt;P&gt;Hi @Simon Cooke&lt;/P&gt;
&lt;P&gt;This code only works for other than table objects. so only I preferred the above-mentioned code to integrate with blueprism.&lt;/P&gt;
&lt;P&gt;and that code works in Visual studio not in blueprism.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Soumya k RPA Developer&lt;BR /&gt;RPA Developer&lt;BR /&gt;Qualesce India Private Limited&lt;BR /&gt;Bangalore&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Sat, 10 Jun 2023 14:38:00 GMT</pubDate>
    <dc:creator>Soumya21</dc:creator>
    <dc:date>2023-06-10T14:38:00Z</dc:date>
    <item>
      <title>Generating Table script from SQL server</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Generating-Table-script-from-SQL-server/m-p/71778#M24383</link>
      <description>&lt;P&gt;Hi Everyone&lt;/P&gt;
&lt;P&gt;I want to generate table script from SQL Server.&lt;/P&gt;
&lt;P&gt;I am using below code and added in global code of object&lt;/P&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; public static class TableScriptGenerator&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; {&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public static string GenerateTableScript(string serverInstance,string databaseName, string tableName, out string errorMessage)&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; try&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //Server srv = new Server();&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //srv.ConnectionContext.Login = login;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //srv.ConnectionContext.Password = password;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; Server srv;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; srv=new Server(serverInstance);&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Database db= new Database();&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; db = srv.Databases[databaseName];&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; StringBuilder sb = new StringBuilder();&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Table tbl = db.Tables[tableName];&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ScriptingOptions options = new ScriptingOptions();&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; options.ClusteredIndexes = true;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; options.Default = true;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; options.DriAll = true;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; options.Indexes = true;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; options.IncludeHeaders = true;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; StringCollection coll = tbl.Script(options);&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; string script = string.Join(Environment.NewLine, coll);&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; errorMessage = string.Empty;&amp;nbsp; // Clear any previous error message&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return script;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; catch (Exception ex)&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; errorMessage = ex.Message;&amp;nbsp; // Assign the error message to the output variable&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return null;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; }&lt;/DIV&gt;
&lt;DIV&gt;and I am calling function Generate Table script in code stage of object&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;P&gt;string serverInstance = "abc\\SQLEXPRESS";&lt;BR /&gt;&lt;BR /&gt;string databaseName = "Demo";&lt;BR /&gt;string tableName = "humanresources";&lt;/P&gt;
&lt;P&gt;string script;&lt;BR /&gt;string errorMessage;&lt;/P&gt;
&lt;P&gt;script = TableScriptGenerator.GenerateTableScript(serverInstance,databaseName, tableName, out errorMessage);&lt;/P&gt;
&lt;P&gt;OutputVariable = script;&lt;BR /&gt;ErrorMessageOutputVariable = errorMessage;&lt;/P&gt;
&lt;P&gt;In this I have added OutputVariable and ErrorMessageOutputVariable are output variables&lt;/P&gt;
&lt;P&gt;I have added required dll's and namespace&lt;/P&gt;
&lt;P&gt;I am getting error like cant connect to server&lt;/P&gt;
&lt;P&gt;If anyone have idea on this, please help me on this&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Soumya&lt;/P&gt;
&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Soumya k RPA Developer&lt;BR /&gt;RPA Developer&lt;BR /&gt;Qualesce India Private Limited&lt;BR /&gt;Bangalore&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 06 Jun 2023 05:57:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Generating-Table-script-from-SQL-server/m-p/71778#M24383</guid>
      <dc:creator>Soumya21</dc:creator>
      <dc:date>2023-06-06T05:57:00Z</dc:date>
    </item>
    <item>
      <title>RE: Generating Table script from SQL server</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Generating-Table-script-from-SQL-server/m-p/71779#M24384</link>
      <description>&lt;P&gt;Hi &lt;SPAN&gt;Soumya,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Is your connection error saying something like 'server cannot be located' or is it more of an 'unauthorised' error.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;If the server cannot be located it suggests you either have the server name wrong or there is some network related issues i.e. internal firewall that your infrastructure team will be able to help you with.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If it is unauthorised that means you've hit the server OK but either the credentials are wrong or they don't have the permissions you need. This would probably be the DB owner who can help you&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Simon&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Simon Cooke&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 06 Jun 2023 12:32:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Generating-Table-script-from-SQL-server/m-p/71779#M24384</guid>
      <dc:creator>SimonCooke1</dc:creator>
      <dc:date>2023-06-06T12:32:00Z</dc:date>
    </item>
    <item>
      <title>RE: Generating Table script from SQL server</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Generating-Table-script-from-SQL-server/m-p/71780#M24385</link>
      <description>&lt;P&gt;Hi @Simon Cooke&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It doesn't show like server cannot be located and server name is correct. when I run this code in Visual studio Its working when I run this in Blueprism its throwing error&lt;/P&gt;
&lt;P&gt;Does anyone have worked on this, If yes kindly help on this&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Soumya k RPA Developer&lt;BR /&gt;RPA Developer&lt;BR /&gt;Qualesce India Private Limited&lt;BR /&gt;Bangalore&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 09 Jun 2023 11:00:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Generating-Table-script-from-SQL-server/m-p/71780#M24385</guid>
      <dc:creator>Soumya21</dc:creator>
      <dc:date>2023-06-09T11:00:00Z</dc:date>
    </item>
    <item>
      <title>RE: Generating Table script from SQL server</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Generating-Table-script-from-SQL-server/m-p/71781#M24386</link>
      <description>&lt;P&gt;What's the exact error message you're getting?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've not used the SQL Server Management Objects in Blue Prism before but have been successful with the SQL Client before. Have you tried that, something like :&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; public static class TableScriptGenerator&lt;BR /&gt;&amp;nbsp; &amp;nbsp; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public static string GenerateTableScript(string connectionString, string tableName, out string errorMessage)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; try&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; StringBuilder sb = new StringBuilder();&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; using (SqlConnection connection = new SqlConnection(connectionString))&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; connection.Open();&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; string scriptQuery = $"SELECT definition FROM sys.all_sql_modules WHERE object_id = OBJECT_ID('{tableName}')";&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; using (SqlCommand command = new SqlCommand(scriptQuery, connection))&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; using (SqlDataReader reader = command.ExecuteReader())&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; while (reader.Read())&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sb.AppendLine(reader.GetString(0));&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; errorMessage = string.Empty;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return sb.ToString();&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; catch (Exception ex)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; errorMessage = ex.Message;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return null;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;BR /&gt;&amp;nbsp; &amp;nbsp; }&lt;BR /&gt;&lt;BR /&gt;You'd need to add in the assemblies for&amp;nbsp;&lt;SPAN&gt;System, &lt;/SPAN&gt;&lt;SPAN&gt;System.Data.SqlClient and &lt;/SPAN&gt;&lt;SPAN&gt;System.Text&lt;BR /&gt;&lt;BR /&gt;Simon&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Simon Cooke&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 09 Jun 2023 12:53:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Generating-Table-script-from-SQL-server/m-p/71781#M24386</guid>
      <dc:creator>SimonCooke1</dc:creator>
      <dc:date>2023-06-09T12:53:00Z</dc:date>
    </item>
    <item>
      <title>RE: Generating Table script from SQL server</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Generating-Table-script-from-SQL-server/m-p/71782#M24387</link>
      <description>&lt;P&gt;Hi Friend, To generate a table script from SQL Server, you can use the "Generate Scripts" feature in SQL Server Management Studio (SSMS)&lt;SPAN style="font-size: 8pt;"&gt;&lt;A href="https://vancedyoutube.org/"&gt;.&lt;/A&gt;&lt;/SPAN&gt; Right-click on the database, go to Tasks, and select "Generate Scripts." Choose the specific table you want to script and customize the options as needed.&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Soniya Nag&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Sat, 10 Jun 2023 09:54:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Generating-Table-script-from-SQL-server/m-p/71782#M24387</guid>
      <dc:creator>SoniyaNag</dc:creator>
      <dc:date>2023-06-10T09:54:00Z</dc:date>
    </item>
    <item>
      <title>RE: Generating Table script from SQL server</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Generating-Table-script-from-SQL-server/m-p/71783#M24388</link>
      <description>&lt;P&gt;Hi @Simon Cooke&lt;/P&gt;
&lt;P&gt;This code only works for other than table objects. so only I preferred the above-mentioned code to integrate with blueprism.&lt;/P&gt;
&lt;P&gt;and that code works in Visual studio not in blueprism.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Soumya k RPA Developer&lt;BR /&gt;RPA Developer&lt;BR /&gt;Qualesce India Private Limited&lt;BR /&gt;Bangalore&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Sat, 10 Jun 2023 14:38:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Generating-Table-script-from-SQL-server/m-p/71783#M24388</guid>
      <dc:creator>Soumya21</dc:creator>
      <dc:date>2023-06-10T14:38:00Z</dc:date>
    </item>
    <item>
      <title>RE: Generating Table script from SQL server</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Generating-Table-script-from-SQL-server/m-p/71784#M24389</link>
      <description>&lt;P&gt;Hi @Soniya Nag&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, we can generate scripts like as u mentioned but its manual work.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to develop a bot to generate script for tables.&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Soumya k RPA Developer&lt;BR /&gt;RPA Developer&lt;BR /&gt;Qualesce India Private Limited&lt;BR /&gt;Bangalore&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Sat, 10 Jun 2023 14:40:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Generating-Table-script-from-SQL-server/m-p/71784#M24389</guid>
      <dc:creator>Soumya21</dc:creator>
      <dc:date>2023-06-10T14:40:00Z</dc:date>
    </item>
    <item>
      <title>RE: Generating Table script from SQL server</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Generating-Table-script-from-SQL-server/m-p/71785#M24390</link>
      <description>&lt;P&gt;This script generates a table in SQL Server.&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;The table can be used to store data with defined columns,&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;data types&lt;A href="https://revancedyoutube.org/"&gt;,&lt;/A&gt; and constraints to ensure data integrity and consistency.&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;Modify the column names, data types, and constraints as needed&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;to suit the specific requirements of the application. */&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Camila Nagg&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 26 Jul 2023 09:56:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Generating-Table-script-from-SQL-server/m-p/71785#M24390</guid>
      <dc:creator>CamilaNagg</dc:creator>
      <dc:date>2023-07-26T09:56:00Z</dc:date>
    </item>
    <item>
      <title>Re: RE: Generating Table script from SQL server</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Generating-Table-script-from-SQL-server/m-p/113455#M50779</link>
      <description>&lt;P&gt;When generating a table script from SQL Server, the process involves extracting the schema definition of a table, which includes its structure, constraints, and relationships&lt;A href="https://youtubevanceds.org/" target="_self"&gt;.&lt;/A&gt; This script is essential for recreating the table in a different database or environment. To generate the script, use SQL Server Management Studio (SSMS) and navigate to the desired table. Right-click on the table, select Script Table as, then choose CREATE To and select your preferred format (e.g., file or clipboard). Review the generated script to ensure it accurately represents the table’s structure before executing it in the target environment.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2024 09:14:03 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Generating-Table-script-from-SQL-server/m-p/113455#M50779</guid>
      <dc:creator>Charlie77</dc:creator>
      <dc:date>2024-08-29T09:14:03Z</dc:date>
    </item>
  </channel>
</rss>

