PC Review


Reply
Thread Tools Rate Thread

Creating a database using IDbCommand

 
 
David Thielen
Guest
Posts: n/a
 
      17th Oct 2008
Hi;

If I want to run a script that creates a databse using
IDbCommand.ExecuteNonQuery - 2 questions:

1) What database do I connect to? I assume master.

2) How do I start the script? I think it's:

CREATE DATABASE [xxxAutoTag]
GO

USE [xxxAutoTag]
GO

SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[Schedule](
....

thanks - dave

david@at-at-(E-Mail Removed)
Windward Reports -- http://www.WindwardReports.com
me -- http://dave.thielen.com

Cubicle Wars - http://www.windwardreports.com/film.htm
 
Reply With Quote
 
 
 
 
David Thielen
Guest
Posts: n/a
 
      17th Oct 2008
The answer is yes & yes.

thanks - dave


On Thu, 16 Oct 2008 18:10:47 -0600, David Thielen
<(E-Mail Removed)> wrote:

>Hi;
>
>If I want to run a script that creates a databse using
>IDbCommand.ExecuteNonQuery - 2 questions:
>
>1) What database do I connect to? I assume master.
>
>2) How do I start the script? I think it's:
>
>CREATE DATABASE [xxxAutoTag]
>GO
>
>USE [xxxAutoTag]
>GO
>
>SET ANSI_NULLS ON
>GO
>SET QUOTED_IDENTIFIER ON
>GO
>SET ANSI_PADDING ON
>GO
>CREATE TABLE [dbo].[Schedule](
>...
>
>thanks - dave
>
>david@at-at-(E-Mail Removed)
>Windward Reports -- http://www.WindwardReports.com
>me -- http://dave.thielen.com
>
>Cubicle Wars - http://www.windwardreports.com/film.htm



david@at-at-(E-Mail Removed)
Windward Reports -- http://www.WindwardReports.com
me -- http://dave.thielen.com

Cubicle Wars - http://www.windwardreports.com/film.htm
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Usually should we call IDbCommand.Dispose() after done with a IDbCommand? Ryan Liu Microsoft C# .NET 2 6th Apr 2008 04:32 PM
Weird IDbCommand.Parameters[] design? Massimo Microsoft ADO .NET 2 10th Jan 2006 12:43 PM
Creating IDbDataAdapter from IDbConnection/IDbCommand Aguyngueran Microsoft ADO .NET 0 10th May 2004 10:37 AM
Using IDbCommand.Prepare() Soren Staun Jorgensen Microsoft ADO .NET 5 17th Nov 2003 03:32 AM
IDbCommand.ExecuteNonQuery Lloyd Dupont Microsoft ADO .NET 1 14th Jul 2003 07:34 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:37 PM.