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

Update pages/DATA CATALOG.py

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