Pages

Envelop Schemas Walk Through BizTalk

Monday, October 31, 2011
n An envelope schema is a special type of XML schema. Envelope schemas are used to define the structure of XML envelopes, which are used to wrap one or more XML business documents into a single XML instance message. When you define an XML schema to be an envelope schema, a couple of additional property settings are required, depending on such factors as whether there are more than one root record defined in the envelope schemaEnvelope...
Read more ...

SQL Server Exporting Data To EXCEL file || and || Importing Data From EXCEL to SQL Server

Friday, October 28, 2011
1 Export data to existing EXCEL file from SQL Server table insert into OPENROWSET('Microsoft.Jet.OLEDB.4.0', 'Excel 8.0;Database=D:\testing.xls;', 'SELECT * FROM [SheetName$]') select * from SQLServerTable 2 Export data from Excel to new SQL Server table select * into SQLServerTable FROM OPENROWSET('Microsoft.Jet.OLEDB.4.0', 'Excel 8.0;Database=D:\testing.xls;HDR=YES', 'SELECT * FROM [Sheet1$]') 3...
Read more ...

SQL XML : Saving SQL Query Results to a File

Thursday, October 27, 2011
One way to save your XML query results to the file system is by using bcp (bulk copy program). Be aware of the following before deciding to use bcp for your regular export requirements: bcp is a program external to SSMS. If you need to use this from within your scripts, you will need to enable xp_cmdshell. xp_cmdshell is an extended stored procedure that allows external command line processes to be executed from within SQL...
Read more ...

SQL XMl Using SQL Server XMl Exists() Function to fing Element in XML

Thursday, October 27, 2011
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 -- ============================================================ -- sample code on using the SQL Server xml method exist() -- several samples shown -- Donabel Santos -- ============================================================   DECLARE @xmlSnippet...
Read more ...