Click here to Skip to main content
15,911,035 members
Home / Discussions / C#
   

C#

 
GeneralRe: retrieving http sites (frames) Pin
alexffm16-Jun-05 3:54
alexffm16-Jun-05 3:54 
GeneralCompiling C# Code at runtime Pin
Sumit Domyan16-Jun-05 2:33
Sumit Domyan16-Jun-05 2:33 
GeneralRe: Compiling C# Code at runtime Pin
tom_dx16-Jun-05 2:55
tom_dx16-Jun-05 2:55 
GeneralRe: Compiling C# Code at runtime Pin
S. Senthil Kumar16-Jun-05 3:27
S. Senthil Kumar16-Jun-05 3:27 
GeneralRe: Compiling C# Code at run time Pin
eggie516-Jun-05 5:38
eggie516-Jun-05 5:38 
GeneralRe: Compiling C# Code at run time Pin
S. Senthil Kumar16-Jun-05 5:42
S. Senthil Kumar16-Jun-05 5:42 
QuestionCan someone suggest me style improvements? Pin
Alex Cutovoi16-Jun-05 1:58
Alex Cutovoi16-Jun-05 1:58 
GeneralSQLDMO Create Database in C# Pin
gordsh16-Jun-05 1:39
gordsh16-Jun-05 1:39 
I am trying to create a database with specific DataFiles and LogFiles in C#. For the life of me I can not figure out how to write the statement for the Datafile part. I found some VB6 code on the Microsoft web site and am having diffuculty converting this line:

-----------------------------------------------------------
oDatabase.FileGroups("PRIMARY").DBFiles.Add oDBFileData
-----------------------------------------------------------

Here is the complete code:

Dim oDatabase As New SQLDMO.Database
Dim oDBFileData As New SQLDMO.DBFile
Dim oLogFile As New SQLDMO.LogFile

oDatabase.Name = "Northwind"

' Define the PRIMARY data file.
oDBFileData.Name = "NorthData1"
oDBFileData.PhysicalName = "c:\program files\microsoft sql server\mssql\data\northwnd.mdf"
oDBFileData.PrimaryFile = True

' Specify file growth in chunks of fixed size for all data files.
oDBFileData.FileGrowthType = SQLDMOGrowth_MB
oDBFileData.FileGrowth = 1

oDatabase.FileGroups("PRIMARY").DBFiles.Add oDBFileData

' Define the database transaction log.
oLogFile.Name = "NorthLog1"
oLogFile.PhysicalName = "c:\program files\microsoft sql server\mssql\data\northwnd.ldf"
oDatabase.TransactionLog.LogFiles.Add oLogFile

' Create the database as defined. Note: Create and connect of SQLServer
' object used is not illustrated in this example.
oSQLServer.Databases.Add oDatabase

Thanks in advance for your help

SAG, CANADA
QuestionHow to write Installer for a executable file Pin
pakFari16-Jun-05 1:32
pakFari16-Jun-05 1:32 
AnswerRe: How to write Installer for a executable file Pin
nemopeti16-Jun-05 3:55
nemopeti16-Jun-05 3:55 
AnswerRe: How to write Installer for a executable file Pin
S. Senthil Kumar16-Jun-05 5:05
S. Senthil Kumar16-Jun-05 5:05 
GeneralRe: How to write Installer for a executable file Pin
pakFari16-Jun-05 20:49
pakFari16-Jun-05 20:49 
GeneralOpen Graphic files in real PixelFormat Pin
Alpini16-Jun-05 1:01
Alpini16-Jun-05 1:01 
GeneralRe: Open Graphic files in real PixelFormat Pin
Daniel Turini16-Jun-05 3:38
Daniel Turini16-Jun-05 3:38 
GeneralRe: Open Graphic files in real PixelFormat Pin
Alpini16-Jun-05 4:32
Alpini16-Jun-05 4:32 
GeneralRe: Open Graphic files in real PixelFormat Pin
Dave Kreskowiak16-Jun-05 4:47
mveDave Kreskowiak16-Jun-05 4:47 
GeneralRe: Open Graphic files in real PixelFormat Pin
Alpini16-Jun-05 9:22
Alpini16-Jun-05 9:22 
GeneralMouseWheel Event Pin
Anonymous16-Jun-05 0:41
Anonymous16-Jun-05 0:41 
GeneralRe: MouseWheel Event Pin
Marc Clifton16-Jun-05 1:23
mvaMarc Clifton16-Jun-05 1:23 
QuestionAdd-in, how to work with it? Pin
Khoa Bui15-Jun-05 23:28
Khoa Bui15-Jun-05 23:28 
AnswerRe: Add-in, how to work with it? Pin
Werdna16-Jun-05 4:55
Werdna16-Jun-05 4:55 
GeneralCrystal report and C# Pin
jeya_00715-Jun-05 23:16
jeya_00715-Jun-05 23:16 
QuestionListView - some kind of a scroll event? Pin
iliyang15-Jun-05 22:55
iliyang15-Jun-05 22:55 
Questionwhat is the difference between Property and Public Field? Pin
Khoa Bui15-Jun-05 22:51
Khoa Bui15-Jun-05 22:51 
AnswerRe: what is the difference between Property and Public Field? Pin
iliyang15-Jun-05 23:06
iliyang15-Jun-05 23:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.