Viewing 15 posts - 586 through 600 (of 2,038 total)
Jeff Moden (6/20/2009)
Florian Reischl (6/20/2009)
June 21, 2009 at 3:07 am
Jeff Moden (6/20/2009)
Here's why... the original code looks like this (for example)....
[font="Courier New"]--===== Create and populate the Tally table on the fly
SELECT TOP 1000000 --equates to more than 30 years of dates
IDENTITY(INT,1,1) AS N
INTO dbo.Tally
FROM Master.dbo.SysColumns sc1,
Master.dbo.SysColumns sc2
--===== Add a Primary Key to maximize performance
ALTER TABLE dbo.Tally
ADD CONSTRAINT PK_Tally_N
PRIMARY KEY CLUSTERED (N) WITH FILLFACTOR = 100
--===== Allow the general public to use it
GRANT SELECT ON dbo.Tally TO PUBLIC[/font]
If I throw that code into a code window in the presence...
June 21, 2009 at 3:02 am
You can use a Tally table and CROSS APPLY to scan your text and split for your delimiter.
DECLARE @t TABLE (col1 varchar(10), col2 varchar(30));
INSERT INTO @t
...
June 20, 2009 at 4:30 pm
bkirk (6/16/2009)
2) turn on xp_cmdshell and write to file directly from T-SQL SP. However i'm concerned about security on...
June 20, 2009 at 11:28 am
There are some samples and tutorials on MSDN:
http://msdn.microsoft.com/en-us/library/ms160894.aspx
Some of the business cases they show are much better done in T-SQL but it shows how it works and explains the syntax.
June 20, 2009 at 11:06 am
haroonrashed786 (6/20/2009)
but..i have to use CLR triggers only..,
Why?
June 20, 2009 at 11:02 am
Have a look for SQL Server Compact Edition:
http://www.microsoft.com/Sqlserver/2005/en/us/compact.aspx
It's made for embedded applications and mobile devices.
June 20, 2009 at 8:18 am
WayneS (6/20/2009)
I haven't heard of this tool... maybe you and/or Paul can write an article about it?
Great idea 😀
June 20, 2009 at 7:53 am
Just for fun - if RIGHT and CHARINDEX is prohibited but you are allowed to use a Tally table 😀
DECLARE @txt VARCHAR(20)
SELECT @txt = 'helloALL'
SELECT
...
June 20, 2009 at 4:43 am
In addition:
To help with performance issues an execution plan is always helpful. Maybe have a look to Gail's article "How to post Performance Problems":
http://www.sqlservercentral.com/articles/SQLServerCentral/66909
June 20, 2009 at 4:35 am
Hi Chris
cthorn112 (6/19/2009)
What sort of trick do you have up your sleeve for concatenating different node values into one row :hehe: ?
You can use a inline sub-query to query the...
June 20, 2009 at 4:30 am
Click your name in any post. Select "View Member's Profile". Select "Show all posts by this member..." in "Personal Information"
June 19, 2009 at 5:09 pm
Duplicate post...
http://www.sqlservercentral.com/Forums/Topic738685-338-1.aspx
June 19, 2009 at 5:07 pm
If you want to test your technical skills try to answer questions on this site. Compare your answers with others and study the differences.
June 19, 2009 at 5:02 pm
Viewing 15 posts - 586 through 600 (of 2,038 total)