pwc-india commited on
Commit
abe5991
1 Parent(s): 5daca87

Update pages/DATA CATALOG.py

Browse files
Files changed (1) hide show
  1. pages/DATA CATALOG.py +17 -16
pages/DATA CATALOG.py CHANGED
@@ -152,15 +152,15 @@ 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
- # 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
 
160
- conn1 = pymssql.connect("Server=sql-ext-dev-uks-001.database.windows.net;"
161
- "Database=sqldb-ext-dev-uks-001;"
162
- "UID=dbadmin;"
163
- "PWD=mYpa$$w0rD;")
164
 
165
  query0_1=f"select * from INFORMATION_SCHEMA.TABLES where TABLE_SCHEMA='{select2}' ORDER BY TABLE_NAME ASC"
166
  st.session_state.tab_names_init=list(pd.read_sql_query(query0_1,con=conn1)['TABLE_NAME'])
@@ -217,14 +217,15 @@ def main():
217
  with st.container(height= 400, border=True):
218
  cole1,cole2=st.columns([1,1.5])
219
  with cole1:
220
- # conn = pymssql.connect(server="sql-ext-dev-uks-001.database.windows.net",
221
- # database="sqldb-ext-dev-uks-001",
222
- # user="dbadmin",
223
- # password="mYpa$$w0rD")
224
- conn = pymssql.connect( "Server=sql-ext-dev-uks-001.database.windows.net;"
225
- "Database=sqldb-ext-dev-uks-001;"
226
- "UID=dbadmin;"
227
- "PWD=mYpa$$w0rD;")
 
228
 
229
  table_selector= tab_names_shown[i]
230
  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
 
160
+ # conn1 = pymssql.connect("Server=sql-ext-dev-uks-001.database.windows.net;"
161
+ # "Database=sqldb-ext-dev-uks-001;"
162
+ # "UID=dbadmin;"
163
+ # "PWD=mYpa$$w0rD;")
164
 
165
  query0_1=f"select * from INFORMATION_SCHEMA.TABLES where TABLE_SCHEMA='{select2}' ORDER BY TABLE_NAME ASC"
166
  st.session_state.tab_names_init=list(pd.read_sql_query(query0_1,con=conn1)['TABLE_NAME'])
 
217
  with st.container(height= 400, border=True):
218
  cole1,cole2=st.columns([1,1.5])
219
  with cole1:
220
+ conn = pymssql.connect(server="sql-ext-dev-uks-001.database.windows.net",
221
+ database="sqldb-ext-dev-uks-001",
222
+ user="dbadmin",
223
+ password="mYpa$$w0rD")
224
+
225
+ # conn = pymssql.connect( "Server=sql-ext-dev-uks-001.database.windows.net;"
226
+ # "Database=sqldb-ext-dev-uks-001;"
227
+ # "UID=dbadmin;"
228
+ # "PWD=mYpa$$w0rD;")
229
 
230
  table_selector= tab_names_shown[i]
231
  if table_selector is not None: