-
- Influencer
- Posts: 11
- Liked: never
- Joined: Jul 05, 2013 1:50 am
- Full Name: Sohei Okamoto
- Contact:
SqlChecker.vbs doesn't work automatically with SureBackup ?
Hi All,
I have the question about vbs script which is included in Veeam installation folder.
It's "Veeam.Backup.SqlChecker.vbs".
I read the article by your Engineer, Danilo Chiavari.
http://www.danilochiavari.com/2014/12/0 ... eam-br-v8/
I've read the description in file, as far as I read,
this will be used in SureBackup by "Test Script" in Application Group.
My environment is WORKGROUP, so I specify this script with SQL Server credentials.
But this doesn't work in SureBackup automatically.
Oddly, when I run this script manually from Veeam server, this script works.
I wonder why there is such difference so I open the ticket Case # 00846095,
then the support said "if you want to use SQL Server credentials, you must run manually."
I'm confused the correct script usage when I use with SQL Server credentials.
Could you clarify this ?
Regards,
Sohei
I have the question about vbs script which is included in Veeam installation folder.
It's "Veeam.Backup.SqlChecker.vbs".
I read the article by your Engineer, Danilo Chiavari.
http://www.danilochiavari.com/2014/12/0 ... eam-br-v8/
I've read the description in file, as far as I read,
this will be used in SureBackup by "Test Script" in Application Group.
My environment is WORKGROUP, so I specify this script with SQL Server credentials.
But this doesn't work in SureBackup automatically.
Oddly, when I run this script manually from Veeam server, this script works.
I wonder why there is such difference so I open the ticket Case # 00846095,
then the support said "if you want to use SQL Server credentials, you must run manually."
I'm confused the correct script usage when I use with SQL Server credentials.
Could you clarify this ?
Regards,
Sohei
-
- Veeam Software
- Posts: 21138
- Liked: 2141 times
- Joined: Jul 11, 2011 10:22 am
- Full Name: Alexander Fogelson
- Contact:
Re: SqlChecker.vbs doesn't work automatically with SureBacku
Sohei, as far as I can judge, you're doing everything correct (at least if you're following Danilo's article). SQL authentication should work this way, so I suggest you to continue investigating the reasons of the observed behavior with your support engineer.
-
- Novice
- Posts: 5
- Liked: never
- Joined: Jan 17, 2018 7:24 pm
- Full Name: Dan Penley
- Contact:
Re: SqlChecker.vbs doesn't work automatically with SureBackup ?
I am having an issue with the SQL script. I added a script above the SQL check script to check for port 1433, and it is working so it's not a network/firewall thing. I made sure I can log into SSMS with the credentials that I'm using also, so that shouldn't be a problem. Not getting anywhere with support so far. This is a Windows domain joined SQL server, with a Global Catalog DC/DNS server already up and running in the Surebackup job. Any ideas/thoughts would be welcome.
-
- Veeam Software
- Posts: 21138
- Liked: 2141 times
- Joined: Jul 11, 2011 10:22 am
- Full Name: Alexander Fogelson
- Contact:
Re: SqlChecker.vbs doesn't work automatically with SureBackup ?
Hi Dan, could you please share the support case ID? Thanks!
-
- Novice
- Posts: 3
- Liked: never
- Joined: Jul 19, 2021 9:53 pm
- Full Name: Jonathan C
- Contact:
Re: SqlChecker.vbs doesn't work automatically with SureBackup ?
For anybody who comes across this, I have an update if you get SSL errors when trying to test.
If you have TLS 1.2 only turned on, as is standard since 2019, the script fails because the vbs script is trying to connect via an older encryption algorightm (or non at all).
Open the Veeam.Backup.SQLChecker.vbs script, and search for "sConnString". Copy the line and paste it directly below it. Comment the first line just to keep as a backup.
Replace the newly duplicated line with this:
sConnString = "Provider=SQLNCLI11;DataTypeCompatibility=80;Initial Catalog=master;Server=" & sInstance
Basically, SQLNCLI11 instead of SQLOLEDB.1 and adding DataTypeCompatibility=80 as a parameter. Then the script started connecting for all of our SQL servers.
If you have TLS 1.2 only turned on, as is standard since 2019, the script fails because the vbs script is trying to connect via an older encryption algorightm (or non at all).
Open the Veeam.Backup.SQLChecker.vbs script, and search for "sConnString". Copy the line and paste it directly below it. Comment the first line just to keep as a backup.
Replace the newly duplicated line with this:
sConnString = "Provider=SQLNCLI11;DataTypeCompatibility=80;Initial Catalog=master;Server=" & sInstance
Basically, SQLNCLI11 instead of SQLOLEDB.1 and adding DataTypeCompatibility=80 as a parameter. Then the script started connecting for all of our SQL servers.
-
- Product Manager
- Posts: 2578
- Liked: 707 times
- Joined: Jun 14, 2013 9:30 am
- Full Name: Egor Yakovlev
- Location: Prague, Czech Republic
- Contact:
Re: SqlChecker.vbs doesn't work automatically with SureBackup ?
Hi Jonathan.
Thanks for sharing your solution.
I will discuss this case with devs.
/Cheers!
Thanks for sharing your solution.
I will discuss this case with devs.
/Cheers!
Who is online
Users browsing this forum: No registered users and 71 guests