Use different database in to different server connection getting error

Viewed 26

My code

:Connect DBSERVER -- Server name 
USE SanjeevStockissue-- Database  name 
go

SELECT * FROM procduction WHERE Date='2022-8-30'

I am getting error

Connecting to DBSERVER...
Fatal scripting error. Cannot open connection specified in the SQLCMD script. Login failed. The login is from an untrusted domain and cannot be used with Windows authentication.

0 Answers
Related