I have some code to create a SQL Server DSN, but it creates a user DSN and I would like to create a system DSN so that it works for any user that logs into the computer. Here is my code:
str = "Description=SQL Server " & vbCr & _
"Network=DBMSSOCN" & vbCr & _
"Trusted_Connection=yes" & vbCr & _
"Address=PARKTENSQL" & vbCr & _
"Server=PARKTENSQL" & vbCr & _
"Database=FieldTimeSystem"
DBEngine.RegisterDatabase "SQL_FTS", "SQL Server", True, str
Any help would be much appreciated, thanks in advance!
str = "Description=SQL Server " & vbCr & _
"Network=DBMSSOCN" & vbCr & _
"Trusted_Connection=yes" & vbCr & _
"Address=PARKTENSQL" & vbCr & _
"Server=PARKTENSQL" & vbCr & _
"Database=FieldTimeSystem"
DBEngine.RegisterDatabase "SQL_FTS", "SQL Server", True, str
Any help would be much appreciated, thanks in advance!