Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 SQL vs XML

Author  Topic 

romanceb2nus
Starting Member

4 Posts

Posted - 2011-11-11 : 11:56:04
how I can run this query in XML?
< print/select db_name() >

Thank you
Akee

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2011-11-11 : 11:58:09
what does that mean? do you mean this?


SELECT db_name() as db_name for xml path(''),root('SomeNodeValue')


------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

romanceb2nus
Starting Member

4 Posts

Posted - 2011-11-11 : 12:17:36
I just want to run a simple query like

select getdate()

using QueryXML want to write code to display today date ( using sql function getdate() )
In short want to work in sql evnirnoment With in XMLquery environment. you think is there any way?

Thank you
Akee
Go to Top of Page
   

- Advertisement -