Can anyone tell me how to insert variables for server info in a SQL
connection statement.
For example, in the following statement:
("Server=KIN-SSQL02;" & "Database=F TQ;" & "User ID=abc;" & "Password=xyz;" )
I tried using the following variables, but it doesn't work.
'("Server='varS erver';" & "Database='varD atabase';" & "User
ID='varUserName ';" & "Password='varP assword';")
In debug mode, I can hover over the variables and it shows the correct
information but I still get an error.
Thanks in advance,
Mike
connection statement.
For example, in the following statement:
("Server=KIN-SSQL02;" & "Database=F TQ;" & "User ID=abc;" & "Password=xyz;" )
I tried using the following variables, but it doesn't work.
'("Server='varS erver';" & "Database='varD atabase';" & "User
ID='varUserName ';" & "Password='varP assword';")
In debug mode, I can hover over the variables and it shows the correct
information but I still get an error.
Thanks in advance,
Mike
Comment