Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

stored procedures

Status
Not open for further replies.

vlitim

Programmer
Sep 2, 2000
393
GB
I am new to SQL and am trying to create a stored procedure that will read a semicolon delimited text file into a table. Any help on this would be much appreciated!

Cheers
Tim
 
Rather that use a stored procedure, look at data transfer services (DTS). Assumming you are using sql 7 or 2000.
 
The reason I wanted to do it as a stored procedure is because I need to be able to call it from an internet page.
 
I have no idea how to go about this, is there a decent reference site for stored procedures for beginners?
 
No idea how to 1) create a stored procedure or 2) how to use Bulk Insert?

1) See CREATE PROCEDURE in Books Online; basically, its:
[tt]create procedure myproc as
select * from mytable[/tt]
This is a simple example, but you get the idea - any single or series of SQL Statements can be used within the SP.

2) Join the crowd. You can trial-and-error it from Query Analyzer using a test file and test table, then use that as the basis for your stored procedure. Robert Bradley
teaser.jpg

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top