<?xml version="1.0" encoding="iso-8859-1"?>
<rss version="2.0" xml:base="http://www.red-gate.com/MessageBoard/" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>Red Gate forums</title>
 <link>http://www.red-gate.com/MessageBoard/</link>
 <description>Product Support and Discussion</description>
 <language>en</language>
 <copyright>Copyright Red Gate Software Ltd</copyright>
 <managingEditor>support@red-gate.com</managingEditor>
 <webMaster>support@red-gate.com</webMaster>
 <docs>http://blogs.law.harvard.edu/tech/rss</docs>
 <ttl>60</ttl>
 <lastBuildDate>Tue, 16 Mar 2010 05:29:55 GMT</lastBuildDate>
 <pubDate>Tue, 16 Mar 2010 05:29:55 GMT</pubDate>
 <image>
  <url>http://www.red-gate.com/messageboard/templates/subRed/images/logo_phpBB.gif</url>
  <title>Red Gate forums</title>
  <link>http://www.red-gate.com/MessageBoard/</link>
 </image>
 <item>
  <title>help with pinvoke and variant return type</title>
  <link>http://www.red-gate.com/MessageBoard/viewtopic.php?p=38699#38699</link>
  <description>Could anyone please help me write a pinvoke statement for this function?
&lt;br /&gt;

&lt;br /&gt;
[id(0x60030004)]
&lt;br /&gt;
HRESULT AFAccountPayment(
&lt;br /&gt;
                [in] VARIANT coForm, 
&lt;br /&gt;
                [in, out, optional] BSTR* billlist, 
&lt;br /&gt;
                [out, retval] VARIANT* );
&lt;br /&gt;

&lt;br /&gt;
I have tried a few things but it's not working. I don't know how to code the VARIAN* retval properly. 
&lt;br /&gt;
Mostly i get an error: PInvoke restriction: cannot return variants.
&lt;br /&gt;

&lt;br /&gt;
Here is what i have tried so far.
&lt;br /&gt;
&amp;lt;DllImport(&amp;quot;c:\windows\system32\nctk.dll&amp;quot;)&amp;gt; _
&lt;br /&gt;
    Public Shared Function AFAccountPayment(ByVal coForm As Object, Optional ByRef billList As String = &amp;quot;&amp;quot;) As Object
&lt;br /&gt;
    End Function
&lt;br /&gt;

&lt;br /&gt;
    &amp;lt;DllImport(&amp;quot;c:\windows\system32\nctk.dll&amp;quot;)&amp;gt; _
&lt;br /&gt;
    Public Shared Function AFAccountPayment(&amp;lt;Out(), MarshalAs(UnmanagedType.Struct)&amp;gt; ByVal coForm As Object, &amp;lt;[In](), [Out](), MarshalAs(UnmanagedType.VBByRefStr)&amp;gt; Optional ByRef billList As String = Nothing) As Object
&lt;br /&gt;
    End Function
&lt;br /&gt;

&lt;br /&gt;
Thank you for any help.</description>
  <category>PInvoke.Net</category>
  <comments>http://www.red-gate.com/MessageBoard/posting.php?mode=reply&amp;t=10751</comments>
  <dc:creator>fhanggi</dc:creator>
  <pubDate>Mon, 15 Mar 2010 22:30:50 GMT</pubDate>
  <guid isPermaLink="true">http://www.red-gate.com/MessageBoard/viewtopic.php?p=38699#38699</guid>
 </item>
 <item>
  <title>format formally case-insensitive code</title>
  <link>http://www.red-gate.com/MessageBoard/viewtopic.php?p=38698#38698</link>
  <description>We're moving from a case-insensitive to a case-sensitive SQL 2008 platform.  We are not in control of the new platform and need a quick way to do a one-time update to not only keywords (which I know Refactor can already do), but also our own variables.  We own Redgate Refactor, Prompt, Compare, and Backup but cannot find a way to auto-format our existing stored procs to match custom code to look like our declare variables.</description>
  <category>SQL Prompt 4</category>
  <comments>http://www.red-gate.com/MessageBoard/posting.php?mode=reply&amp;t=10750</comments>
  <dc:creator>delux</dc:creator>
  <pubDate>Mon, 15 Mar 2010 22:02:39 GMT</pubDate>
  <guid isPermaLink="true">http://www.red-gate.com/MessageBoard/viewtopic.php?p=38698#38698</guid>
 </item>
 <item>
  <title>Unable to decompile ASP.NET precompiled site</title>
  <link>http://www.red-gate.com/MessageBoard/viewtopic.php?p=38697#38697</link>
  <description>Hi,
