Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6789883
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T17:39:32+00:00 2026-05-26T17:39:32+00:00

I am creating a stored procedure that will take in one parameter: @CommonImportID This

  • 0

I am creating a stored procedure that will take in one parameter: @CommonImportID

This ID will be the PK of the CommonImport table. I need to use the row that this PK corresponds to, to assign each value in each column to its own variable, i.e. @uploadedBy = (value in uploadedBy column) etc etc. How would I write this statement

If you need any more info just ask.

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T17:39:32+00:00Added an answer on May 26, 2026 at 5:39 pm

    If understood your question correctly, something like this…

    declare @uploadedBy varchar(50)
    declare @anothervariable whatevertype 
    
    select @uploadedBy=uploadedBy, 
           @anothervariable=anotherColumn 
    from CommonImport 
    where CommonImportID=@CommonImportID
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm creating a temp table that's the result of a stored procedure's result set.
I'm creating a stored procedure that will create 3 triggers (insert, update, delete) given
Okay basically I am creating a stored procedure that will return data for our
I am creating as stored procedure that brings back a bunch of data that
I am creating a stored procedure to do a search through a table. I
I am trying to write a stored procedure that will allow me to write
If you're creating a temporary table within a stored procedure and want to add
I am creating a stored procedure that views the results of polls answers by
I am creating a stored procedure that sets 3 variables based on queries and
I have a stored procedure that returns a table (or dataset or view or

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.