We have a client that has tables split by month (TranSale202301, TranSale202302, TranSale202303, etc.) They only want to keep the last 25 months of data (so 25 tables). We would like to be able to do this dynamically but the current SQL does not allow it. We tried an MV with jdbc connection but the sql server uses a data agent and from what we know, spark cannot utilize the data agent.
INC_03131301: Failed to load data from [xxxxx] with properties [[database, sqlserver], [connectionPool, 30], [connection, jdbc:sqlserver://xxxx:xxxx;databaseName=xxxx;]] due to [Incorrect syntax near the keyword 'DECLARE'.]
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.