79434204

Date: 2025-02-12 19:24:32
Score: 1.5
Natty:
Report link

This string works: TOKEN(TOKEN(@[User::DynamicConnectionString], ";", 1), "=", 2)

Here's a breakdown of the expression:

@[User::DynamicConnectionString]: This is the variable holding your connection string.

TOKEN(@[User::DynamicConnectionString], ";", 1): This extracts the first token from the connection string, which is Data Source=ServerName.

TOKEN(TOKEN(@[User::DynamicConnectionString], ";", 1), "=", 2): This further extracts the second token from Data Source=ServerName, which is ServerName.

Assign the Connection String: Make sure your connection string is stored in a variable, say DynamicConnectionString.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Working_at_It