Azure Data Studio (ADS) Machine Learning Services (SQL Server 2019) - sql-server

We are building a ML solution using SQL Server Machine Learning services. We understand that you can invoke the SQL instance Python via commands like this.
EXECUTE sp_execute_external_script #language = N'Python', #script = N'
a = 1
b = 2
c = a/b
d = a*b
print(c, d)
'
The above commands will run in the SQL Server. However, this is not ideal for a development scenario. The idea is that we develop via Azure Data Studio and finally copy and pasta the codes via the sp_execute_external_script. However, we are facing an issue here.
In SQL Server, the Python environment comes from here:
C:\Program Files\Microsoft SQL Server\MSSQL15.MSSQLSERVER\PYTHON_SERVICES
while I am not able to launch an Azure Data Studio's Python kernel from here. I tried changing the kernel using this link.
https://learn.microsoft.com/en-us/sql/azure-data-studio/notebooks/notebooks-python-kernel?view=sql-server-ver16
enter image description here
However, I am not able to launch the Python kernel after this. Essentially, I am not able to use an existing installation of python.

Related

How to configure SQL Server Machine Learning Services on Mac?

I'm trying to run Python within SQL Server using Machine Learning Services, however, I am having a really hard time getting started. I have SQL Server 2019 running/set up on Mac using Docker according to this video.
What I've tried to get Machine Learning Services working:
Installing the Machine Learning extension for Azure Data Studio, including following listed prerequisites:
-Specifying the local path to a preexisting Python installation under Settings
-Microsoft ODBC driver 17 for SQL Server for macOS
Running the script (which runs successfully):
EXEC sp_configure 'external scripts enabled', 1
RECONFIGURE WITH OVERRIDE
After running the above script: disconnecting from the server, quitting Azure Data Studio, and either stopping or restarting the container
However, whenever I attempt to run a piece of code like this:
EXEC sp_execute_external_script
#language = N'Python',
#script=N'print("Hello World!")'
GO
I keep receiving the error:
Msg 39111, Level 16, State 1, Procedure sp_execute_external_script, Line 1
The SQL Server Machine Learning Services End-User License Agreement (EULA) has not been accepted.
I've followed other solutions, though all seem to be Windows oriented, such as restarting SQL Server services or Launchpad via Configuration Manager. Any help is much appreciated, thank you.

Bare Bones Setup to Run SSIS Package

I work with Microsoft Access 2016 with a SQL Server 2008 R2 backend. I have used SQL Server Management Studio to create some SSIS package for quick copying of data (right-click DB -> Tasks -> Import/Export).
I was able to create a button in Access to kick off the SSIS package successfully using VBA. I use the Shell function to run the following command:
"C:\Program Files (x86)\Microsoft SQL Server\140\DTS\Binn\DTExec.exe" /F "\\MyPath\MySSISPackage.dtsx". This works on my machine because I'm running my particular instance of DTExec.exe to execute the SSIS package.
I need to set up users' Win10 64-bit computers now so that this process will work for them as well. I don't know if DTExec was installed when I installed SSMS or my local SQL Server Express Edition DB, but the user doesn't need either of these programs. What is the bare minimum I need to install on the users' computers for it to work for them also?
I've done a lot of googling but either the scenario didn't quite fit mine, or I just wasn't understanding what they were talking about. The users will have Microsoft Access only as a start.
Links to download locations would be extra appreciated!
Thanks!
For running SSIS packages in a production environment you must install and license SQL Server. A user who only has Microsoft Access installed cannot run SSIS packages.
You can install and run SSIS packages on your SQL Server (Standard Edition or higher), but not on your clients' PCs.
Once you have credentials all sorted out with DBA team. At min you will need read (select permission) on desired database(s) . Build your ssis in VS2017 locally and test. It will run great I'm sure. And when your ready to deploy you can use steps below.
Steps below outline package deployment mode.

SQL Server windows NT

I have 3 SQL Server Windows NT processes running and they consume the resources, I read that they are instances and if I'm not using some of them I should remove them, but I'm new to SQL Server and I don't know which instance I'm using.
How can I find out which instance I'm working on? and would deleting the folders in program files be enough cause I can't find them in apps & features?
SELECT ##servername will give you server/instanceName
Server: Is your sever name (Your machine name)
InstanceName: is the instance installed
After you know which instance you are using (MSSQLSERVER in your case) follow this article to uninstall other instances.
You can get the process id from the windows task manager, and search it in the SQL Server logs. Follow this Step by step article for more information.
Also you can benefit from the sp_Who2 and sp_who procedures:
From SQL management studio run EXEC sp_Who, and you will find the process that are using the instance.

SQL Server Mangement Studio - Generated database script not working

I am having trobule trying to copy a database using sql server management studio.
The script which was generated using the wizard throws the following error when I try to run it to create the new database;
Reference to database and/or server name in
'databasename'.dbo.sp_fulltext_database' is not supported in this
version of SQL server
This is despite generating the script using the correct version number and a couple of other ones to test.
I am following the steps in the following post
http://johanbenjaminsson.com/how-to-make-a-copy-of-an-umbraco-database/
Steps are not the exact same as the post is from a while back but the process is the same.
The line that seems to have the error is the following
EXEC [<databasename>].[dbo].[sp_fulltext_database| #action = 'enable'
Struggling with this so any advice would be great.

Create setup.exe included database (sql) in Visual Studio 2012

I have created a program in C# which is connected with the database in SQL server as localhost. When I create setup file with instalShield, the program successfully installed, but it doesn't show the data from database and as such can not be used fully.
Can you help me what should I do to make a full setup.exe which can install everywhere including all files and database?
You can use from setup factory soft ware .
It's powerful for create setup.
http://download.cnet.com/Setup-Factory/3000-2216_4-10002374.html

Resources