Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Database > SQL Language
|
SQL Language SQL Language discussions not specific to a particular RDBMS program or vendor.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Language section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 29th, 2004, 02:25 PM
Authorized User
 
Join Date: Sep 2004
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to ctranjith
Default Sql Server Parameter Passing

Sir It is the problem that rouins me

Sir I am using Sql Server as my Db.
In Stored Procedure of Sql Server
I want to pass a table as an argument
 No I am achieving this by creating duplicate table and first
saving to there and taking from there by an Id
   or
using Array

but I did't think it is a proper method so I want to pass
a table (may be a recordset in vb)or a dataset table in .net
I am using .net is my front end.

Expecting Immediate Reply

With Regards
  C T Ranjith

 
Old September 30th, 2004, 01:03 AM
Friend of Wrox
 
Join Date: Jul 2004
Posts: 345
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to gokul_blr Send a message via Yahoo to gokul_blr
Default

V. useful sample code posted at Oracle FAQ:

http://www.orafaq.com/msgboard/oem/messages/1252.htm


Gokulan Ethiraj
 
Old September 30th, 2004, 04:54 AM
Friend of Wrox
 
Join Date: Sep 2004
Posts: 109
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Anantsharma Send a message via Yahoo to Anantsharma
Default

Please present the case more clearly. My undesrtanding say that u r getting the Table name dynamically at run time.

U can declare a Table type local variable for ur stored procedure. If not very comfortable the u can pass the Table name as a Varchar data type. Using this table name, u can form a Query inside stored procedure and use EXECUTE method to fire the Formed query. Through this u can even get Output parameters as well.

Hope u got the idea if I am taking ur case correctly.



B. Anant
 
Old October 8th, 2004, 12:08 AM
Authorized User
 
Join Date: Sep 2004
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to ctranjith
Default

Actually I need to pass values it may contain so many columns like saving a master details and item details with in a procedure
so we have more item details. these details can have more rows and columns i need to pass it to an sql server two options for this is using a temp table or by an array but I did't think is it is so good, that is why i am searching for a better solution

expecting reply
yours thankfully

C T Ranjith

 
Old October 8th, 2004, 12:35 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

Yet, doesn't look clear for me. Can you elaborate, what exactly you would like to achieve?

_________________________
- Vijay G
Strive for Perfection





Similar Threads
Thread Thread Starter Forum Replies Last Post
SQL Server StoredProcedure Parameter pass erictamlam C# 2005 3 March 27th, 2007 01:31 AM
passing a null value thru sql parameter polofson .NET Framework 2.0 1 May 3rd, 2006 12:56 AM
SQL Server XML - Passing Variables dkb XML 0 April 4th, 2005 03:43 AM
difficulty in passing parameter to SP in sql happytony Classic ASP Databases 1 July 11th, 2004 05:00 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.