pwc-india commited on
Commit
2268e58
1 Parent(s): abe5991

Update pages/2DATA PROFILER.py

Browse files
Files changed (1) hide show
  1. pages/2DATA PROFILER.py +9 -4
pages/2DATA PROFILER.py CHANGED
@@ -257,10 +257,15 @@ def main():
257
  with st.container(border=True):
258
  st.subheader('SELECT TABLE')
259
  metadata = SingleTableMetadata()
260
- conn = pymssql.connect("Server=sql-ext-dev-uks-001.database.windows.net;"
261
- "Database=sqldb-ext-dev-uks-001;"
262
- "UID=dbadmin;"
263
- "PWD=mYpa$$w0rD" )
 
 
 
 
 
264
  query1_1="select * from INFORMATION_SCHEMA.TABLES where TABLE_SCHEMA='dbo' and TABLE_NAME in ('TCM', 'TCVM','TEM', 'TPM', 'TPP', 'TPT', 'TRM', 'TSCM', 'TSM') ORDER BY TABLE_NAME ASC"
265
  query1_2="select * from INFORMATION_SCHEMA.TABLES where TABLE_SCHEMA='dbo' and TABLE_NAME LIKE 'PROFILED%' ORDER BY TABLE_NAME ASC"
266
  tab_names=list(pd.read_sql_query(query1_1,con=conn)['TABLE_NAME'])
 
257
  with st.container(border=True):
258
  st.subheader('SELECT TABLE')
259
  metadata = SingleTableMetadata()
260
+ # conn = pymssql.connect("Server=sql-ext-dev-uks-001.database.windows.net;"
261
+ # "Database=sqldb-ext-dev-uks-001;"
262
+ # "UID=dbadmin;"
263
+ # "PWD=mYpa$$w0rD" )
264
+
265
+ conn = pymssql.connect(server="sql-ext-dev-uks-001.database.windows.net"
266
+ database="sqldb-ext-dev-uks-001"
267
+ user="dbadmin"
268
+ password="mYpa$$w0rD" )
269
  query1_1="select * from INFORMATION_SCHEMA.TABLES where TABLE_SCHEMA='dbo' and TABLE_NAME in ('TCM', 'TCVM','TEM', 'TPM', 'TPP', 'TPT', 'TRM', 'TSCM', 'TSM') ORDER BY TABLE_NAME ASC"
270
  query1_2="select * from INFORMATION_SCHEMA.TABLES where TABLE_SCHEMA='dbo' and TABLE_NAME LIKE 'PROFILED%' ORDER BY TABLE_NAME ASC"
271
  tab_names=list(pd.read_sql_query(query1_1,con=conn)['TABLE_NAME'])