<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Search results matching tag 'sql'</title><link>http://forums.asp.net/search/SearchResults.aspx?q=&amp;tag=sql&amp;orTags=0&amp;o=DateDescending</link><description>Search results matching tag 'sql'</description><dc:language>en-US</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>An SQL aggregation query</title><link>http://forums.asp.net/thread/3570092.aspx</link><pubDate>Thu, 17 Dec 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3570092</guid><dc:creator>DLL</dc:creator><description>&lt;div&gt;
&lt;p&gt;Hi there,&lt;/p&gt;
&lt;p&gt;I have an table with 2 columns, a date column and an int column and
I want to sum the int columns per month where a month start on the 15th and end on the 14th&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;So the first month in the results will be from today to the 14th (14th of Jan in this case). The second month will be
to the 14th of the next month (Feb in this case).
The last month in the result will be from the 15th to the end date in
the table, so it&amp;#39;s possible that the final month could be 2 days of data if for example the last date in the table is Sep17th&lt;br /&gt;&lt;/p&gt;Makes sense?&lt;/div&gt;</description></item><item><title>Linq - SQL to GridView</title><link>http://forums.asp.net/thread/3571402.aspx</link><pubDate>Thu, 17 Dec 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3571402</guid><dc:creator>lookitstony</dc:creator><description>&lt;p&gt;I guess I am having a hard time understanding this. I create the Grid view and I link it to the SQL-Linq datacontext and if I select all fields then the gridview works. I then cut down what fields I want to show directly in the grid view. Now I go into my Linqdatasource and moditfy the selecting event to build my custom &amp;quot;where&amp;quot; clause and everything still works. Now instead of doing r.paymentstatus and getting a &amp;quot;1&amp;quot; I want to do r.tblpaymentstatus.paymentstatus so it retrieves the actual status instead of the number. As long as I do my select for every field in the datasource it works but if I limit down to only the fields I have showing in the gridview I get errors. They range from &amp;quot;anonymous&amp;lt;2&amp;gt; type mismatch&amp;quot; to another long error I will put below.&lt;/p&gt;&lt;p&gt;Goal: To select what fields i want to view and allow them to be editable. I want the tables that are referenced to show the data instead of the reference number. I am also thinkign about making template fields so I can arrange the data differently.. How can I get the r.table.field to populate instead of r.field inside a databound control in the template?&lt;/p&gt;&lt;p&gt;ERROR:System.Web.HttpException: DataBinding: 
&amp;#39;&amp;lt;&amp;gt;f__AnonymousType0`9[[System.Nullable`1[[System.DateTime, mscorlib, 
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]], mscorlib, 
Version=2.0.0.0, Culture=neutral, 
PublicKeyToken=b77a5c561934e089],[System.String, mscorlib, Version=2.0.0.0, 
Culture=neutral, 
PublicKeyToken=b77a5c561934e089],[System.Nullable`1[[System.DateTime, mscorlib, 
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]], mscorlib, 
Version=2.0.0.0, Culture=neutral, 
PublicKeyToken=b77a5c561934e089],[System.Nullable`1[[System.DateTime, mscorlib, 
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]], mscorlib, 
Version=2.0.0.0, Culture=neutral, 
PublicKeyToken=b77a5c561934e089],[System.Nullable`1[[System.Decimal, mscorlib, 
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]], mscorlib, 
Version=2.0.0.0, Culture=neutral, 
PublicKeyToken=b77a5c561934e089],[System.String, mscorlib, Version=2.0.0.0, 
Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.String, mscorlib, 
Version=2.0.0.0,...&amp;#39; does not contain a property with the name 
&amp;#39;ReImbursementInfoID&amp;#39;&lt;/p&gt;&lt;p&gt;&lt;pre name="code" class="c-sharp"&gt;C# Code:
protected void ldsReimbursement_Selecting(object sender, LinqDataSourceSelectEventArgs e)
    {
        PatientDataContext db = new PatientDataContext();

        var query = from r in db.tblReimbursementInfos
                    where r.SSN == dvPatient.Rows[3].Cells[1].Text
                    select new
                      {
                          Delivery_Date = r.Delivery_Date,
                          DeliveryType = r.tlkpDeliveryType.DeliveryType,
                          EDC = r.EDC,
                          EnrollmentDate = r.EnrollmentDate,
                          Physician_Reimbursement = r.Physician_Reimbursement,
                          PaymentStatus = r.tblPaymentStatus.PaymentStatus,
                          Notes = r.Notes,
                          DeliveryTypeID = r.DeliveryTypeID,
                          EnteredBy = r.EnteredBy


                      };

        e.Result = query;
    }&lt;/pre&gt;&lt;br /&gt; &lt;pre name="code" class="c-sharp"&gt;ASP.NET Code:
&amp;lt;asp:View ID=&amp;quot;vwEnrollment&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;
                    &amp;lt;asp:GridView ID=&amp;quot;gvReimbursement&amp;quot; runat=&amp;quot;server&amp;quot; AutoGenerateColumns=&amp;quot;False&amp;quot; 
                        CellPadding=&amp;quot;4&amp;quot; DataKeyNames=&amp;quot;ReImbursementInfoID&amp;quot; 
                        DataSourceID=&amp;quot;ldsReimbursement&amp;quot; ForeColor=&amp;quot;#333333&amp;quot; GridLines=&amp;quot;None&amp;quot;&amp;gt;
                        &amp;lt;RowStyle BackColor=&amp;quot;#EFF3FB&amp;quot; /&amp;gt;
                        &amp;lt;Columns&amp;gt;
                            
                            &amp;lt;asp:BoundField DataField=&amp;quot;Delivery_Date&amp;quot; HeaderText=&amp;quot;Delivery&amp;quot; /&amp;gt;
                            &amp;lt;asp:BoundField DataField=&amp;quot;DeliveryType&amp;quot; HeaderText=&amp;quot;DeliveryType&amp;quot; /&amp;gt;
                            &amp;lt;asp:BoundField DataField=&amp;quot;EDC&amp;quot; HeaderText=&amp;quot;EDC&amp;quot;/&amp;gt;
                            &amp;lt;asp:BoundField DataField=&amp;quot;Physician_Reimbursement&amp;quot; HeaderText=&amp;quot;Physician_Reimbursement&amp;quot;/&amp;gt;
                            &amp;lt;asp:BoundField DataField=&amp;quot;EnrollmentDate&amp;quot; HeaderText=&amp;quot;Enrolled&amp;quot; /&amp;gt;
                            &amp;lt;asp:BoundField DataField=&amp;quot;Notes&amp;quot; HeaderText=&amp;quot;Notes&amp;quot; /&amp;gt;
                            &amp;lt;asp:BoundField DataField=&amp;quot;PaymentStatus&amp;quot; HeaderText=&amp;quot;Payment Status&amp;quot; /&amp;gt;
                            &amp;lt;asp:BoundField DataField=&amp;quot;DeliveryTypeID&amp;quot; HeaderText=&amp;quot;DeliveryTypeID&amp;quot; /&amp;gt;
                            &amp;lt;asp:BoundField DataField=&amp;quot;EnteredBy&amp;quot; HeaderText=&amp;quot;Entered By&amp;quot; /&amp;gt;
                            
                        &amp;lt;/Columns&amp;gt;
                        &amp;lt;FooterStyle BackColor=&amp;quot;#507CD1&amp;quot; Font-Bold=&amp;quot;True&amp;quot; ForeColor=&amp;quot;White&amp;quot; /&amp;gt;
                        &amp;lt;PagerStyle BackColor=&amp;quot;#2461BF&amp;quot; ForeColor=&amp;quot;White&amp;quot; HorizontalAlign=&amp;quot;Center&amp;quot; /&amp;gt;
                        &amp;lt;SelectedRowStyle BackColor=&amp;quot;#D1DDF1&amp;quot; Font-Bold=&amp;quot;True&amp;quot; ForeColor=&amp;quot;#333333&amp;quot; /&amp;gt;
                        &amp;lt;HeaderStyle BackColor=&amp;quot;#507CD1&amp;quot; Font-Bold=&amp;quot;True&amp;quot; ForeColor=&amp;quot;White&amp;quot; /&amp;gt;
                        &amp;lt;EditRowStyle BackColor=&amp;quot;#2461BF&amp;quot; /&amp;gt;
                        &amp;lt;AlternatingRowStyle BackColor=&amp;quot;White&amp;quot; /&amp;gt;
                    &amp;lt;/asp:GridView&amp;gt;&lt;/pre&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt; I have changed the code so many times tryign to figure out how to get this to work.. so this may not look right because it has been completely mutilated.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Thanks for the help if anyone can help!&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: error: 26 - Error Locating Server/Instance Specified</title><link>http://forums.asp.net/thread/3562901.aspx</link><pubDate>Sun, 13 Dec 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3562901</guid><dc:creator>shantanu.gupta</dc:creator><description>&lt;div&gt;
&lt;p&gt;Here is the resolution to error 26. Check this video to configure your error.&amp;nbsp;It was a real headache for me&amp;nbsp; for a long time. But this worked.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://techpint.com/programming/error-26-%E2%80%93-error-locating-serverinstance-specified-sql-server" rel="nofollow" target="_new"&gt;http://techpint.com/programming/error-26-%E2%80%93-error-locating-serverinstance-specified-sql-server&lt;/a&gt;&lt;/p&gt;
&lt;div&gt;
&lt;p&gt;&lt;a href="http://techpint.com/programming/error-26-%E2%80%93-error-locating-serverinstance-specified-sql-server" rel="nofollow" target="_new"&gt;&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;</description></item><item><title>2008 sqlserver express ssmse w/ tools download</title><link>http://forums.asp.net/thread/3558103.aspx</link><pubDate>Thu, 10 Dec 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3558103</guid><dc:creator>Bob MacNeel</dc:creator><description>&lt;p&gt;I&amp;#39;ve downloaded VWD 2008 express and SQL server 2008 express and they are both working OK. I&amp;#39;ve been trying to download SQL server 2008 SSMSE with tools and cannot find any link that works, including all of the microsoft links. Can anyone please&amp;nbsp;recommend a link that works OK for them&amp;nbsp;&lt;/p&gt;</description></item><item><title>Data Formats</title><link>http://forums.asp.net/thread/3555884.aspx</link><pubDate>Wed, 09 Dec 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3555884</guid><dc:creator>Yanayaya</dc:creator><description>&lt;p&gt;Please forgive me, this MAY be a sql problem but I have to check as there may be something I can do in ASP.NET to sort this out.&lt;/p&gt;
&lt;p&gt;I have a table that has data input from my asp webform.&lt;/p&gt;
&lt;p&gt;The first data&amp;nbsp;entry is a date field.&amp;nbsp; This data is input via a calendar extender via AJAX.&amp;nbsp; I display the data from this eable in a gridview however the data that is input into date&amp;nbsp;and diplayed as 01/01/2009 00:00:00&lt;/p&gt;
&lt;p&gt;How can I ensure it just shows the date and not the time extensions on the end.&lt;/p&gt;
&lt;p&gt;I think my next question may be SQL related.&amp;nbsp; I have a &amp;quot;carriage cost&amp;quot; drop down in my form that gets it&amp;#39;s data from a table.&amp;nbsp; The data type is &amp;quot;Money&amp;quot; however it is dispalying all values as 4.9900 when it should just read 4.99.&lt;/p&gt;
&lt;p&gt;Any ideas and my apologies if this has crossed into the wrong place. I am just a bit unsure.&lt;/p&gt;</description></item><item><title>sql problem &amp;quot;select x as y from table&amp;quot;</title><link>http://forums.asp.net/thread/3553391.aspx</link><pubDate>Tue, 08 Dec 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3553391</guid><dc:creator>anguswong</dc:creator><description>&lt;p&gt;&amp;quot;select x as y from table&amp;quot; is easy. but what if i want to convert the name of two coolumns altogether?&lt;/p&gt;&lt;p&gt;say:&amp;nbsp; columnname-x to name-y&amp;nbsp; and columnname-a to name-b?&lt;/p&gt;&lt;p&gt;how should i write in the sql?&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Problem formating dates</title><link>http://forums.asp.net/thread/3555115.aspx</link><pubDate>Tue, 08 Dec 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3555115</guid><dc:creator>rich_at_delta</dc:creator><description>&lt;p&gt;I have read all sorts of help files on formatting the date but I am getting no where. Can you help?&lt;/p&gt;
&lt;p&gt;I have a web service that gets some parameters and builds a SQL string. One of the values is a date/time, which I want in the following format:&lt;/p&gt;
&lt;p&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&amp;quot;yyyy-MMM-dd HH:mm:ss.fff&amp;quot; i.e. Month as 3 letters (preferrably) but more importantly, seconds only to 3 decimals&lt;br /&gt;It is currently doing precision down to 7 decimals.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have tried all manner of &amp;quot;brute force&amp;quot; methods to try and get it to format it, but it won&amp;#39;t.&lt;/p&gt;
&lt;p&gt;If I use -&amp;nbsp; &amp;quot;yyyy-MMM-dd HH:mm:ss&amp;quot; - it almost does it - Result - &amp;quot;2009-12-09 13:45:22&amp;quot;&lt;/p&gt;
&lt;p&gt;If I use -&amp;nbsp; &amp;quot;yyyy-MMM-dd HH:mm:ss.fff&amp;quot; - it gives me - Result - &amp;quot;2009-12-09 13:45:22.1230000&amp;quot;&lt;br /&gt;&lt;br /&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;@&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &amp;amp; col.ColumnName).Value = Now.ToString(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;yyyy-MMM-dd HH:mm:ss.fff&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;)&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;Partial code:&lt;br /&gt;&amp;nbsp;&amp;nbsp; cmd.Parameters(&lt;/p&gt;</description></item><item><title>Multiple Scope_Identity() Values</title><link>http://forums.asp.net/thread/3552135.aspx</link><pubDate>Mon, 07 Dec 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3552135</guid><dc:creator>Moon Unit</dc:creator><description>&lt;p&gt;This may be more of a SQL question but I&amp;#39;d like to rule out my .net code first.&amp;nbsp; I&amp;#39;m trying to retrieve multiple Scope_Identity() values from multiple insert statements in a single class:&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;pre name="code" class="vb.net"&gt;    Protected Sub ASPxButtonSubmit_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles ASPxButtonSubmit.Click

        &amp;#39;------------------------------------Insert student info into tblStudents, return studentID and append to querystring
        Dim studentsAdapter As New SummerTableAdapters.tblStudentsTableAdapter
        Dim new_studentID As Integer = Convert.ToInt32(studentsAdapter.InsertStudent( _
                                                       StudentName1.LastName, StudentName1.FirstName, StudentName1.MiddleInitial, _
                                                       StudentAddress1.Address1, StudentAddress1.Address2, StudentAddress1.City, _
                                                       StudentAddress1.State, StudentAddress1.Country, StudentAddress1.PostCode, &amp;quot;3/25/1998&amp;quot;))

        &amp;#39;------------------------------------Generate paymentID in tblPayment
        Dim paymentIDAdapter As New SummerTableAdapters.tblPaymentTableAdapter
        Dim new_paymentID As Integer = paymentIDAdapter.GeneratePaymentID(&amp;quot;Cash&amp;quot;)

        &amp;#39;------------------------------------Redirect to Classes page w/ studentID and PaymentID in query string
        Response.Redirect(&amp;quot;Classes.aspx?studentID=&amp;quot; &amp;amp; new_studentID &amp;amp; &amp;quot;&amp;amp;paymentID=&amp;quot; &amp;amp; new_paymentID)


    End Sub
&lt;/pre&gt;&lt;p&gt;&lt;br /&gt; I am using TableAdapters with the following code:&lt;/p&gt;&lt;p&gt;studentsAdapter&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;pre name="code" class="sql"&gt;INSERT INTO [tblStudents] ([LastName], [FirstName], [MiddleInitial], [Address1], [Address2], [City], [State], [Country], [PostCode], [DateOfBirth]) VALUES (@LastName, @FirstName, @MiddleInitial, @Address1, @Address2, @City, @State, @Country, @PostCode, @DateOfBirth);

SELECT SCOPE_IDENTITY()&lt;br /&gt;&lt;/pre&gt;&lt;p&gt;&lt;br /&gt; paymentAdapter&lt;/p&gt;&lt;p&gt;&lt;pre name="code" class="sql"&gt;INSERT INTO tblPayment (PaymentType) VALUES (@PaymentType); 

SELECT SCOPE_IDENTITY()&lt;/pre&gt;&lt;/p&gt;&lt;p&gt;The first SELECT SCOPE_IDENTITY() is returning the correct value (the autoID field) however the second always returns 1.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Help creating a dynamic sql query in my tableAdapter</title><link>http://forums.asp.net/thread/3552860.aspx</link><pubDate>Mon, 07 Dec 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3552860</guid><dc:creator>Mattieshark</dc:creator><description>&lt;p&gt;I have a string variable &amp;quot;@symptomesID&amp;quot; thats sends a list of ID&amp;#39;s ( 1,2,3 or 2,3,6,7,33 ) as you can see it needs to be dynamic sometimes i need te send 1 id somethings i need to send more.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Problem is that in my WHERE the pk_symptomsId is a INT and is expecting a INT and not a STRING so i always get a Error and i cant figure out how to get this to work&lt;br /&gt;&lt;/p&gt;&lt;p&gt;i found somewhere on the internet that someone was explaning what i need to do but i cant get it to work in my tableAdapter query&lt;/p&gt;&lt;p&gt;&lt;a href="http://forums.whirlpool.net.au/forum-replies-archive.cfm/928435.html"&gt;http://forums.whirlpool.net.au/forum-replies-archive.cfm/928435.html&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;this is my query:&lt;br /&gt;&lt;/p&gt;&lt;p&gt;SELECT&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tblDiseases.diseaseName, tblDiseases.pk_diseaseId AS diseaseID&lt;br /&gt;FROM&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tblSymptoms INNER JOIN&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tblDiseaseSymptom ON tblSymptoms.pk_symptomsId = tblDiseaseSymptom.fk_SymptomId INNER JOIN&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tblDiseases ON tblDiseaseSymptom.fk_DiseaseId = tblDiseases.pk_diseaseId&lt;br /&gt;WHERE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (tblSymptoms.pk_symptomsId IN(@symptomesID))&lt;br /&gt;GROUP BY tblDiseases.pk_diseaseId, tblDiseases.diseaseName&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;if&amp;nbsp; i run this query it works but then its not dynamic and i manualy entered the ID&amp;#39;s&lt;br /&gt;&lt;/p&gt;&lt;p&gt;SELECT&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tblDiseases.diseaseName, tblDiseases.pk_diseaseId AS diseaseID&lt;br /&gt;
FROM&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tblSymptoms INNER JOIN&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tblDiseaseSymptom ON tblSymptoms.pk_symptomsId = tblDiseaseSymptom.fk_SymptomId INNER JOIN&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tblDiseases ON tblDiseaseSymptom.fk_DiseaseId = tblDiseases.pk_diseaseId&lt;br /&gt;
WHERE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (tblSymptoms.pk_symptomsId IN (1,2,3))&lt;br /&gt;
GROUP BY tblDiseases.pk_diseaseId, tblDiseases.diseaseName&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;hope you can help me out! &lt;/p&gt;&lt;p&gt;thx&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: How to count Page_Loads and check if there's data in a table</title><link>http://forums.asp.net/thread/3552117.aspx</link><pubDate>Mon, 07 Dec 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3552117</guid><dc:creator>markgr26@hotmail.com</dc:creator><description>&lt;p&gt;It looks like you do know how to query the database because you&amp;#39;re using SqlConnection and SqlCommand in the code&amp;nbsp;snippet you posted originally.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You need to look at some basic T-Sql skills for querying data.&amp;nbsp; Get your query in&amp;nbsp;a stored proc (if you&amp;#39;re using Stored&amp;nbsp;Procs to query) and execute Stored Proc using SqlCommand.&amp;nbsp; Read up about the SqlCommand.ExecScalar() method - this will prob. be useful to you.&lt;/p&gt;</description></item></channel></rss>