<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Crystal Reports: Invalid Table Number</title>
	<atom:link href="http://not42.com/2006/12/18/crystal-reports-invalid-table-number/feed/" rel="self" type="application/rss+xml" />
	<link>http://not42.com/2006/12/18/crystal-reports-invalid-table-number/</link>
	<description>Not the Ultimate Answer</description>
	<lastBuildDate>Thu, 09 Feb 2012 13:25:07 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Srinivas M. P.</title>
		<link>http://not42.com/2006/12/18/crystal-reports-invalid-table-number/comment-page-1/#comment-9517</link>
		<dc:creator>Srinivas M. P.</dc:creator>
		<pubDate>Tue, 29 Nov 2011 20:31:08 +0000</pubDate>
		<guid isPermaLink="false">http://not42.com/2006/12/18/crystal-reports-invalid-table-number/#comment-9517</guid>
		<description>Thanks I resolved my issue with following code

        Dim crrpt As New crrept
        Dim cninfo As New ConnectionInfo
        Dim tabloginfo As New TableLogOnInfo
        Dim crtable As Table
        Dim crtables As Tables
        crrpt.Load(&quot;crrept.rpt&quot;)

        With cninfo
            .ServerName = &quot;orcl&quot;
            .DatabaseName = &quot;&quot;
            .UserID = &quot;myuserid&quot;
            .Password = &quot;mypassword&quot;
        End With

        crrpt.SetParameterValue(&quot;VI_TABLEID&quot;, &quot;GSCH0000000000001144&quot;)

        crtables = crrpt.Database.Tables


        For Each crtable In crtables
            tabloginfo = crtable.LogOnInfo
            tabloginfo.ConnectionInfo = cninfo
            crtable.ApplyLogOnInfo(tabloginfo)
            crtable.Location = &quot;MYUSERID.PKG_TEMP.&quot; + crtable.Location.Substring(crtable.Location.LastIndexOf(&quot;.&quot;) + 1)
        Next crtable


        With crView
            .ReportSource = crrpt
            .Refresh()
        End With</description>
		<content:encoded><![CDATA[<p>Thanks I resolved my issue with following code</p>
<p>        Dim crrpt As New crrept<br />
        Dim cninfo As New ConnectionInfo<br />
        Dim tabloginfo As New TableLogOnInfo<br />
        Dim crtable As Table<br />
        Dim crtables As Tables<br />
        crrpt.Load(&#8220;crrept.rpt&#8221;)</p>
<p>        With cninfo<br />
            .ServerName = &#8220;orcl&#8221;<br />
            .DatabaseName = &#8220;&#8221;<br />
            .UserID = &#8220;myuserid&#8221;<br />
            .Password = &#8220;mypassword&#8221;<br />
        End With</p>
<p>        crrpt.SetParameterValue(&#8220;VI_TABLEID&#8221;, &#8220;GSCH0000000000001144&#8243;)</p>
<p>        crtables = crrpt.Database.Tables</p>
<p>        For Each crtable In crtables<br />
            tabloginfo = crtable.LogOnInfo<br />
            tabloginfo.ConnectionInfo = cninfo<br />
            crtable.ApplyLogOnInfo(tabloginfo)<br />
            crtable.Location = &#8220;MYUSERID.PKG_TEMP.&#8221; + crtable.Location.Substring(crtable.Location.LastIndexOf(&#8220;.&#8221;) + 1)<br />
        Next crtable</p>
<p>        With crView<br />
            .ReportSource = crrpt<br />
            .Refresh()<br />
        End With</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 42</title>
		<link>http://not42.com/2006/12/18/crystal-reports-invalid-table-number/comment-page-1/#comment-8230</link>
		<dc:creator>42</dc:creator>
		<pubDate>Wed, 19 May 2010 22:14:39 +0000</pubDate>
		<guid isPermaLink="false">http://not42.com/2006/12/18/crystal-reports-invalid-table-number/#comment-8230</guid>
		<description>I think that you have 2 options if the SQL is located on a different server:  Use ADS and create a domain account and authorize that user, or setup a SQL Server user and use SQL authentication rather than Integrated Services.</description>
		<content:encoded><![CDATA[<p>I think that you have 2 options if the SQL is located on a different server:  Use ADS and create a domain account and authorize that user, or setup a SQL Server user and use SQL authentication rather than Integrated Services.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nathan Freeman-Smith</title>
		<link>http://not42.com/2006/12/18/crystal-reports-invalid-table-number/comment-page-1/#comment-8229</link>
		<dc:creator>Nathan Freeman-Smith</dc:creator>
		<pubDate>Wed, 19 May 2010 16:38:45 +0000</pubDate>
		<guid isPermaLink="false">http://not42.com/2006/12/18/crystal-reports-invalid-table-number/#comment-8229</guid>
		<description>Hi, thanks for the information in your post. Im getting the error message you have described and your fix has worked for me before. Im getting the error again on another production server but the problem is the SQL server instance is on another machine so i cant add the ASPNET user to the SQL service instance as you cant add a local user from another machine!

do you know if i can specify the user Crystal reports is using to access the database? or can you think of another way i can get around this!?

Im using similar code to yours above to set the connection info to the new database so im pretty sure its not a code problem as it has worked on a number of other servers.

Best regards,

Nathan</description>
		<content:encoded><![CDATA[<p>Hi, thanks for the information in your post. Im getting the error message you have described and your fix has worked for me before. Im getting the error again on another production server but the problem is the SQL server instance is on another machine so i cant add the ASPNET user to the SQL service instance as you cant add a local user from another machine!</p>
<p>do you know if i can specify the user Crystal reports is using to access the database? or can you think of another way i can get around this!?</p>
<p>Im using similar code to yours above to set the connection info to the new database so im pretty sure its not a code problem as it has worked on a number of other servers.</p>
<p>Best regards,</p>
<p>Nathan</p>
]]></content:encoded>
	</item>
</channel>
</rss>

