If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ANSI SQL > sproc SPACE ->  

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-12-04, 04:40
Raisor Raisor is offline
Registered User
 
Join Date: Feb 2004
Posts: 5
sproc SPACE ->  

Hello everyone,

Something I have been able to accomplish some time ago but I haven't got it documented :(, in the following stored proc I manage to show my information in a hiearchial maner, and displays when running my information like:

ASP
ASPtools
ASPtools2
ASPprograms
etc.....


CREATE PROCEDURE sproc_bookmark AS
SELECT bookmark_title = convert(varchar, SPACE(2 * (bookmark_level - 1) ) + bookmark_title)
FROM adw_bookmark
ORDER BY bookmark_thread_id
GO

Since I'm parsing this SPROC through asp.net I would like to have the   instead of a space within my SPROC so it's already pre-formatted and ready to go in my ASP.NET page (in html format) when I receive the information from my database.....

But how do you do this?????

THANKS!

Evan
Reply With Quote
  #2 (permalink)  
Old 02-13-04, 16:28
mkkmg mkkmg is offline
Registered User
 
Join Date: Oct 2003
Location: Dallas
Posts: 76
...

+ ' ' +


just place that between your two fields, and yes those are single quotes
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On