Click here to Skip to main content
15,894,362 members
Home / Discussions / Database
   

Database

 
GeneralRe: debug sql stored procedure Pin
nripin19-Oct-05 17:55
sussnripin19-Oct-05 17:55 
QuestionRe: debug sql stored procedure Pin
nrps19-Oct-05 18:06
nrps19-Oct-05 18:06 
QuestionQuery to get specific word in a column Pin
JayaDurai18-Oct-05 2:05
JayaDurai18-Oct-05 2:05 
AnswerRe: Query to get specific word in a column Pin
miah alom18-Oct-05 3:52
miah alom18-Oct-05 3:52 
AnswerRe: Query to get specific word in a column Pin
JayaDurai18-Oct-05 18:51
JayaDurai18-Oct-05 18:51 
AnswerRe: Query to get specific word in a column Pin
under281120-Oct-05 0:06
under281120-Oct-05 0:06 
QuestionInstanciate SQLXMLBulkLoad object Pin
george ivanov18-Oct-05 1:07
george ivanov18-Oct-05 1:07 
AnswerRe: Instanciate SQLXMLBulkLoad object Pin
cmacgowan2-Dec-05 4:04
cmacgowan2-Dec-05 4:04 
Just to follow-up ...

If you are working in .NET C# for example you will need to add the reference to the SQLXML BulkLoad 3.0 Type Library.

(from the below refeences article)
http://www.dbazine.com/sql/sql-articles/cook3

... COM and the .NET Framework are two fundamentally different approaches to application development. COM type libraries must be converted to .NET assembly metadata to achieve COM interop in .NET. By using the Visual Studio .NET IDE, this can be done automatically by following the simple steps that follow. It is assumed that MSXML is already installed.

- Begin by going to the Visual Studio .NET menu bar and selecting Project, then Add Reference.

- From the Add Reference dialog box, select Microsoft SQLXML BulkLoad 3.0 Type Library from the list, click the Select button, and click OK to complete your selection.

- The necessary metadata is automatically generated. The COM object appears as a reference in the solution explorer.

- Use the Object Browser to see what’s available in the component. Go to the menu bar and select View, Other Windows, Object Browser.

- The Object Browser shows you the interfaces and members available.

The rest of the code would be as such ...

// A SQLXMLBulkLoad3 object must be instantiated. In C# use the following code:<br />
SQLXMLBULKLOADLib.SQLXMLBulkLoad3 bulkLoadObj = new SQLXMLBULKLOADLib.SQLXMLBulkLoad3Class();<br />
<br />
<br />
// Notice that the Object Browser reveals a ConnectionString property and an Execute method. The <br />
// ConnectionString property is a valid OLE DB connection string. In this example, a connection <br />
// is made to a SQL Server. Instead, the connection could have been to an <br />
// Oracle server. <br />
bulkLoadObj.ConnectionString = "Provider=SQLOLEDB;Data Source=localhost;" +<br />
                      "Integrated Security=SSPI;Initial Catalog=northwind";<br />
<br />
// The Execute method requires two parameters: a mapping schema file and the XML file to be bulk loaded.                      <br />
bulkLoadObj.Execute("C:/Locations.xsd", "C:/Locations.xml");


http://www.dbazine.com/sql/sql-articles/cook3

Peace and Love,
Chris Macgowan
QuestionAvg in SQL Statement Pin
dabuskol17-Oct-05 23:36
dabuskol17-Oct-05 23:36 
AnswerRe: Avg in SQL Statement Pin
Marc Soleda17-Oct-05 23:49
Marc Soleda17-Oct-05 23:49 
QuestionI used NVL fuction to convert the null value into 0 what is the equavalent thing in SQL server . Pin
anishyanic17-Oct-05 23:33
anishyanic17-Oct-05 23:33 
Questioncumulative aggregate queries in transact-sql Pin
smita_roy17-Oct-05 22:27
smita_roy17-Oct-05 22:27 
AnswerRe: cumulative aggregate queries in transact-sql Pin
under281120-Oct-05 0:19
under281120-Oct-05 0:19 
Questionconnection string Pin
kindkirk17-Oct-05 18:44
kindkirk17-Oct-05 18:44 
AnswerRe: connection string Pin
S Douglas20-Oct-05 0:52
professionalS Douglas20-Oct-05 0:52 
GeneralRe: connection string Pin
Luis Alonso Ramos20-Oct-05 19:10
Luis Alonso Ramos20-Oct-05 19:10 
GeneralRe: connection string Pin
S Douglas20-Oct-05 20:13
professionalS Douglas20-Oct-05 20:13 
QuestionDAO Error 3028 Pin
mikanu17-Oct-05 11:22
mikanu17-Oct-05 11:22 
AnswerRe: DAO Error 3028 Pin
S Douglas20-Oct-05 1:25
professionalS Douglas20-Oct-05 1:25 
GeneralRe: DAO Error 3028 Pin
mikanu25-Oct-05 13:31
mikanu25-Oct-05 13:31 
GeneralRe: DAO Error 3028 Pin
S Douglas26-Oct-05 2:01
professionalS Douglas26-Oct-05 2:01 
GeneralRe: DAO Error 3028 Pin
mikanu27-Oct-05 8:38
mikanu27-Oct-05 8:38 
GeneralRe: DAO Error 3028 Pin
S Douglas27-Oct-05 14:30
professionalS Douglas27-Oct-05 14:30 
QuestionImport XML file in SQL Server 2000 database Pin
george ivanov17-Oct-05 9:05
george ivanov17-Oct-05 9:05 
AnswerRe: Import XML file in SQL Server 2000 database Pin
enjoycrack17-Oct-05 16:35
enjoycrack17-Oct-05 16:35 

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.