SET NOCOUNT ON
/* Create a temporary table to store the data in the text file. Maximum character is 8000. */
CREATE TABLE #tempfile (line varchar(8000))
/* Insert data from the text file to the temporary table */
EXEC ('bulk INSERT #tempfile FROM "' + 'C:\Sample.txt' + '"')
/* Return the data in the text file. */
SELECT * FROM #tempfile
/* Drop the temporary table. */
DROP TABLE #tempfile
Programming Explorer : This is the place that I would like to share with you about my IT knowledge and experience. Some of the articles are copied from others in the internet. Some are originally come from my findings.
Subscribe to:
Post Comments (Atom)
-
If your environment is something like below: Windows operating system, either 10 or 11 Python 3.13 You are trying to install pymssql , and Y...
-
You may refer to the sample codes below from us. We use Windows platform as an example: import webbrowser def main(): fUrl: str = 'h...
-
Environment: Visual Studio Code v1.83.1 Symtomps: 1). When you try to debug your Flutter project, you see this error message at the Terminal...
No comments:
Post a Comment