I got it. It worked fine
Thank you for your help:
EXEC sp_addlinkedserver @server='Servername' EXEC sp_addlinkedsrvlogin 'Servername', 'false', NULL, 'username', 'password@123'
Related Posts:
- Inserting multiple rows in a single SQL query? [duplicate]
- T-SQL split string
- How do I perform an IF…THEN in an SQL SELECT?
- Each GROUP BY expression must contain at least one column that is not an outer reference
- SQL Server : Arithmetic overflow error converting expression to data type int
- How to calculate percentage with a SQL statement
- What is the meaning of the prefix N in T-SQL statements and when should I use it?
- Query error with ambiguous column name in SQL
- Keeping it simple and how to do multiple CTE in a query
- Why use a READ UNCOMMITTED isolation level?
- How to group by month from Date field using sql
- SQL – The conversion of a varchar data type to a datetime data type resulted in an out-of-range value
- How can I get column names from a table in SQL Server?
- Is there a combination of “LIKE” and “IN” in SQL?
- How to get a date in YYYY-MM-DD format from a TSQL datetime field?
- MS SQL compare dates?
- MS SQL compare dates?
- Get size of all tables in database
- Using RegEx in SQL Server
- How to format a numeric column as phone number in SQL
- How do I format a number with commas in T-SQL?
- SQL: IF clause within WHERE clause
- Comma separated results in SQL
- Selecting COUNT(*) with DISTINCT
- What is a stored procedure?
- LEFT JOIN vs. LEFT OUTER JOIN in SQL Server
- What do Clustered and Non-Clustered index actually mean?
- LEFT JOIN vs. LEFT OUTER JOIN in SQL Server
- How to drop a table if it exists?
- SQL Server: Difference between PARTITION BY and GROUP BY
- SQL query to select dates between two dates
- When should I use CROSS APPLY over INNER JOIN?
- SQL query to get the employee name and their manager name from the same table
- Function to Calculate Median in SQL Server
- The SQL OVER() clause – when and why is it useful?
- Update multiple columns in SQL
- Function to Calculate Median in SQL Server
- How do I escape a single quote in SQL Server?
- SQL Server IF EXISTS THEN 1 ELSE 2
- T-SQL split string based on delimiter
- SQL Query with SUM with Group By
- How do I escape a single quote in SQL Server?
- SQL update from one Table to another based on a ID match
- Conversion of a varchar data type to a datetime data type resulted in an out-of-range value in SQL query
- How to drop all tables from a database with one SQL query?
- Optimistic vs. Pessimistic locking
- Column name or number of supplied values does not match table definition
- SQL Server FOR EACH Loop
- The target principal name is incorrect. Cannot generate SSPI context
- Query comparing dates in SQL
- The EXECUTE permission was denied on the object ‘xxxxxxx’, database ‘zzzzzzz’, schema ‘dbo’
- BCP error “Unable to open BCP host data-file”
- How to drop all tables from a database with one SQL query?
- Sql Server string to date conversion
- How to find sum of multiple columns in a table in SQL Server 2005?
- Check if table exists in SQL Server
- Conversion failed when converting from a character string to uniqueidentifier – Two GUIDs
- Operand type clash: int is incompatible with date + The INSERT statement conflicted with the FOREIGN KEY constraint
- How can I delete using INNER JOIN with SQL Server?
- Find all tables containing column with specified name – MS SQL Server
- DateTime2 vs DateTime in SQL Server
- Conversion of a varchar data type to a datetime data type resulted in an out-of-range value in SQL query
- CREATE TABLE IF NOT EXISTS equivalent in SQL Server
- How can I import an Excel file into SQL Server?
- sql server invalid object name – but tables are listed in SSMS tables list
- What is the equivalent of ‘describe table’ in SQL Server?
- Arithmetic overflow error converting expression to data type datetime. (while displaying date time..)
- Error converting data type varchar to float
- ClassNotFoundException – com.microsoft.jdbc.sqlserver.SQLServerDriver
- I want to use CASE statement to update some records in sql server 2005
- The SELECT permission was denied on the object ‘Users’, database ‘XXX’, schema ‘dbo’
- How do you open an SDF file (SQL Server Compact Edition)?
- Conversion failed when converting the varchar value ‘simple, ‘ to data type int
- Must declare the scalar variable
- Exclude a column using SELECT * [except columnA] FROM tableA?
- TSQL PIVOT MULTIPLE COLUMNS
- Trouble Connecting to sql server Login failed. “The login is from an untrusted domain and cannot be used with Windows authentication”
- Difference between database and schema
- Why do table names in SQL Server start with “dbo”?
- ‘Microsoft.ACE.OLEDB.16.0’ provider is not registered on the local machine.
- How do I fix the multiple-step OLE DB operation errors in SSIS?
- SQL Server: Error converting data type nvarchar to numeric
- SQL – WHERE (X, Y) IN (A, B)
- SQL Server Linked Server Example Query
- Format number as percent in MS SQL Server
- How do I fix the error ‘Named Pipes Provider, error 40 – Could not open a connection to’ SQL Server’?
- SQL datetime compare
- SQL Server dynamic PIVOT query?
- How to write a foreach in SQL Server?
- Error converting data type varchar
- I want to use CASE statement to update some records in sql server 2005
- How to connect to a local database in SQL Server Management Studio?
- ORDER BY items must appear in the select list if SELECT DISTINCT is specified
- What are named pipes?
- How to select the last record of a table in SQL?
- SQL- Ignore case while searching for a string
- SQL WHERE.. IN clause multiple columns
- SUM OVER PARTITION BY
- Varchar invalid for Sum operator
- What is tableName.* in SQL