Click here to Skip to main content
15,896,512 members
Home / Discussions / Database
   

Database

 
GeneralBest Practice: Connection Strings to MS-SQL datasource from web application Pin
Leo Smith14-Mar-08 9:18
Leo Smith14-Mar-08 9:18 
GeneralRe: Best Practice: Connection Strings to MS-SQL datasource from web application Pin
Mark J. Miller17-Mar-08 5:07
Mark J. Miller17-Mar-08 5:07 
GeneralStoring Compressed Image Into SQL Server Pin
abdurrahman oğuz14-Mar-08 6:30
abdurrahman oğuz14-Mar-08 6:30 
GeneralRe: Storing Compressed Image Into SQL Server Pin
Rob Philpott14-Mar-08 6:38
Rob Philpott14-Mar-08 6:38 
GeneralRe: Storing Compressed Image Into SQL Server [modified] Pin
abdurrahman oğuz14-Mar-08 22:40
abdurrahman oğuz14-Mar-08 22:40 
GeneralRe: Storing Compressed Image Into SQL Server Pin
Mark Churchill16-Mar-08 1:57
Mark Churchill16-Mar-08 1:57 
Generalinsert user checkboxlist selections in table Pin
C. L. Phillip14-Mar-08 4:26
C. L. Phillip14-Mar-08 4:26 
GeneralRe: insert user checkboxlist selections in table Pin
Mark J. Miller14-Mar-08 6:28
Mark J. Miller14-Mar-08 6:28 
Assuming the only insert you need to make is to your selected options table (Log is already created, no edits required to the options table because they are simply for displaying available options), you can try something like this:

http://www.codeproject.com/KB/database/TableValuedFnsAsArrays.aspx[^]

Create a TVF which uses either the T-SQL or CLR method described in the article and pass the selected options and the log id to a stored procedure which uses it like this:

<br />
CREATE PROCEDURE dbo.AddSelectedOptions<br />
@LogId INT,<br />
@options VARCHAR(??)<br />
AS<br />
<br />
INSERT INTO selectedOptions(LogId, OptionId)<br />
SELECT @LogId, Data FROM dbo.function_string_to_table(@options)<br />
<br />
GO<br />


NOTE: "Data" would be the optionId as it is returned from the function defined in the article.


GeneralRe: insert user checkboxlist selections in table Pin
C. L. Phillip14-Mar-08 9:36
C. L. Phillip14-Mar-08 9:36 
GeneralPlease help me move these records to another table... Pin
Support12314-Mar-08 3:10
Support12314-Mar-08 3:10 
GeneralRe: Please help me move these records to another table... Pin
soni uma14-Mar-08 3:20
soni uma14-Mar-08 3:20 
GeneralRe: Please help me move these records to another table... Pin
Support12314-Mar-08 3:23
Support12314-Mar-08 3:23 
GeneralRe: Please help me move these records to another table... Pin
soni uma14-Mar-08 3:26
soni uma14-Mar-08 3:26 
GeneralRe: Please help me move these records to another table... Pin
Support12314-Mar-08 3:25
Support12314-Mar-08 3:25 
GeneralFetching records based on Boolean operators Pin
sumit703414-Mar-08 0:41
sumit703414-Mar-08 0:41 
GeneralRe: Fetching records based on Boolean operators Pin
GDMFSOB14-Mar-08 0:48
GDMFSOB14-Mar-08 0:48 
GeneralRe: Fetching records based on Boolean operators Pin
sumit703414-Mar-08 0:55
sumit703414-Mar-08 0:55 
GeneralRe: Fetching records based on Boolean operators Pin
GDMFSOB14-Mar-08 1:07
GDMFSOB14-Mar-08 1:07 
QuestionTable change Watch In SQL 2000 Pin
GDMFSOB14-Mar-08 0:39
GDMFSOB14-Mar-08 0:39 
GeneralRe: Table change Watch In SQL 2000 Pin
sumit703414-Mar-08 1:01
sumit703414-Mar-08 1:01 
GeneralRe: Table change Watch In SQL 2000 Pin
GDMFSOB14-Mar-08 1:08
GDMFSOB14-Mar-08 1:08 
QuestionHow to call Unmanaged Code from SQL CLR. Pin
ivix4u14-Mar-08 0:18
ivix4u14-Mar-08 0:18 
GeneralRe: How to call Unmanaged Code from SQL CLR. Pin
Mark J. Miller14-Mar-08 6:20
Mark J. Miller14-Mar-08 6:20 
GeneralProblem with Cursor Pin
Vimalsoft(Pty) Ltd13-Mar-08 22:19
professionalVimalsoft(Pty) Ltd13-Mar-08 22:19 
GeneralRe: Problem with Cursor Pin
pmarfleet13-Mar-08 22:31
pmarfleet13-Mar-08 22:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.