I wrote a c#-program to manage a databasefile.
what i want to do :
Check if an certain table exists in my database-file (Access-DB).
If it does not exists, create a new table and insert 3 rows.
For this task, i wrote a sql-script which runs fine when started from
Running ExecuteNonQuery from my program failed, because only Update,Insert
and Delete is allowed.
How can i run this script using OLEDB ?
Thanks in advance !
Jost
Next, I think it sounds very strange. Not that I know Access, but there is
little reason why you should not be able to create a table through
ExecuteNonQuery. But I think you are better off asking in an Access
forum. Don't forget to include the exact text of the error message!
--
Erland Sommarskog, SQL Server MVP, esq...@sommarskog.se
Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
SQL 2000: http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
"Jost Lindemann" <lindema...@t-online.de> wrote in message
news:i2jivs$c5o$03$1...@news.t-online.com...
You're welcome.
>
>
"Kenneth A. Larsen" <Lar...@verizon.net> wrote in message
news:EA474CB8-17A5-4741...@microsoft.com...
--Mary
"Kenneth A. Larsen" <Lar...@verizon.net> wrote in message
news:434BC20A-26CE-41CD...@microsoft.com...
"Mary Chipman [MSFT]" <mc...@online.microsoft.com> wrote in message
news:41o6565kc6arjtdld...@4ax.com...
You're welcome!
>>
"Kenneth A. Larsen" <Lar...@verizon.net> wrote in message
news:04F5259B-42E6-4EC7...@microsoft.com...
"Kenneth A. Larsen" <Lar...@verizon.net> wrote in message
news:1D0DDB48-FDDF-4B72...@microsoft.com...
"Kenneth A. Larsen" <Lar...@verizon.net> wrote in message
news:D6800157-6AF5-4EFD...@microsoft.com...
"Kenneth A. Larsen" <Lar...@verizon.net> wrote in message
news:E4927307-85AC-4D43...@microsoft.com...
"Kenneth A. Larsen" <Lar...@verizon.net> wrote in message
news:8E19B5DD-BA51-4E2C...@microsoft.com...