Skip to content

Commit 4602e56

Browse files
authored
indent correction on code snippets
1 parent 7050390 commit 4602e56

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

articles/sql-database/tutorial-sqlite-db-to-azure-sql-serverless-offline.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ Once you have followed the below steps, your database will be migrated into Azur
6060

6161
8. Give the linked service a meaningful name, for example, "sqlite_odbc". Select your integration runtime from the "Connect via integration runtime" dropdown. Enter the below into the connection string, replacing the Initial Catalog variable with the filepath for the .db file, and the DSN with the name of the system DSN connection:
6262

63-
```
64-
Connection string: Provider=MSDASQL.1;Persist Security Info=False;Mode=ReadWrite;Initial Catalog=C:\sqlitemigrationsource.db;DSN=sqlitemigrationsource
65-
```
63+
```
64+
Connection string: Provider=MSDASQL.1;Persist Security Info=False;Mode=ReadWrite;Initial Catalog=C:\sqlitemigrationsource.db;DSN=sqlitemigrationsource
65+
```
6666
6767
9. Set the authentication type to Anonymous
6868
@@ -76,20 +76,20 @@ Connection string: Provider=MSDASQL.1;Persist Security Info=False;Mode=ReadWrite
7676
7777
12. Extract the CREATE TABLE statements from your SQLite database. You can do this by executing the below Python script on your database file.
7878
79-
```
80-
#!/usr/bin/python
81-
import sqlite3
82-
conn = sqlite3.connect("sqlitemigrationsource.db")
83-
c = conn.cursor()
84-
85-
print("Starting extract job..")
86-
with open('CreateTables.sql', 'w') as f:
87-
for tabledetails in c.execute("SELECT * FROM sqlite_master WHERE type='table'"):
88-
print("Extracting CREATE statement for " + (str(tabledetails[1])))
89-
print(tabledetails)
90-
f.write(str(tabledetails[4].replace('\n','') + ';\n'))
91-
c.close()
92-
```
79+
```
80+
#!/usr/bin/python
81+
import sqlite3
82+
conn = sqlite3.connect("sqlitemigrationsource.db")
83+
c = conn.cursor()
84+
85+
print("Starting extract job..")
86+
with open('CreateTables.sql', 'w') as f:
87+
for tabledetails in c.execute("SELECT * FROM sqlite_master WHERE type='table'"):
88+
print("Extracting CREATE statement for " + (str(tabledetails[1])))
89+
print(tabledetails)
90+
f.write(str(tabledetails[4].replace('\n','') + ';\n'))
91+
c.close()
92+
```
9393
9494
13. Create the landing tables in your Serverless SQL target environment by copying the CREATE table statements from the CreateTables.sql file and running the SQL statements in the Query Editor in the Azure portal.
9595

0 commit comments

Comments
 (0)