| | |
Help BCP The Following Query
Please support our MS SQL advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
Good Day All
I have the Following Query
This creates an XML, but now i want to store it in
how can i BCP this Query
Thanks
I have the Following Query
MS SQL Syntax (Toggle Plain Text)
DECLARE @CurrentTime DATETIME SET @CurrentTime = CURRENT_TIMESTAMP SELECT tr.Descr [Room], tb.Purpose [Purpose], tb.Description [Description], convert(varchar,datepart(hour,tb.starttime))+':'+convert(varchar,datepart(minute,tb.starttime)) [Start Time], convert(varchar,datepart(hour,tb.endtime))+':'+convert(varchar,datepart(minute,tb.endtime)) [End Time], tu.name [Requested BY] FROM tbl_booking tb INNER JOIN tbl_resource tr ON tb.resources = tr.id INNER JOIN tbl_user tu ON tu.id = tb.RequestedByUser WHERE (day(startdate) = day(@CurrentTime))AND(month(startdate)=month(@CurrentTime))AND(year(startdate)=year(@CurrentTime))AND(tb.STATUS=1) ORDER BY [Room],[Start Time] FOR xml raw
This creates an XML, but now i want to store it in
•
•
•
•
C:\X.XML
Thanks
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
0
#2 Nov 2nd, 2009
Why don't you handle this task at the application layer instead of the DB layer? Often time the MSSQL Service is not running with administrative rights and does not have filesystem access to the root drive of the disk, ie C:\
0
#3 Nov 3rd, 2009
Good Morning
This is not an Application, so i will not have a BLL or DAL. i have all the Rights to write to the File System. all i need is help to BCP the given query
This is not an Application, so i will not have a BLL or DAL. i have all the Rights to write to the File System. all i need is help to BCP the given query
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
![]() |
Similar Threads
- php Query with combo box item (PHP)
- help with SQL query / view / count problem.... (MS SQL)
- Sql Query (VB.NET)
- Removing Query Strings (ASP.NET)
- Double MySQL Query (PHP)
- Dynamic Query (JSP)
- problem with lengthy query (Java)
- Retreiving variables from a sql query into a form (PHP)
- Query Building (Database Design)
Other Threads in the MS SQL Forum
- Previous Thread: Extract table statistics DDL
- Next Thread: insert date
Views: 449 | Replies: 2
| Thread Tools | Search this Thread |
Tag cloud for MS SQL
"last age autogrowth business connectingtodatabaseinuse count cursor data database dateadd datediff datepart day" dbsize deadlock delete_trigger exploit getdate hack highperformancecomputing hpc hpcserver2008 ibm iis limit live loop maximum microsoft ms mssql multiple multithreading news number password permission position query reporting result security server services sets single source sql sql-injection sqlserver sqlserver2005 subtype supercomputing supertype tables uniqueid update view weekday






