SQL Change Automation Tool Upgrade errors
Hi Team,
I have recently upgraded the ReadyRoll Projects in my VS2017 solution to SQL Change Automation. I’m facing below issues.
Visual Studio Version : Microsoft Professional VS 2017 15.8.7
Upgraded ReadyRoll Version : SQL Change Automation 3 version: 3.0.18291.2122
After updating the ReadyRoll Version we are unable to connect to servers (localdb)\ProjectsV13 or (localdb)\MSSQLLocalDB in SQL Change Automation window.
Sqlcmd: Error: Microsoft ODBC Driver 13 for SQL Server : Login timeout expired. Sqlcmd: Error: Microsoft ODBC Driver 13 for SQL Server : A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information see SQL Server Books Online.. Done building project "ProTransact.SQLAutomation.sqlproj" -- FAILED.But when I connected to <Machine>/SQLEXPRESS2012 its working fine.
As all our developers are using localdb)\ProjectsV13 for development purpose I need to resolve this as early as possible. Tried multiple options but no luck.
Can anyone please reply us why I’m getting this error even though I upgraded to new ReadyRoll version.
Best Answers
-
PeterG Posts: 61 Silver 3Can you try running
sqlcmd -S "(localdb)\mssqllocaldb"
and if that fails you can try the fix in https://stackoverflow.com/a/44640176Peter Gerrard
Software Engineer
Redgate Software -
Sai Posts: 8 New member
Thank you so much for your responses...It helped me a lot.. After downloading the ODBC Driver 13.1 for SQL Server the issue got resolved....Thanks a lot Peter
Answers
There shouldn't be a problem with connecting to localdb, to help diagnose further could you contact support@red-gate.com with following information:
Version you upgraded from:
Version you upgraded to: 3.0.18291.2122
Visual Studio version: 15.8.7
SQLCmd version:
And the logs from %LOCALAPPDATA%\Red Gate\Logs\SQL Change Automation\VS
Also are you able to connect to (localdb)\ProjectsV13 from the visual studio server explorer?
Software Engineer
Redgate Software
Hi Peter,
To my surprise I'm not able to connect to (localdb)\ProjectsV13 from the visual studio server explorer. Is that some issue..please let me know.
thanks,
Archana
This will force recreate the ProjectsV13 instance on localdb
Software Engineer
Redgate Software
Hi Peter,
Thanks for your instant replies. Really appreciate it.
I tried the above option of recreating the ProjectsV13 instance, but still its not working.
Please let me know what could be the root cause.
Thanks,