Hey All -
I'm having an issue getting a few variables out of the Locations part of the MDT Database. Based on the Default GW, I have different Wsus servers/deployment roots that I'd like to use. However, it seems like the SQL Query just misses this all together.
I'm not a SQL-minded person, so I'm hoping someone could point me in the right direction.
I can see the data in the database, but I'm just wondering why the MDT query is missing it completely?
Here's the ZTIGather.log:
<![LOG[------ Processing the [LSETTINGS] section ------]LOG]!><time="05:54:16.000+000" date="01-20-2013" component="ZTIGather" context="" type="1" thread="" file="ZTIGather">
<![LOG[Determining the INI file to use.]LOG]!><time="05:54:16.000+000" date="01-20-2013" component="ZTIGather" context="" type="1" thread="" file="ZTIGather">
<![LOG[Using DEFAULT VALUE: Ini file = \\WDS02\DeploymentShareNew$\Control\CustomSettings.ini]LOG]!><time="05:54:16.000+000" date="01-20-2013" component="ZTIGather" context="" type="1" thread=""
file="ZTIGather">
<![LOG[Finished determining the INI file to use.]LOG]!><time="05:54:16.000+000" date="01-20-2013" component="ZTIGather" context="" type="1" thread="" file="ZTIGather">
<![LOG[Using specified INI file = \\WDS02\DeploymentShareNew$\Control\CustomSettings.ini]LOG]!><time="05:54:16.000+000" date="01-20-2013" component="ZTIGather" context="" type="1" thread=""
file="ZTIGather">
<![LOG[CHECKING the [LSETTINGS] section]LOG]!><time="05:54:16.000+000" date="01-20-2013" component="ZTIGather" context="" type="1" thread="" file="ZTIGather">
<![LOG[Using from [LSETTINGS]: SQLServer = SQL03]LOG]!><time="05:54:16.000+000" date="01-20-2013" component="ZTIGather" context="" type="1" thread="" file="ZTIGather">
<![LOG[Using from [LSETTINGS]: Instance = SQL03_SQL]LOG]!><time="05:54:16.000+000" date="01-20-2013" component="ZTIGather" context="" type="1" thread="" file="ZTIGather">
<![LOG[Port key not defined in the section [LSETTINGS]]LOG]!><time="05:54:16.000+000" date="01-20-2013" component="ZTIGather" context="" type="1" thread="" file="ZTIGather">
<![LOG[Using from [LSETTINGS]: Database = MDT]LOG]!><time="05:54:16.000+000" date="01-20-2013" component="ZTIGather" context="" type="1" thread="" file="ZTIGather">
<![LOG[Using from [LSETTINGS]: Netlib = DBMSSOCN]LOG]!><time="05:54:16.000+000" date="01-20-2013" component="ZTIGather" context="" type="1" thread="" file="ZTIGather">
<![LOG[Using from [LSETTINGS]: Table = LocationSettings]LOG]!><time="05:54:16.000+000" date="01-20-2013" component="ZTIGather" context="" type="1" thread="" file="ZTIGather">
<![LOG[StoredProcedure key not defined in the section [LSETTINGS]]LOG]!><time="05:54:16.000+000" date="01-20-2013" component="ZTIGather" context="" type="1" thread="" file="ZTIGather">
<![LOG[Using from [LSETTINGS]: DBID = sa_MDTDB]LOG]!><time="05:54:16.000+000" date="01-20-2013" component="ZTIGather" context="" type="1" thread="" file="ZTIGather">
<![LOG[Using from [LSETTINGS]: DBPwd = ********]LOG]!><time="05:54:16.000+000" date="01-20-2013" component="ZTIGather" context="" type="1" thread="" file="ZTIGather">
<![LOG[SQLShare key not defined in the section [LSETTINGS]]LOG]!><time="05:54:16.000+000" date="01-20-2013" component="ZTIGather" context="" type="1" thread="" file="ZTIGather">
<![LOG[ParameterCondition key not defined in the section [LSETTINGS]]LOG]!><time="05:54:16.000+000" date="01-20-2013" component="ZTIGather" context="" type="1" thread="" file="ZTIGather">
<![LOG[Default ParameterCondition 'AND' will be used for building queries with multiple parameters.]LOG]!><time="05:54:16.000+000" date="01-20-2013" component="ZTIGather" context="" type="1" thread=""
file="ZTIGather">
<![LOG[OPENING STANDARD SECURITY SQL CONNECTION to server SQL03 using login sa_MDTDB.]LOG]!><time="05:54:16.000+000" date="01-20-2013" component="ZTIGather" context="" type="1" thread=""
file="ZTIGather">
<![LOG[<Message containing password has been suppressed>]LOG]!><time="05:54:16.000+000" date="01-20-2013" component="ZTIGather" context="" type="1" thread="" file="ZTIGather">
<![LOG[Successfully opened connection to database.]LOG]!><time="05:54:16.000+000" date="01-20-2013" component="ZTIGather" context="" type="1" thread="" file="ZTIGather">
<![LOG[No parameters had non-blank values, adding dummy query clause to force no records.]LOG]!><time="05:54:16.000+000" date="01-20-2013" component="ZTIGather" context="" type="1" thread=""
file="ZTIGather">
<![LOG[About to issue SQL statement: SELECT * FROM LocationSettings WHERE 0=1]LOG]!><time="05:54:16.000+000" date="01-20-2013" component="ZTIGather" context="" type="1" thread="" file="ZTIGather">
<![LOG[Successfully queried the database.]LOG]!><time="05:54:16.000+000" date="01-20-2013" component="ZTIGather" context="" type="1" thread="" file="ZTIGather">
<![LOG[Record count from SQL = 0.]LOG]!><time="05:54:16.000+000" date="01-20-2013" component="ZTIGather" context="" type="1" thread="" file="ZTIGather">
And here's the data in the SQL DB.
![]()
Thanks -
Chris