Andrew,
Thanks for the quick response.
The query should be taking the firstname.lastname from our internal db and comparing it to the UserName field in the DNN db. I have to concatenate the DomainName on to the LANUserID since that is how DNN records it in the DNN db. We do not use the DomainName in our internal db.
However I am still having issues. Here is the error I am getting as of now: (User Name changed to "first.last" for anonymity...) It is grabbing the first entry in our db and trying to do a convert at that point. Both fields in each db are nvchar, 100. Not sure what else to do at this point. Will keep plugging away and hopefully I can figure it out soon.
An error has occurred.
DotNetNuke.Services.Exceptions.ModuleLoadException: Syntax error converting the nvarchar value 'anthony.truong' to a column of data type int. ---> System.Data.SqlClient.SqlException: Syntax error converting the nvarchar value 'first.last' to a column of data type int. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) at System.Data.SqlClient.SqlDataReader.HasMoreRows() at System.Data.SqlClient.SqlDataReader.ReadInternal(Boolean setTimeout) at System.Data.SqlClient.SqlDataReader.Read() at System.Data.Common.DataAdapter.FillLoadDataRow(SchemaMapping mapping) at System.Data.Common.DataAdapter.FillFromReader(DataSet dataset, DataTable datatable, String srcTable, DataReaderContainer dataReader, Int32 startRecord, Int32 maxRecords, DataColumn parentChapterColumn, Object parentChapterValue) at System.Data.Common.DataAdapter.Fill(DataTable[] dataTables, IDataReader dataReader, Int32 startRecord, Int32 maxRecords) at System.Data.Common.LoadAdapter.FillFromReader(DataTable[] dataTables, IDataReader dataReader, Int32 startRecord, Int32 maxRecords) at System.Data.DataTable.Load(IDataReader reader, LoadOption loadOption, FillErrorEventHandler errorHandler) at System.Data.DataTable.Load(IDataReader reader) at DotNetNuke.Modules.Reports.ReportsController.ExecuteReport(ReportInfo objReport, Int32 cacheDuration, Boolean bypassCache, SqlParameter[] parameters) at DotNetNuke.Modules.Reports.VisualizerControlBase.EnsureResults() at DotNetNuke.Modules.Reports.VisualizerControlBase.get_ReportResults() at DotNetNuke.Modules.Reports.Visualizers.Grid.Visualizer.DataBind() at DotNetNuke.Modules.Reports.Visualizers.Grid.Visualizer.Page_Load(Object sender, EventArgs e) --- End of inner exception stack trace ---
Thanks Again,
Dean