Re: Stored Procedure help
From: Adam Machanic (amachanic_at_hotmail._removetoemail_.com)
Date: 02/09/05
- Next message: Hugo Kornelis: "Re: 100% CPU Util on Simple Update Query"
- Previous message: JohnnyAppleseed: "Re: Connection String Problem"
- In reply to: Bob Barrows [MVP]: "Re: Stored Procedure help"
- Next in thread: Bob Barrows [MVP]: "Re: Stored Procedure help"
- Reply: Bob Barrows [MVP]: "Re: Stored Procedure help"
- Reply: Anith Sen: "Re: Stored Procedure help"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 9 Feb 2005 16:15:42 -0500
Actually, "Aggregate Concatenation" does appear to be its "official" name:
http://support.microsoft.com/default.aspx?scid=kb;en-us;287515
-- Adam Machanic SQL Server MVP http://www.sqljunkies.com/weblog/amachanic -- "Bob Barrows [MVP]" <reb01501@NOyahoo.SPAMcom> wrote in message news:uVGLkwuDFHA.2508@TK2MSFTNGP09.phx.gbl... > dspa wrote: > > Hi everybody, > > I'm new to Sqlserver and I have to solve this problem using a stored > > procedure: > > > > I have a simple table tab1 (int a, varchar(255) b) > > My stored procedure should do this: > > > > mystored( varchar(255) in) returning out varchar(4000) ) > > > > select * from tab1 > > > > foreach row > > out = out + currentrow.a + " - " + currentrow.b > > end foreach > > > > > > > > Sorry, but I still don't know the t-sql syntax. > > Can someone help me? > > > > Thank you in advance > > See this thread: > http://groups-beta.google.com/group/microsoft.public.sqlserver.programming/browse_frm/thread/2d87fe75c32fe408/f758f03fd96c1452?q=aggregate+concatenation+author:Bob+Barrows&_done=%2Fgroups%3Fq%3Daggregate+concatenation+author:Bob+Barrows%26hl%3Den%26lr%3D%26c2coff%3D1%26rls%3DGGLD,GGLD:2003-36,GGLD:en%26sa%3DN%26tab%3Dwg%26&_doneTitle=Back+to+Search&&d#f758f03fd96c1452 > > Bob Barrows > > -- > Microsoft MVP -- ASP/ASP.NET > Please reply to the newsgroup. The email account listed in my From > header is my spam trap, so I don't check it very often. You will get a > quicker response by posting to the newsgroup. > >
- Next message: Hugo Kornelis: "Re: 100% CPU Util on Simple Update Query"
- Previous message: JohnnyAppleseed: "Re: Connection String Problem"
- In reply to: Bob Barrows [MVP]: "Re: Stored Procedure help"
- Next in thread: Bob Barrows [MVP]: "Re: Stored Procedure help"
- Reply: Bob Barrows [MVP]: "Re: Stored Procedure help"
- Reply: Anith Sen: "Re: Stored Procedure help"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|