Complete the code to specify the server name in the connection string.
let Source = Sql.Database([1], "SalesDB")
The first argument in Sql.Database is the server name. You need to provide the actual server name as a string.
Complete the code to specify the database name in the connection string.
let Source = Sql.Database("MyServer", [1])
The second argument in Sql.Database is the database name. It should be the name of the database you want to connect to.
Fix the error in the connection code by completing the missing part.
let Source = Sql.Database("MyServer", "SalesDB", [1])
The third argument is an optional record for options. ConnectionTimeout must be specified as a duration using #duration(days, hours, minutes, seconds) inside a record.
Fill both blanks to set the connection with integrated security and a command timeout.
let Source = Sql.Database("MyServer", "SalesDB", [1])
To use Windows authentication, set IntegratedSecurity=true. CommandTimeout expects a duration value.
Fill all three blanks to create a connection with server, database, and a custom SQL query.
let Source = Sql.Database([1], [2], [Query=[3]])
The first two blanks are server and database names as strings. The third blank is the SQL query string to run.