Hi Mike,
"Opening This Will Run the Following SQL Command" Message When You Open a
Word Document Microsoft Knowledge Base Article - 825765
http://support.microsoft.com/default.aspx?scid=kb;en-us;825765
SUMMARY
When you open a Microsoft Word mail merge main document that is linked to a
data source, you may receive the following message:
Opening this will run the following SQL command:
SELECT * FROM C:\file_name.log
Data from your database will be placed in the document. Do you want to
continue?
Important This article contains information about modifying the registry.
Before you modify the registry, make sure to back it up and make sure that
you understand how to restore the registry if a problem occurs. For
information about how to back up, restore, and edit the registry, click the
following article number to view the article in the Microsoft Knowledge
Base:
256986 Description of the Microsoft Windows Registry
MORE INFORMATION
Warning If you use Registry Editor incorrectly, you may cause serious
problems that may require you to reinstall your operating system. Microsoft
cannot guarantee that you can solve problems that result from using
Registry Editor incorrectly. Use Registry Editor at your own risk.
This message helps protect you from unintentionally sending data to a
malicious user. You can use a VBA macro with the command to suppress this
message: application.DisplayAlerts=wdAlertsNone
However, you must first create the following registry key. Follow the steps
for your version of Word.
For Word 2003
HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Word\Options
"SQLSecurityCheck"=dword:00000000
Start Registry Editor.
Locate and then click the following registry key:
HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Word\Options
Click Edit, point to New, and then click DWORD Value.
Under Name, type:
SQLSecurityCheck
Double-click SQLSecurityCheck.
In the Value data box, type:
00000000
Click OK.
For Word 2002 Service Pack 3
HKEY_CURRENT_USER\Software\Microsoft\Office\10.0\Word\Options
"SQLSecurityCheck"=dword:00000000
To do this, follow these steps:
Start Registry Editor.
Locate and then click the following registry key:
HKEY_CURRENT_USER\Software\Microsoft\Office\10.0\Word\Options
Click Edit, point to New, and then click DWORD Value.
Under Name, type:
SQLSecurityCheck
Double-click SQLSecurityCheck.
In the Value data box, type:
00000000
Click OK.
Please let me know has this helped You...
Thank You...
Raghu...
This posting is provided "AS IS" with no warranties, and confers no rights.