Viewing 15 posts - 5,596 through 5,610 (of 7,636 total)
OK, the "xfdf" tag means that first, you have to add another level into your .query to include the root(xfdf) tag. And secondly, the "xfdf" tag is imposing an...
September 3, 2008 at 3:22 pm
The script generator does not always work (bugs, fails on certain syntaxes), also cannot be automated and isn't very flexible. Plus there are things that it will not even...
September 3, 2008 at 3:06 pm
sweetdeal42 (9/3/2008)
(select field.query('data(@name)').value('.', 'varchar(100)') as FieldName
,fields.field.query('value').value('.', 'varchar(100)') as FieldValue
from @OMSA.nodes('/fields/field') fields...
September 3, 2008 at 2:28 pm
Post the XML here as an attachment. Don't try to add it to the text of your post.
September 3, 2008 at 2:23 pm
If I add "ORDER BY name" the error goes aways but it only lists one routine.
September 3, 2008 at 2:04 pm
Christian Buettner (9/3/2008)
DECLARE @A nvarchar(max)
SELECT @A = ISNULL(@A,'') + OBJECT_DEFINITION(object_id) + '
GO
' FROM sys.procedures
SELECT CAST(@A AS XML)
Explanation:
1. Use OBJECT_DEFINITION to get the full script of the object...
September 3, 2008 at 1:57 pm
Glad I could help.
Just remember in the future though: If you want to be able to retrieve rows in the order that they were inserted, you will need some...
September 3, 2008 at 1:52 pm
If you want to solve the "text output limit" problem then you will first need a specialized split function like this:
ALTER function [dbo].[fnSplit3](
...
September 3, 2008 at 1:47 pm
Glad I could help (hmm, it does seem like part of my post is missing...).
September 3, 2008 at 1:27 pm
This is easy enough to do without a cursor:
--======
SET NOCOUNT ON
select N'
----------------------------------------------------------------------------
-- ' + p.name + N'
----------------------------------------------------------------------------
' + m.definition + N'
GO
----------------------------------------------------------------------------
'
from sys.sql_modules m
join sys.procedures p
...
September 3, 2008 at 1:23 pm
This should work then:
Update c1 set descr = n1.descr
From cit c1
Join nit n1 ON c1.cno=n1.cno
September 3, 2008 at 12:53 pm
You do not really need sp_xml_preparedocument except for OPENXML, which you do not really need either in SQL 2005.
What you should look at are the XML datatypes and the XML...
September 3, 2008 at 12:25 pm
psangeetha (9/3/2008)
September 3, 2008 at 12:10 pm
Viewing 15 posts - 5,596 through 5,610 (of 7,636 total)