Viewing 15 posts - 1,711 through 1,725 (of 1,957 total)
petervdkerk (11/30/2010)
As you mentioned you do provide the ouput as well: output deleted.*
But im still unsure which command to use to select the...
November 30, 2010 at 7:13 am
Brandie Tarvin (11/30/2010)
mister.magoo (11/29/2010)
There were additional requirements in the OP's question - and while it is helpful to have your excellent input, you are not addressing the OP's...
November 30, 2010 at 4:19 am
@Brandie and GSquared,
There were additional requirements in the OP's question - and while it is helpful to have your excellent input, you are not addressing the OP's problem.
November 29, 2010 at 2:59 pm
I suspect a language setting on the user that your SSIS package is using to log in to SQL server.
Probably you are using a different login in SSMS than SSIS...
November 29, 2010 at 11:45 am
petervdkerk (11/27/2010)
I ran your query and it marks the correct records for deletion.
1 question:
you...
November 29, 2010 at 8:10 am
Jack Corbett (11/29/2010)
mister.magoo (11/23/2010)
Agreed - but - just being Devil's Advocate's Advocate here - that only applies if the data source behind all the nice strongly typed entities is SQL...;-)
True,...
November 29, 2010 at 7:24 am
Not a stupid question at all!
Just grab the Object Explorer windows and drag it until a blue cross appears. Continue dragging the window and point your mouse at the different...
November 26, 2010 at 5:17 pm
I think it should only delete rows with id in 4, 5, 7, 9
It would help of course if we had expected results 😉
Here is my version (which is...
November 25, 2010 at 4:33 pm
Gopinath Srirangan (11/25/2010)
I am new to SQL server programming. Though both question and answer was clear i would like to know the reason or why SQL...
November 25, 2010 at 5:30 am
You're welcome, but I do not understand your last comment, unless you mean the ordering of the namespaces in the resulting xml is different?
November 25, 2010 at 4:07 am
Sorry - it's because I left out the other namespaces... try this:
DECLARE @t table ( xml_text xml)
INSERT INTO @t
SELECT '<Report xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://tempuri.org/ReportParameters.xsd"><Fields><Field FieldStub="D51C8428-8436-40B8-A1B0-FE1EC2C24401" FieldName="Product Code" FieldType="512" /></Fields><Prompts><Prompt PromptName="DateRangePrompt"><Param ParamName="@timezoneid"...
November 25, 2010 at 4:00 am
DECLARE @t table ( xml_text xml)
INSERT INTO @t
SELECT '<Report xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://tempuri.org/ReportParameters.xsd"><Fields><Field FieldStub="D51C8428-8436-40B8-A1B0-FE1EC2C24401" FieldName="Product Code" FieldType="512" /></Fields><Prompts><Prompt PromptName="DateRangePrompt"><Param ParamName="@timezoneid" ParamValue="35" /><Param ParamName="@enddate" ParamValue="09/21/2006" /></Prompt><Prompt PromptName="SessionTypePrompt"><Param ParamName="@session_type" ParamValue="1" /></Prompt></Prompts><Filters><Filter FieldStub="9c312bdb-b9ee-4a06-9ab7-84357e22a7e2" OpId="4"...
November 25, 2010 at 2:51 am
tommyh (11/24/2010)
mister.magoo (11/24/2010)
SELECT @variable1 = (SELECT column1 FROM table WHERE column2 = 'somevalue')
unless you want an error for selecting multiple rows...
November 25, 2010 at 2:37 am
Oh yes and, of course you should not do this:
SELECT @variable1 = (SELECT column1 FROM table WHERE column2 = 'somevalue')
unless you want an error for selecting multiple rows in a...
November 24, 2010 at 5:09 pm
I can't say I have a "pattern" for checking for this - you either spot it or you don't...
However, there is another gotcha here that I see a lot of...
November 24, 2010 at 4:40 pm
Viewing 15 posts - 1,711 through 1,725 (of 1,957 total)