Viewing 15 posts - 931 through 945 (of 1,479 total)
MarkusB (6/12/2009)
The guest user has the permissions of the public role.[/url]
Just a small clarification. Every user and role (including the user guest) will get the permissions that are...
June 15, 2009 at 12:48 am
Variables that are declared outside of the dynamic SQL are not known in the dynamic SQL. You’ll have to change your code to work with temporary table instead of...
June 12, 2009 at 6:32 am
STR function works with three parameters. The first parameter is the number with the decimal point. The second parameter is the total length of the string. The...
June 12, 2009 at 6:26 am
As far as I know you can't use alter index statement to modify the columns that the index is referencing. You'll have to create a new index with the...
June 11, 2009 at 1:10 am
declare @st char(6)
declare @dt datetime
set @st = '145010'
set @dt = left(@st,2) + ':' + substring(@st,3,2) + ':' + right(@st,2)
select @dt
Adi
June 11, 2009 at 1:05 am
I think that you got it. I'm sorry but I thought that you know what nodes method is doing. The method is returning a table that has one...
June 10, 2009 at 3:09 am
GilaMonster (6/10/2009)
Jeff Moden (6/9/2009)
GilaMonster (6/9/2009)
He turned it down, because his current company had offered him a raise if he would stay.
Yowch! I have some pretty strong feelings about...
June 10, 2009 at 2:58 am
Since the node method is creating a table, when your original data comes from a column in a table and not with a variable, you need to do a...
June 10, 2009 at 2:06 am
declare @xml xml
set @xml =
'
abc
pqr
'
select tab.col.value('.[1]','varchar(30)')
from @xml.nodes('BOOKS/BOOK/NAME') tab (col)
Adi
EDIT - In my original code the values in the ID tags were surrounded by quotation marks...
June 10, 2009 at 1:35 am
This is because you are working with integers. You need to work with types that work with decimal point. See the example bellow:
--using numbers that are treated as...
June 10, 2009 at 12:46 am
There are some third party tools (for example log explorer) that can get the data from the database's log. I'm not aware of a way to get understandable data...
June 10, 2009 at 12:39 am
The XML can not be seen. Can you upload a small XML file that has the same structure as the one that you work with? In any case...
June 9, 2009 at 11:26 pm
Can you upload a small version of the text file (that will contain just few records) and a script for creating the table? Also if you'll post...
June 9, 2009 at 8:29 am
I never put it on my resume, but if the subject of favorite sites/forums comes up during the interview, I tell them which forums I use and I let them...
June 9, 2009 at 3:39 am
You can do it with BCP utility that works with a query that has the for xml extention:
bcp "select * from tempdb.dbo.Customers for xml raw, root('Root')" queryout c:\Temp\Customers.xml -T -c...
June 9, 2009 at 3:23 am
Viewing 15 posts - 931 through 945 (of 1,479 total)