<?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: Sending OBDC Data Source connection with Add-in or Creating it through JSL in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Sending-OBDC-Data-Source-connection-with-Add-in-or-Creating-it/m-p/224826#M44676</link>
    <description>&lt;P&gt;If you only need to access SQL databases from windows, or if the user has a SQL odbc &lt;EM&gt;driver&lt;/EM&gt; installed then this this might work without configuring a DSN on the client machine:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;New SQL Query(
	Connection(
		"ODBC:DRIVER=SQL Server;SERVER=sqlserverhostname\sqlinstancename;Trusted_Connection=Yes;APP=JMP;DATABASE=sqldatabasename;"
	),
	CustomSQL( "SELECT TOP 10 * FROM [sqldatabasename].[schema].[table]" ) // database/schema names are not necessary
) &amp;lt;&amp;lt; Run&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 05 Sep 2019 13:34:18 GMT</pubDate>
    <dc:creator>ih</dc:creator>
    <dc:date>2019-09-05T13:34:18Z</dc:date>
    <item>
      <title>Sending OBDC Data Source connection with Add-in or Creating it through JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Sending-OBDC-Data-Source-connection-with-Add-in-or-Creating-it/m-p/224802#M44672</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create an Add-in that pulls data from an SQL Server as data source, and I would need to distribute this Add-in to other users.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Add-in works perfectly, but the OBDC connection used by the Add-in is not being sent with it. Unfortunately, not everyone would be able/know how to create an OBDC connection to the SQL server in an easy way.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know how I could either send the OBDC connection with the Add-in file, or re-create this OBDC connection through a JSL script?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the help in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2019 12:59:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Sending-OBDC-Data-Source-connection-with-Add-in-or-Creating-it/m-p/224802#M44672</guid>
      <dc:creator>A_J</dc:creator>
      <dc:date>2019-09-05T12:59:11Z</dc:date>
    </item>
    <item>
      <title>Re: Sending OBDC Data Source connection with Add-in or Creating it through JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Sending-OBDC-Data-Source-connection-with-Add-in-or-Creating-it/m-p/224826#M44676</link>
      <description>&lt;P&gt;If you only need to access SQL databases from windows, or if the user has a SQL odbc &lt;EM&gt;driver&lt;/EM&gt; installed then this this might work without configuring a DSN on the client machine:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;New SQL Query(
	Connection(
		"ODBC:DRIVER=SQL Server;SERVER=sqlserverhostname\sqlinstancename;Trusted_Connection=Yes;APP=JMP;DATABASE=sqldatabasename;"
	),
	CustomSQL( "SELECT TOP 10 * FROM [sqldatabasename].[schema].[table]" ) // database/schema names are not necessary
) &amp;lt;&amp;lt; Run&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2019 13:34:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Sending-OBDC-Data-Source-connection-with-Add-in-or-Creating-it/m-p/224826#M44676</guid>
      <dc:creator>ih</dc:creator>
      <dc:date>2019-09-05T13:34:18Z</dc:date>
    </item>
    <item>
      <title>Re: Sending OBDC Data Source connection with Add-in or Creating it through JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Sending-OBDC-Data-Source-connection-with-Add-in-or-Creating-it/m-p/224830#M44678</link>
      <description>&lt;P&gt;It seems to work like a charm :)&lt;/img&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Still I might need to find out a way to get the SQL OBDC driver installed if they are missing this, but it is defenetly saving me from the DSN.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was trying to do it using Open Database() as below, but your solution gets rid of the DSN.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt; 
Open Database(
 "DSN=sqldatasource;Description=sqlescription;Trusted_Connection=Yes;APP=JMP;WSID=sqlserverhostname;DATABASE=databasename;",
 "SELECT * FROM [sqldatabasename].[schema].[table]");&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2019 13:57:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Sending-OBDC-Data-Source-connection-with-Add-in-or-Creating-it/m-p/224830#M44678</guid>
      <dc:creator>A_J</dc:creator>
      <dc:date>2019-09-05T13:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: Sending OBDC Data Source connection with Add-in or Creating it through JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Sending-OBDC-Data-Source-connection-with-Add-in-or-Creating-it/m-p/224832#M44679</link>
      <description>&lt;P&gt;I have faced a similar problem with ODBC connection to an Oracle database.&lt;/P&gt;
&lt;P&gt;Each user will need an SQL server ODBC driver installed.&amp;nbsp; As&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/6657"&gt;@ih&lt;/a&gt;&amp;nbsp;mentioned you can probably figure out a way to connect without a named data source (DSN).&lt;/P&gt;
&lt;P&gt;Our users access a server version of JMP running on the Citrix platform.&amp;nbsp; So I only needed to install the addin + database drivers once.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2019 14:09:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Sending-OBDC-Data-Source-connection-with-Add-in-or-Creating-it/m-p/224832#M44679</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2019-09-05T14:09:17Z</dc:date>
    </item>
  </channel>
</rss>

