79493863

Date: 2025-03-08 04:18:39
Score: 1.5
Natty:
Report link

Redshift cannot execute a “script” command, multiple statements in a single command. You need to run 2 command separately in the same session. This cannot be done with odbc. I’m unsure you can use a non-odbc redshift connection in vba.

If the database is set to case sensitive then all the queries against it already have this turned on. You shouldn’t need to run the first statement. Are you just trying to get the returned column names to be capitalized? There’s gotta be a simpler excel specific way to do that. If that’s the case I’d re-ask the question without mentioning redshift at all, like how do I automatically rename columns when selecting from an odbc table in vba?

Reasons:
  • Blacklisted phrase (1): how do I
  • Whitelisted phrase (-1.5): you can use
  • Long answer (-0.5):
  • No code block (0.5):
  • Ends in question mark (2):
Posted by: user433342