Viewing 15 posts - 1,366 through 1,380 (of 2,038 total)
Hi
Try to convert the odb.set_group to VARCHAR within your sub-select:
SELECT
CASE WHEN (select count(distinct c_number)
...
April 16, 2009 at 1:10 pm
Hi
I would say it depends...
Especially huge brands usually have different suppliers to stay independent and one supplier usually also has different customers (the brands). We have both combination in different...
April 16, 2009 at 12:50 pm
Hi
If the FOR XML AUTO fits your requirements you can simply add the name for the root element to be created:
FOR XML AUTO, ROOT('root')
Greets
Flo
April 16, 2009 at 10:11 am
Hi
Another way would be a CROSS APPLY to select the totals since the current year:
DECLARE @t TABLE (P_Year DATETIME, P_Purchases MONEY)
INSERT INTO @t
...
April 16, 2009 at 9:46 am
Jack Corbett (4/16/2009)
Florian Reischl (4/15/2009)
I also don't really understand the requirement. Do you mean that you want to append the filtered result with the unfiltered one? (What I still wouldn't...
April 16, 2009 at 8:34 am
Vladan (4/16/2009)
Florian Reischl (4/15/2009)
Do you know how it would be possible to add a CRLF to the end of the rows? If I use either CHAR(13)+CHAR(10) or a direct CRLF...
April 16, 2009 at 3:25 am
Hi Bob!
Bob Hovious (4/15/2009)
Is there a way to update a group of records such as all "cqs%" to become "CQS%"?
Keeping it simple....
UPDATE sometable
...
April 15, 2009 at 5:45 pm
sgovoni (4/15/2009)
I have completed the stored procedures in CLR languages 🙂 take a look at this post: http://community.ugiss.org/blogs/sgovoni/archive/2009/04/11/sqlclr-instead-of-ole-automation-sp_5F00_oa_2A00_-method.aspx the article that you reach by clicking on read more explains...
April 15, 2009 at 4:07 pm
Hi Frank
This becomes the "most wanted" these days... 🙂
You can handle this by OR within your WHERE clause:
WHERE (@incident_id NOT NULL AND incident_id = @incident_id
OR (@res_id IS...
April 15, 2009 at 4:01 pm
Hi Carol
Carol Adams (4/15/2009)
Thanks Flo. I always love your posts as they are very informative and easy to understand.
Thanks for that. Especially because I thought since now the statement is...
April 15, 2009 at 3:55 pm
Hi
I still would use an INT column as primary key. You can use GUIDs as UNIQUE CONSTRAINT column for data uniqueness over different databases/servers/locations. Anyway we use a simple string...
April 15, 2009 at 3:48 pm
@Lutz
I would do exactly the same way as you did... 😉
But I have a short question:
Do you know how it would be possible to add a CRLF to the end...
April 15, 2009 at 3:37 pm
Hi
Not the exact answer for your question but did you try to do this with BCP? It's much faster and you can export/import in native mode without all those problems.
Greets
Flo
April 15, 2009 at 3:20 pm
Here a little snippet of a script I will publish in next weeks:
Since now this only scripts the tables. The indexes and constraints are not included.
SET NOCOUNT ON
DECLARE @check_exists BIT
DECLARE...
April 15, 2009 at 3:11 pm
Hi
What about UPPER? 😉
DECLARE @t TABLE
(
txt VARCHAR(30)
)
INSERT INTO @T
SELECT 'CQS0002509'
UNION ALL...
April 15, 2009 at 3:02 pm
Viewing 15 posts - 1,366 through 1,380 (of 2,038 total)