Update pages/DATA CATALOG.py
Browse files- pages/DATA CATALOG.py +20 -11
pages/DATA CATALOG.py
CHANGED
@@ -152,12 +152,17 @@ def main():
|
|
152 |
select2=st.selectbox('SOURCE SCHEMA NAME',('DBO','CLIENT'),key='SCHname',index=None,placeholder='Select schema name', on_change=clear_cache)
|
153 |
if select1 =='DB_10001' and select2 is not None:
|
154 |
with st.spinner("Loading Tables:"):
|
|
|
|
|
|
|
|
|
|
|
155 |
|
156 |
-
conn1 = pymssql.connect("Server=sql-ext-dev-uks-001.database.windows.net;"
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
|
162 |
query0_1=f"select * from INFORMATION_SCHEMA.TABLES where TABLE_SCHEMA='{select2}' ORDER BY TABLE_NAME ASC"
|
163 |
st.session_state.tab_names_init=list(pd.read_sql_query(query0_1,con=conn1)['TABLE_NAME'])
|
@@ -214,12 +219,16 @@ def main():
|
|
214 |
with st.container(height= 400, border=True):
|
215 |
cole1,cole2=st.columns([1,1.5])
|
216 |
with cole1:
|
217 |
-
conn = pymssql.connect(
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
|
|
|
|
|
|
|
|
223 |
|
224 |
table_selector= tab_names_shown[i]
|
225 |
if table_selector is not None:
|
|
|
152 |
select2=st.selectbox('SOURCE SCHEMA NAME',('DBO','CLIENT'),key='SCHname',index=None,placeholder='Select schema name', on_change=clear_cache)
|
153 |
if select1 =='DB_10001' and select2 is not None:
|
154 |
with st.spinner("Loading Tables:"):
|
155 |
+
conn1 = pymssql.connect(Server="sql-ext-dev-uks-001.database.windows.net",
|
156 |
+
Database="sqldb-ext-dev-uks-001",
|
157 |
+
user="dbadmin",
|
158 |
+
password="mYpa$$w0rD",
|
159 |
+
tds_version="7.0" )
|
160 |
|
161 |
+
# conn1 = pymssql.connect("Server=sql-ext-dev-uks-001.database.windows.net;"
|
162 |
+
# "Database=sqldb-ext-dev-uks-001;"
|
163 |
+
# "UID=dbadmin;"
|
164 |
+
# "PWD=mYpa$$w0rD;"
|
165 |
+
# "tds_version=7.0" )
|
166 |
|
167 |
query0_1=f"select * from INFORMATION_SCHEMA.TABLES where TABLE_SCHEMA='{select2}' ORDER BY TABLE_NAME ASC"
|
168 |
st.session_state.tab_names_init=list(pd.read_sql_query(query0_1,con=conn1)['TABLE_NAME'])
|
|
|
219 |
with st.container(height= 400, border=True):
|
220 |
cole1,cole2=st.columns([1,1.5])
|
221 |
with cole1:
|
222 |
+
conn = pymssql.connect(Server="sql-ext-dev-uks-001.database.windows.net",
|
223 |
+
Database="sqldb-ext-dev-uks-001",
|
224 |
+
user="dbadmin",
|
225 |
+
password="mYpa$$w0rD",
|
226 |
+
tds_version="7.0" )
|
227 |
+
# conn = pymssql.connect( "Server=sql-ext-dev-uks-001.database.windows.net;"
|
228 |
+
# "Database=sqldb-ext-dev-uks-001;"
|
229 |
+
# "UID=dbadmin;"
|
230 |
+
# "PWD=mYpa$$w0rD;"
|
231 |
+
# "tds_version=7.0")
|
232 |
|
233 |
table_selector= tab_names_shown[i]
|
234 |
if table_selector is not None:
|