Viewing 15 posts - 16 through 30 (of 52 total)
But the user has permission for select, insert and update on the table?. Is that not enough to get the default values?
Anyway, I need to know a way for a...
March 24, 2009 at 3:36 pm
The file is a fixed width fields. Each field is of length "1". For example, one line of the data file is like this:
A CDE
Notice the space between the values...
January 13, 2009 at 1:15 pm
Thanks, Jeff!. You got it exactly right. The logic was to get the running total.
I was wondering how CTE's (Common Tabl expressions) in SQL Server 2005 will be of more...
December 27, 2008 at 3:11 pm
The URL itself is the data provider. When you open the URL in Internet Explorer, you get an XML data.
If I have to do it manually, I will opening...
November 1, 2008 at 2:23 pm
Is there a TSQL way to find out why a permission is denied??..
For example, how to find out why the user is deined the "CREATE TABLE" permission.. the source...
August 8, 2008 at 3:58 pm
No.. I even tried with a NEW login and it does the same.. Please help!!
August 8, 2008 at 3:22 pm
Thanks, I tried this earlier but I get this error:
Msg 4623, Level 16, State 1, Line 1
The all permission has been deprecated and is not available for this class of...
July 17, 2008 at 7:53 am
Found it, here it is:
select distinct
p.[object_id],
TbName = OBJECT_NAME(p.[object_id]),
index_name = i.[name],
index_type_desc = i.type_desc,
partition_scheme =...
July 9, 2008 at 11:46 am
I was just providing you a hint.. You may want to :
CASE WHEN (SUM(CONVERT(NUMERIC,CRC.Contact))))*100),0) <> 0.0 THENISNULL(CONVERT(DECIMAL(5,2),(SUM(CONVERT(NUMERIC,CRC.Success))/(SUM(CONVERT(NUMERIC,CRC.Contact))))*100),0) ELSE 0.0 END As SPC
May 19, 2008 at 5:11 pm
An auto generated number something like the node "position()" is what I am looking for to uniquely idenitfy the node value..
The reason I need is, after getting the node...
May 19, 2008 at 4:45 pm
TRY PROBABLY THIS:?
CASE WHEN (SUM(CONVERT(NUMERIC,CRC.Contact))))*100),0) > 0.0 THENISNULL(CONVERT(DECIMAL(5,2),(SUM(CONVERT(NUMERIC,CRC.Success))/(SUM(CONVERT(NUMERIC,CRC.Contact))))*100),0) ELSE 0.0 END As SPC
May 19, 2008 at 3:54 pm
Any way to get the attribute values also in the same way.. This is my XML
<ROWS Suspended="false" ID="2" Platform_Id="7" >
<COL1>1</COL1>
<COL2>2</COL2>
<COL3>3</COL3>
</ROWS>
and
Select r.value('local-name(.)','varchar(20)') as Name,
r.value('(text())[1]','varchar(100)')...
May 19, 2008 at 12:16 pm
Found it, here you go:
Select r.value('local-name(.)','varchar(20)') as Name,
r.value('(text())[1]','varchar(100)') as Value
From @doc2.nodes('//*') as x(r)
Thanks,
Ganesh
May 19, 2008 at 12:13 pm
The nodes function appears to return the data only as a single row with Col1, Col2 as column names as below.
For example,
declare @doc2 xml
SET @doc2 = '
<ROWS>
<COL1>1</COL1>
<COL2>2</COL2>
<COL3>3</COL3>
</ROWS>'
SELECT
tab.col.value('COL1[1]','VARCHAR(20)')AS...
May 19, 2008 at 11:11 am
Hello,
Thanks for the reply. I guess you are suggesting to look for the "x64" string in the @@version results. Is there a better way other than this to determine...
October 22, 2007 at 10:40 am
Viewing 15 posts - 16 through 30 (of 52 total)