Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OpenRowSet() and parameterization
Message
From
15/06/2021 06:48:27
 
General information
Forum:
Microsoft SQL Server
Category:
Other
Miscellaneous
Thread ID:
01681195
Message ID:
01681212
Views:
28
>Can you please provide a bit more of the context, what exactly you're trying to do?

OpenRowSet() can be used to select from various sources, among them, Excel files. We select into #Temp. One of the parameter is the full path of the file. This cannot be passed as a variable. The only way is to string everything, the entire command, and execute that.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Reply
Map
View

Click here to load this message in the networking platform