Viewing 15 posts - 6,976 through 6,990 (of 7,164 total)
Sorry this took so long...
I have a testbed setup and can see the XML value from your DB query within a script task...it looks OK and as you mentioned now...
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
March 9, 2011 at 10:28 am
I thought of an option...I haven't done a proof-of-concept on it because I don't have a copy of Visual Studio here that supports SQL Server Database Projects but I did...
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
March 9, 2011 at 9:48 am
DECLARE @x XML = N'<parent><child>Hello World!</child></parent>' ;
SELECT @x.query('/parent/child') ;
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
March 9, 2011 at 9:24 am
Is this for a local instance of SQL Server?
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
March 9, 2011 at 9:19 am
pwalter83 (3/9/2011)
GilaMonster (3/9/2011)
Could you post table definitions, sample data and expected result please?
Now this is really frustrating. Without even reading the question, you have given a template answer. This way...
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
March 9, 2011 at 9:13 am
First issue: I think the reason why you cannot access the DB from Excel using Windows Auth while your machine is unplugged from the network is because SQL Server cannot...
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
March 9, 2011 at 7:16 am
TK-487581 (3/8/2011)
So, just confirming - Index is only for performance. It has no hand in sorting the data, right?...
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
March 8, 2011 at 5:51 pm
TK-487581 (3/8/2011)
So, just confirming - Index is only for performance. It has no hand in sorting the data, right?...
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
March 8, 2011 at 5:51 pm
The only way to guarantee sort order is to issue an ORDER BY in your query...this is a fundamental concept of set theory.
This may look familiar: The ORDER BY...
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
March 8, 2011 at 5:37 pm
This may clear things up:
SELECT CONVERT(DECIMAL(6), 10.95) AS a,
CONVERT(DECIMAL(6, 2), 10.95) AS b
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
March 8, 2011 at 4:00 pm
SELECT *
FROM sys.databases
WHERE state_desc != 'ONLINE'
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
March 8, 2011 at 3:40 pm
You'll want to convert the numerator and denominator to float or some form of a decimal before doing your division...sorry I did not consider it.
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
March 8, 2011 at 3:27 pm
Try this:
WITH cte(numerator, denominator)
AS (SELECT (SELECT COUNT(DISTINCT encounter) AS numerator
...
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
March 8, 2011 at 3:03 pm
SQL Server will implicitly convert your data in the text file to the destination data type per the table definition. That said, if you exported some data from Sybase and...
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
March 8, 2011 at 2:55 pm
You're very welcome :Whistling:
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
March 8, 2011 at 2:28 pm
Viewing 15 posts - 6,976 through 6,990 (of 7,164 total)