&lt;br /&gt;

&lt;br /&gt;
Am consulting for a company whose source code got taken down by a malicious developer, they're left with only the contents of the web server ie; the published ASP.NET website files.  The structure seems to be that each aspx page's code behind is compiled into a separate dll (of the format App_Web_{aspxfile}.{some id}.dll in addition to a number of class library DLLs....while the class libraries reflect easily, the decompilation of the code behind files doesn't go through, with the following errors (amongst others, ton of files! But the following are common)
&lt;br /&gt;

&lt;br /&gt;
System.NullReferenceException: Object reference not set to an instance of an object. ---&amp;gt; SmartAssembly.SmartExceptionsCore.UnhandledException: SmartExceptionsCore.UnhandledException @ 2592, offset:270 ---&amp;gt; SmartAssembly.SmartExceptionsCore.UnhandledException: SmartExceptionsCore.UnhandledException @ 2587, offset:340 ---&amp;gt; SmartAssembly.SmartExceptionsCore.UnhandledException: SmartExceptionsCore.UnhandledException @ 2584, offset:4181 ---&amp;gt; SmartAssembly.SmartExceptionsCore.UnhandledException: SmartExceptionsCore.UnhandledException @ 2583, offset:672
&lt;br /&gt;

&lt;br /&gt;
OR 
&lt;br /&gt;

&lt;br /&gt;
System.IndexOutOfRangeException: Index was outside the bounds of the array. ---&amp;gt; SmartAssembly.SmartExceptionsCore.UnhandledException: SmartExceptionsCore.UnhandledException @ 6043, offset:41 ---&amp;gt; SmartAssembly.SmartExceptionsCore.UnhandledException: SmartExceptionsCore.UnhandledException @ 6031, offset:67 ---&amp;gt; SmartAssembly.SmartExceptionsCore.UnhandledException: SmartExceptionsCore.UnhandledException @ 6017, offset:27 ---&amp;gt; SmartAssembly.SmartExceptionsCore.UnhandledException: SmartExceptionsCore.UnhandledException @ 2927, offset:362 ---&amp;gt; SmartAssembly.SmartExceptionsCore.UnhandledException: SmartExceptionsCore.UnhandledException @ 2583, offset:445
&lt;br /&gt;

&lt;br /&gt;
Any ideas would help!  Don't need a perfect version of the source, but need to get at the logic to recode a few functions without starting from scratch if possible.
&lt;br /&gt;

&lt;br /&gt;
Thanks and best regards,
&lt;br /&gt;
Nikhil</description>
  <category>.Net Reflector and .NET Reflector Pro</category>
  <comments>http://www.red-gate.com/MessageBoard/posting.php?mode=reply&amp;t=10749</comments>
  <dc:creator>Nikhil Soneja</dc:creator>
  <pubDate>Mon, 15 Mar 2010 21:30:03 GMT</pubDate>
  <guid isPermaLink="true">http://www.red-gate.com/MessageBoard/viewtopic.php?p=38697#38697</guid>
 </item>
 <item>
  <title>Format SQL Fails with FOR XML query</title>
  <link>http://www.red-gate.com/MessageBoard/viewtopic.php?p=38696#38696</link>
  <description>SQL Prompt 4.0.4.14 fails with an error saying:
&lt;br /&gt;

&lt;br /&gt;
&amp;quot;SQL Prompt was unable to format this script because some syntax errors were found while it was being parsed. These errors have been highlighted.&amp;quot;
&lt;br /&gt;

&lt;br /&gt;
with this valid code:
&lt;br /&gt;

&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;SELECT &amp;#40;SELECT 'Test' FOR XML PATH&amp;#40;''&amp;#41;, TYPE&amp;#41;.value&amp;#40;'.&amp;#91;1&amp;#93;','varchar&amp;#40;max&amp;#41;'&amp;#41; AS Test&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;</description>
  <category>SQL Prompt 4</category>
  <comments>http://www.red-gate.com/MessageBoard/posting.php?mode=reply&amp;t=10748</comments>
  <dc:creator>CodantiM</dc:creator>
  <pubDate>Mon, 15 Mar 2010 19:59:49 GMT</pubDate>
  <guid isPermaLink="true">http://www.red-gate.com/MessageBoard/viewtopic.php?p=38696#38696</guid>
 </item>
 <item>
  <title>New version of Scream?</title>
  <link>http://www.red-gate.com/MessageBoard/viewtopic.php?p=38695#38695</link>
  <description>The  0.8 version of SQL Scream gives the following error &amp;quot;The database snapshot was saved by a newer version of SQL Compare&amp;quot; when attempting to open a snapshot created by either SQL Snapper version 8.1.2.48 or SQL Compare version 8.1.2.63. 
&lt;br /&gt;

&lt;br /&gt;

&lt;br /&gt;
Can the Scream utility be updated to work with the current Compare versions?
&lt;br /&gt;

&lt;br /&gt;
Thanks!</description>
  <category>Scream</category>
  <comments>http://www.red-gate.com/MessageBoard/posting.php?mode=reply&amp;t=10747</comments>
  <dc:creator>owenh</dc:creator>
  <pubDate>Mon, 15 Mar 2010 19:56:18 GMT</pubDate>
  <guid isPermaLink="true">http://www.red-gate.com/MessageBoard/viewtopic.php?p=38695#38695</guid>
 </item>
 <item>
  <title>RE: settings for code generation from SQL Refactor</title>
  <link>http://www.red-gate.com/MessageBoard/viewtopic.php?p=38694#38694</link>
  <description>Yes, that would be a great feature... 
&lt;br /&gt;

&lt;br /&gt;
The best we can suggest for now is the workaround describe in:
&lt;br /&gt;

&lt;br /&gt;
&lt;a href=&quot;http://www.red-gate.com/MessageBoard/viewtopic.php?t=9031&quot; target=&quot;_blank&quot;&gt;http://www.red-gate.com/MessageBoard/viewtopic.php?t=9031&lt;/a&gt;
&lt;br /&gt;

&lt;br /&gt;
Once all the procedures are as per your company's style, developers should use the formatting feature as they develop. However, there's no enforcement, or ability for different developers to have different styles.
&lt;br /&gt;

&lt;br /&gt;
David</description>
  <category>SQL Source Control EAP</category>
  <comments>http://www.red-gate.com/MessageBoard/posting.php?mode=reply&amp;t=10746</comments>
  <dc:creator>David Atkinson</dc:creator>
  <pubDate>Mon, 15 Mar 2010 19:27:26 GMT</pubDate>
  <guid isPermaLink="true">http://www.red-gate.com/MessageBoard/viewtopic.php?p=38694#38694</guid>
 </item>
 <item>
  <title>RE: Version number SVN labels</title>
  <link>http://www.red-gate.com/MessageBoard/viewtopic.php?p=38693#38693</link>
  <description>David,
&lt;br /&gt;

&lt;br /&gt;
My shop uses SVN for source control (not VSTS). I would be happy to help out with testing on SVN. I have several ideas on how I'd like to use SQL Source Control in our multi-dba environment.</description>
  <category>SQL Source Control EAP</category>
  <comments>http://www.red-gate.com/MessageBoard/posting.php?mode=reply&amp;t=10744</comments>
  <dc:creator>paul.price</dc:creator>
  <pubDate>Mon, 15 Mar 2010 19:19:48 GMT</pubDate>
  <guid isPermaLink="true">http://www.red-gate.com/MessageBoard/viewtopic.php?p=38693#38693</guid>
 </item>
 <item>
  <title>settings for code generation from SQL Refactor</title>
  <link>http://www.red-gate.com/MessageBoard/viewtopic.php?p=38692#38692</link>
  <description>When a database is copied into SVN for the first time (initial checkin), it would be great if the settings from SQL Refactor would be used. This way you could have all your code formatted the way you prefer. In the cases where SQL Refactor is not installed, your current defaults are fine.</description>
  <category>SQL Source Control EAP</category>
  <comments>http://www.red-gate.com/MessageBoard/posting.php?mode=reply&amp;t=10746</comments>
  <dc:creator>paul.price</dc:creator>
  <pubDate>Mon, 15 Mar 2010 19:15:21 GMT</pubDate>
  <guid isPermaLink="true">http://www.red-gate.com/MessageBoard/viewtopic.php?p=38692#38692</guid>
 </item>
 <item>
  <title>RE: Creating subfolders for each database</title>
  <link>http://www.red-gate.com/MessageBoard/viewtopic.php?p=38691#38691</link>
  <description>Thank you for your post into the forum.
&lt;br /&gt;

&lt;br /&gt;
To achive your goal, simply use the &amp;lt;database&amp;gt; file location tag to create a sub folder of the database name.
&lt;br /&gt;

&lt;br /&gt;
In the Copy To path simply add the &amp;lt;database&amp;gt; tag to the end of the path, for example:
&lt;br /&gt;

&lt;br /&gt;
\\MyServer\Share\&amp;lt;database&amp;gt;
&lt;br /&gt;

&lt;br /&gt;
This action will create a sub folder of the database name and copy the backup file into the new sub folder.  Further information of the File Location Tags can be found in the SQL Backup Help Information.
&lt;br /&gt;

&lt;br /&gt;
I hope the above answers your question.</description>
  <category>SQL Backup 6</category>
  <comments>http://www.red-gate.com/MessageBoard/posting.php?mode=reply&amp;t=10732</comments>
  <dc:creator>eddie davis</dc:creator>
  <pubDate>Mon, 15 Mar 2010 19:06:22 GMT</pubDate>
  <guid isPermaLink="true">http://www.red-gate.com/MessageBoard/viewtopic.php?p=38691#38691</guid>
 </item>
 <item>
  <title>PROBLEM with the comparison key</title>
  <link>http://www.red-gate.com/MessageBoard/viewtopic.php?p=38690#38690</link>
  <description>I have two databases on different servers.  One is a staging server where updates from the source are applied.  The other is a target server, where updates to the staging server need to be applied.
&lt;br /&gt;

&lt;br /&gt;
&amp;quot;What better application for SQL Data Compare?!&amp;quot; says I.
&lt;br /&gt;

&lt;br /&gt;
So I started to use it to build a synchronization.
&lt;br /&gt;

&lt;br /&gt;
First problem I get, trying to set the comparison key for the first table...
&lt;br /&gt;
Only certain columns have a checkbox, and of course the columns that really distinguish a row in the table do not have check boxes.
&lt;br /&gt;

&lt;br /&gt;
As this is decidedly different than what you show in the documentation, I am assuming there is a bug?  If not a bug, how would I, for example, pick the Model column to be a part of the Comparison key.  (note, changing options in the comparison key drop down list has no effect on the results grid - I could not select Model in either option).  Also note that SQL Compare shows the tables are identical.  Only difference is the staging server is running SQL Server 2K5 and the target is running SQL Server 2K8.
&lt;br /&gt;

&lt;br /&gt;
Is it the data type (nvarchar (max) )?  If it is, there ought to be a way around this, if I were writing a script I'd substring the first 255 characters, for example.  How do I do the equivalent in the GUI?
&lt;br /&gt;

&lt;br /&gt;
This tool would help me tremendously but I have to deal with the data types I am handed from the vendor and cannot change them.  So I need to know how to deal with columns that are nvarchar(max) columns.
&lt;br /&gt;

&lt;br /&gt;
&lt;img src=&quot;http://img193.imageshack.us/img193/8161/datacompare8.jpg&quot; border=&quot;0&quot; /&gt;</description>
  <category>SQL Data Compare 8</category>
  <comments>http://www.red-gate.com/MessageBoard/posting.php?mode=reply&amp;t=10745</comments>
  <dc:creator>randyv</dc:creator>
  <pubDate>Mon, 15 Mar 2010 18:29:22 GMT</pubDate>
  <guid isPermaLink="true">http://www.red-gate.com/MessageBoard/viewtopic.php?p=38690#38690</guid>
 </item>
</channel>
</rss>
